From 6db0cef38167d1b44a8868f30b7aae72f21d8238 Mon Sep 17 00:00:00 2001 From: Dev Date: Wed, 18 Sep 2024 11:39:32 +0100 Subject: [PATCH] Added support for `SavagePlayerBehaviour` --- project/src/models/spt/config/IPmcConfig.ts | 1 + project/src/services/LocationLifecycleService.ts | 5 +++++ 2 files changed, 6 insertions(+) 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; + } } }