From 903dbdf4321a333e01fa12d11a211aad73d769d8 Mon Sep 17 00:00:00 2001 From: Dev Date: Tue, 25 Jul 2023 17:44:23 +0100 Subject: [PATCH] Improve emulation of live tarkov data - Remove hideout data from bots that are not pmcs or pscavs prior to being sent to client --- project/src/generators/BotGenerator.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/project/src/generators/BotGenerator.ts b/project/src/generators/BotGenerator.ts index 6678cbb1..23708378 100644 --- a/project/src/generators/BotGenerator.ts +++ b/project/src/generators/BotGenerator.ts @@ -153,6 +153,12 @@ export class BotGenerator this.seasonalEventService.removeChristmasItemsFromBotInventory(botJsonTemplate.inventory, botGenerationDetails.role); } + // Remove hideout data if bot is not a PMC or pscav + if (!(botGenerationDetails.isPmc || botGenerationDetails.isPlayerScav)) + { + bot.Hideout = null; + } + bot.Info.Experience = botLevel.exp; bot.Info.Level = botLevel.level; bot.Info.Settings.Experience = this.randomUtil.getInt(botJsonTemplate.experience.reward.min, botJsonTemplate.experience.reward.max);