diff --git a/project/src/models/spt/config/IPmcConfig.ts b/project/src/models/spt/config/IPmcConfig.ts index 2129c666..668cc85a 100644 --- a/project/src/models/spt/config/IPmcConfig.ts +++ b/project/src/models/spt/config/IPmcConfig.ts @@ -60,6 +60,7 @@ export interface IHostilitySettings { UsecEnemyChance?: number; /** Bot roles that are 100% an friendly */ additionalFriendlyTypes?: string[]; + savagePlayerBehaviour?: string; } export interface PmcTypes { diff --git a/project/src/services/LocationLifecycleService.ts b/project/src/services/LocationLifecycleService.ts index 23a637c8..51f5675c 100644 --- a/project/src/services/LocationLifecycleService.ts +++ b/project/src/services/LocationLifecycleService.ts @@ -172,6 +172,11 @@ export class LocationLifecycleService { if (typeof configHostilityChanges.UsecEnemyChance !== "undefined") { locationBotHostilityDetails.UsecEnemyChance = configHostilityChanges.UsecEnemyChance; } + + // Adjust scav hostility behaviour + if (typeof configHostilityChanges.savagePlayerBehaviour !== "undefined") { + locationBotHostilityDetails.SavagePlayerBehaviour = configHostilityChanges.savagePlayerBehaviour; + } } }