From 1f1e96b8fefe2cba504a285361d88dcdec660001 Mon Sep 17 00:00:00 2001 From: oiad Date: Wed, 4 Oct 2017 21:25:31 +1300 Subject: [PATCH] Alter DZE_SafeZonePosCheck to allow custom radii --- SQF/dayz_code/init/compiles.sqf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SQF/dayz_code/init/compiles.sqf b/SQF/dayz_code/init/compiles.sqf index 6eff2c174..18236991e 100644 --- a/SQF/dayz_code/init/compiles.sqf +++ b/SQF/dayz_code/init/compiles.sqf @@ -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; };