diff --git a/SQF/dayz_code/compile/player_lockVault.sqf b/SQF/dayz_code/compile/player_lockVault.sqf index df92e614d..f51951c10 100644 --- a/SQF/dayz_code/compile/player_lockVault.sqf +++ b/SQF/dayz_code/compile/player_lockVault.sqf @@ -36,6 +36,12 @@ if (!isNull _obj) then { [_lockedClass,objNull] call fn_waitForObject; + if (_lockedClass == "LockboxStorageLocked") then { + [player,"lockboxclose",0,false] call dayz_zombieSpeak; + } else { + [player,"safeclose",0,false] call dayz_zombieSpeak; + }; + PVDZE_handleSafeGear = [player,_obj,1]; publicVariableServer "PVDZE_handleSafeGear"; //wait for response from server to verify safe was logged and saved before proceeding @@ -44,4 +50,4 @@ if (!isNull _obj) then { format[localize "str_epoch_player_117",_text] call dayz_rollingMessages; }; s_player_lockvault = -1; -dayz_actionInProgress = false; \ No newline at end of file +dayz_actionInProgress = false; diff --git a/SQF/dayz_code/compile/player_unlockVault.sqf b/SQF/dayz_code/compile/player_unlockVault.sqf index b16a1925b..229971ad3 100644 --- a/SQF/dayz_code/compile/player_unlockVault.sqf +++ b/SQF/dayz_code/compile/player_unlockVault.sqf @@ -43,6 +43,12 @@ if (_ComboMatch || (_ownerID == dayz_playerUID)) then { dayz_lastCodeFail = 0; [_unlockedClass,objNull] call fn_waitForObject; + + if (_unlockedClass == "LockboxStorage") then { + [player,"lockboxopen",0,false] call dayz_zombieSpeak; + } else { + [player,"safeopen",0,false] call dayz_zombieSpeak; + }; PVDZE_handleSafeGear = [player,_obj,0]; publicVariableServer "PVDZE_handleSafeGear"; diff --git a/SQF/dayz_sfx/CfgSounds.hpp b/SQF/dayz_sfx/CfgSounds.hpp index 827528ee0..229eb947b 100644 --- a/SQF/dayz_sfx/CfgSounds.hpp +++ b/SQF/dayz_sfx/CfgSounds.hpp @@ -723,6 +723,29 @@ class CfgSounds { titles[] = {}; }; + class z_safeopen_0 { + name = ""; + sound[] = {"\dayz_sfx\effects\action_safeopen.ogg",1,1,30}; + titles[] = {}; + }; + class z_safeclose_0 { + name = ""; + sound[] = {"\dayz_sfx\effects\action_safeclose.ogg",1,1,30}; + titles[] = {}; + }; + + class z_lockboxopen_0 { + name = ""; + sound[] = {"\dayz_sfx\effects\action_lockboxopen.ogg",1,1,30}; + titles[] = {}; + }; + + class z_lockboxclose_0 { + name = ""; + sound[] = {"\dayz_sfx\effects\action_lockboxclose.ogg",1,1,30}; + titles[] = {}; + }; + class z_radzone1_0 { name = ""; sound[] = {"\dayz_sfx\effects\geiger_level_0.ogg",1,1,10}; diff --git a/SQF/dayz_sfx/effects/action_lockboxclose.ogg b/SQF/dayz_sfx/effects/action_lockboxclose.ogg new file mode 100644 index 000000000..cb6894a6e Binary files /dev/null and b/SQF/dayz_sfx/effects/action_lockboxclose.ogg differ diff --git a/SQF/dayz_sfx/effects/action_lockboxopen.ogg b/SQF/dayz_sfx/effects/action_lockboxopen.ogg new file mode 100644 index 000000000..493b11f48 Binary files /dev/null and b/SQF/dayz_sfx/effects/action_lockboxopen.ogg differ diff --git a/SQF/dayz_sfx/effects/action_safeclose.ogg b/SQF/dayz_sfx/effects/action_safeclose.ogg new file mode 100644 index 000000000..6d6202472 Binary files /dev/null and b/SQF/dayz_sfx/effects/action_safeclose.ogg differ diff --git a/SQF/dayz_sfx/effects/action_safeopen.ogg b/SQF/dayz_sfx/effects/action_safeopen.ogg new file mode 100644 index 000000000..2b4249787 Binary files /dev/null and b/SQF/dayz_sfx/effects/action_safeopen.ogg differ