Make Safe Zone Zombie and Loot spawning a toggle

As requested by a few admins that didn't realise it was now hard coded
to disable loot/zombie spawning
This requires the check since we're also using DZE_SafeZonePosCheck for
DZE_buildChecks with a forced radius.
This commit is contained in:
oiad
2017-12-30 22:03:31 +13:00
parent e89eebc843
commit 6248addc3f
4 changed files with 14 additions and 7 deletions

View File

@@ -853,8 +853,10 @@ DZE_SafeZonePosCheck = {
_position = _this select 0;
_skipPos = false;
{
if ((_position distance (_x select 0)) < (if (count _this > 1) then {_this select 1} else {_x select 1})) exitWith {_skipPos = true;};
} forEach DZE_SafeZonePosArray;
if (DZE_SafeZoneZombieLoot || count _this > 1) then {
{
if ((_position distance (_x select 0)) < (if (count _this > 1) then {_this select 1} else {_x select 1})) exitWith {_skipPos = true;};
} forEach DZE_SafeZonePosArray;
};
_skipPos;
};