mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
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:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user