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:
@@ -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;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user