0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-13 05:30:43 -05:00

Removed ScavExfilPatch due to server changes

This commit is contained in:
Dev 2024-09-18 13:31:26 +01:00
parent 9b57469707
commit 18708da49b
2 changed files with 9 additions and 5 deletions

View File

@ -22,11 +22,15 @@ namespace SPT.SinglePlayer.Patches.ScavMode
return true; // Not a scav - don't do anything and run original method 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; Logger.LogError($"ScavExfiltrationPoints has content, Do original");
return false; 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 // Running this prepares all the data for getting scav exfil points

View File

@ -31,7 +31,7 @@ namespace SPT.SinglePlayer
// Still need // Still need
new ScavExperienceGainPatch().Enable(); new ScavExperienceGainPatch().Enable();
new DisablePMCExtractsForScavsPatch().Enable(); new DisablePMCExtractsForScavsPatch().Enable();
new ScavExfilPatch().Enable(); //new ScavExfilPatch().Enable(); // Replaced with server side changes
new ScavProfileLoadPatch().Enable(); new ScavProfileLoadPatch().Enable();
new ScavPrefabLoadPatch().Enable(); new ScavPrefabLoadPatch().Enable();
new DisableReadyLocationReadyPatch().Enable(); new DisableReadyLocationReadyPatch().Enable();