diff --git a/project/SPT.SinglePlayer/Patches/ScavMode/ScavExfilPatch.cs b/project/SPT.SinglePlayer/Patches/ScavMode/ScavExfilPatch.cs index 875b591..837aa63 100644 --- a/project/SPT.SinglePlayer/Patches/ScavMode/ScavExfilPatch.cs +++ b/project/SPT.SinglePlayer/Patches/ScavMode/ScavExfilPatch.cs @@ -22,11 +22,15 @@ namespace SPT.SinglePlayer.Patches.ScavMode return true; // Not a scav - don't do anything and run original method } - // We are on a map with zero scav exfil points, enable all of them. - if (__instance.ScavExfiltrationPoints.Length == 0) + if (__instance.ScavExfiltrationPoints.Length > 0) { - __result = __instance.ExfiltrationPoints; - return false; + Logger.LogError($"ScavExfiltrationPoints has content, Do original"); + foreach (var scavExit in __instance.ScavExfiltrationPoints) + { + Logger.LogError($"{scavExit.name}, {scavExit.Id}, {scavExit.Description}"); + } + + return true; // do original } // Running this prepares all the data for getting scav exfil points diff --git a/project/SPT.SinglePlayer/SPTSingleplayerPlugin.cs b/project/SPT.SinglePlayer/SPTSingleplayerPlugin.cs index 8d79316..f5d8582 100644 --- a/project/SPT.SinglePlayer/SPTSingleplayerPlugin.cs +++ b/project/SPT.SinglePlayer/SPTSingleplayerPlugin.cs @@ -31,7 +31,7 @@ namespace SPT.SinglePlayer // Still need new ScavExperienceGainPatch().Enable(); new DisablePMCExtractsForScavsPatch().Enable(); - new ScavExfilPatch().Enable(); + //new ScavExfilPatch().Enable(); // Replaced with server side changes new ScavProfileLoadPatch().Enable(); new ScavPrefabLoadPatch().Enable(); new DisableReadyLocationReadyPatch().Enable();