mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-04 15:22:53 +03:00
Group sounds and zombie calls
dayz_zombieSpeak and player_alertZombies are called often together or should be. fnc_alertZombies groups them together and uses the given parameters. This streamlines and corrects the missing or incorrect calls from dayz_zombieSpeak or player_alertZombies.
This commit is contained in:
@@ -38,9 +38,9 @@ if (_ComboMatch || (_ownerID == dayz_playerUID)) then {
|
||||
[_unlockedClass,objNull] call fn_waitForObject;
|
||||
|
||||
if (_unlockedClass == "LockboxStorage") then {
|
||||
[player,"lockboxopen",0,false] call dayz_zombieSpeak;
|
||||
[player,(getPosATL player),20,"lockboxopen"] spawn fnc_alertZombies;
|
||||
} else {
|
||||
[player,"safeopen",0,false] call dayz_zombieSpeak;
|
||||
[player,(getPosATL player),20,"safeopen"] spawn fnc_alertZombies;
|
||||
};
|
||||
|
||||
_code = [_obj getVariable["CharacterID","0"],dayz_combination] select (_ComboMatch);
|
||||
|
||||
Reference in New Issue
Block a user