mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 03:30:44 -05:00
Merge pull request 'fix: scav on labs (or any maps with zero scav exfils)' (!3) from kiobu/Modules:master into master
Reviewed-on: SPT-AKI/Modules#3
This commit is contained in:
commit
069d8e93fb
@ -21,6 +21,13 @@ namespace Aki.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)
|
||||||
|
{
|
||||||
|
__result = __instance.ExfiltrationPoints;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// Running this prepares all the data for getting scav exfil points
|
// Running this prepares all the data for getting scav exfil points
|
||||||
__instance.ScavExfiltrationClaim(Singleton<GameWorld>.Instance.MainPlayer.Position, profile.Id, profile.FenceInfo.AvailableExitsCount);
|
__instance.ScavExfiltrationClaim(Singleton<GameWorld>.Instance.MainPlayer.Position, profile.Id, profile.FenceInfo.AvailableExitsCount);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user