mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Alter DZE_SafeZonePosCheck to allow custom radii
This commit is contained in:
@@ -848,10 +848,11 @@ dayz_engineSwitch = {
|
||||
|
||||
DZE_SafeZonePosCheck = {
|
||||
private ["_position","_skipPos"];
|
||||
_position = _this;
|
||||
_position = _this select 0;
|
||||
_skipPos = false;
|
||||
|
||||
{
|
||||
if ((_position distance (_x select 0)) < (_x select 1)) exitWith {_skipPos = true;};
|
||||
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