From 362a6181b0d3807ec90c1116b18ce18b4751894f Mon Sep 17 00:00:00 2001 From: Chomp Date: Wed, 2 Apr 2025 13:17:31 +0100 Subject: [PATCH] Fixed zombies not spawning - Credit to https://github.com/November75-SPT for the fix --- .../SPTarkov.Server.Core/Services/SeasonalEventService.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Libraries/SPTarkov.Server.Core/Services/SeasonalEventService.cs b/Libraries/SPTarkov.Server.Core/Services/SeasonalEventService.cs index a3ba12dd..93868b81 100644 --- a/Libraries/SPTarkov.Server.Core/Services/SeasonalEventService.cs +++ b/Libraries/SPTarkov.Server.Core/Services/SeasonalEventService.cs @@ -761,6 +761,13 @@ public class SeasonalEventService( protected void ConfigureZombies(ZombieSettings zombieSettings) { + // Flag zombies as being enabled + var botData = _databaseService.GetBots(); + if (!botData.Core.TryAdd("ACTIVE_HALLOWEEN_ZOMBIES_EVENT", true)) + { + botData.Core["ACTIVE_HALLOWEEN_ZOMBIES_EVENT"] = true; + } + var globals = _databaseService.GetGlobals(); var infectionHalloween = globals.Configuration.SeasonActivity.InfectionHalloween; infectionHalloween.DisplayUIEnabled = true;