mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-17 09:10:27 +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:
@@ -32,9 +32,9 @@ if (!isNull _obj) then {
|
||||
[_lockedClass,objNull] call fn_waitForObject;
|
||||
|
||||
if (_lockedClass == "LockboxStorageLocked") then {
|
||||
[player,"lockboxclose",0,false] call dayz_zombieSpeak;
|
||||
[player,(getPosATL player),20,"lockboxclose"] spawn fnc_alertZombies;
|
||||
} else {
|
||||
[player,"safeclose",0,false] call dayz_zombieSpeak;
|
||||
[player,(getPosATL player),20,"safeclose"] spawn fnc_alertZombies;
|
||||
};
|
||||
|
||||
_code = [_obj getVariable["CharacterID","0"],dayz_combination] select (_ComboMatch);
|
||||
|
||||
@@ -37,8 +37,7 @@ if (_ownerID in [dayz_characterID,dayz_playerUID] || {_typeOf in _campItems}) th
|
||||
_dir = direction _obj;
|
||||
_pos = getPosATL _obj;
|
||||
|
||||
[player,"tentpack",0,false,20] call dayz_zombieSpeak;
|
||||
[player,20,true,getPosATL player] call player_alertZombies;
|
||||
[player,(getPosATL player),20,"tentpack"] spawn fnc_alertZombies;
|
||||
|
||||
_text = getText (configFile >> "CfgVehicles" >> _typeOf >> "displayName");
|
||||
format[localize "str_epoch_player_121",_text] call dayz_rollingMessages;
|
||||
|
||||
@@ -31,7 +31,7 @@ if (_objectID == "0" && _objectUID == "0") exitWith {dayz_actionInProgress = fal
|
||||
if (!_ComboMatch && (_ownerID != dayz_playerUID)) exitWith {dayz_actionInProgress = false; s_player_packvault = -1; format[localize "str_epoch_player_119",_text] call dayz_rollingMessages;};
|
||||
|
||||
if (isNull _obj && {!alive _obj}) exitWith {s_player_packvault = -1;dayz_actionInProgress = false;};
|
||||
[player,"tentpack",0,false] call dayz_zombieSpeak;
|
||||
[player,(getPosATL player),20,"tentpack"] spawn fnc_alertZombies;
|
||||
|
||||
format[localize "str_epoch_player_121",_text] call dayz_rollingMessages;
|
||||
|
||||
|
||||
@@ -74,8 +74,7 @@ if (!isNull dayz_selectedDoor) then {
|
||||
publicVariableServer "PVDZE_handleSafeGear";
|
||||
|
||||
DZE_Lock_Door = "";
|
||||
[player,"combo_locked",0,false] call dayz_zombieSpeak;
|
||||
[player,20,true,(getPosATL player)] spawn player_alertZombies;
|
||||
[player,(getPosATL player),20,"combo_locked"] spawn fnc_alertZombies;
|
||||
|
||||
if (_doorMethod == "Eye") then {
|
||||
localize "STR_EPOCH_DOORACCESS_FAILURE" call dayz_rollingMessages;
|
||||
|
||||
@@ -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