mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
Alter DZE_SafeZonePosCheck to allow custom radii
This commit is contained in:
@@ -848,10 +848,11 @@ dayz_engineSwitch = {
|
|||||||
|
|
||||||
DZE_SafeZonePosCheck = {
|
DZE_SafeZonePosCheck = {
|
||||||
private ["_position","_skipPos"];
|
private ["_position","_skipPos"];
|
||||||
_position = _this;
|
_position = _this select 0;
|
||||||
_skipPos = false;
|
_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;
|
} forEach DZE_SafeZonePosArray;
|
||||||
_skipPos;
|
_skipPos;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user