From ab90656431db7b1679ddef113cecfdb119a5027e Mon Sep 17 00:00:00 2001 From: kiobu Date: Sun, 5 Mar 2023 15:02:01 -0500 Subject: [PATCH] fix: scav on labs (or any maps with zero scav exfils) --- .../Aki.SinglePlayer/Patches/ScavMode/ScavExfilPatch.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/project/Aki.SinglePlayer/Patches/ScavMode/ScavExfilPatch.cs b/project/Aki.SinglePlayer/Patches/ScavMode/ScavExfilPatch.cs index acb1bab..ec2f498 100644 --- a/project/Aki.SinglePlayer/Patches/ScavMode/ScavExfilPatch.cs +++ b/project/Aki.SinglePlayer/Patches/ScavMode/ScavExfilPatch.cs @@ -21,6 +21,13 @@ namespace Aki.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) + { + __result = __instance.ExfiltrationPoints; + return false; + } + // Running this prepares all the data for getting scav exfil points __instance.ScavExfiltrationClaim(Singleton.Instance.MainPlayer.Position, profile.Id, profile.FenceInfo.AvailableExitsCount);