Alter DZE_SafeZonePosCheck to allow custom radii

This commit is contained in:
oiad
2017-10-04 21:27:09 +13:00
committed by GitHub
parent 1f1e96b8fe
commit 0aafb1d827

View File

@@ -20,7 +20,7 @@ s_player_repairActions = [];
s_player_repair_crtl = 1; s_player_repair_crtl = 1;
if (_hasToolbox) then { if (_hasToolbox) then {
if (_vehicle call DZE_SafeZonePosCheck) exitWith {(localize "str_salvage_safezone") call dayz_rollingMessages;}; if ([_vehicle] call DZE_SafeZonePosCheck) exitWith {(localize "str_salvage_safezone") call dayz_rollingMessages;};
[player,"repair",0,false] call dayz_zombieSpeak; [player,"repair",0,false] call dayz_zombieSpeak;
[player,50,true,(getPosATL player)] call player_alertZombies; [player,50,true,(getPosATL player)] call player_alertZombies;
@@ -83,4 +83,4 @@ _wpn = primaryWeapon player;
_ismelee = (getNumber (configFile >> "CfgWeapons" >> _wpn >> "melee") == 1); _ismelee = (getNumber (configFile >> "CfgWeapons" >> _wpn >> "melee") == 1);
if (_ismelee) then { if (_ismelee) then {
call dayz_meleeMagazineCheck; call dayz_meleeMagazineCheck;
}; };