From 2a5dab6d89119b5c6ced5edf48b79b471f0b2350 Mon Sep 17 00:00:00 2001 From: oiad Date: Wed, 4 Oct 2017 21:28:59 +1300 Subject: [PATCH] Alter DZE_SafeZonePosCheck to allow custom radii --- SQF/dayz_code/compile/building_spawnLoot.sqf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SQF/dayz_code/compile/building_spawnLoot.sqf b/SQF/dayz_code/compile/building_spawnLoot.sqf index bf1faf1d2..d584fdb8b 100644 --- a/SQF/dayz_code/compile/building_spawnLoot.sqf +++ b/SQF/dayz_code/compile/building_spawnLoot.sqf @@ -39,7 +39,7 @@ if (_lootChance <= 0) exitWith {}; _lootPos = getArray (_config >> "lootPos"); _lootGroup = Loot_GetGroup(getText(_config >> "lootGroup")); -if (!(_this call DZE_SafeZonePosCheck)) then { +if (!([_this] call DZE_SafeZonePosCheck)) then { { //Get the world position of the spawn position _worldPos = _this modelToWorld _x; @@ -64,7 +64,7 @@ if (isArray (_config >> "lootPosSmall")) then { _lootPos = getArray (_config >> "lootPosSmall"); _lootGroup = Loot_GetGroup((getText(_config >> "lootGroup")) + "Small"); if (_lootGroup >= 1) then { - if (!(_this call DZE_SafeZonePosCheck)) then { + if (!([_this] call DZE_SafeZonePosCheck)) then { { //Get the world position of the spawn position _worldPos = _this modelToWorld _x; @@ -84,4 +84,4 @@ if (isArray (_config >> "lootPosSmall")) then { } else { diag_log format["Loot group small: %1 does not exist", ((getText(_config >> "lootGroup")) + "Small")]; }; -}; \ No newline at end of file +};