hearing: make tinnitus disabable

This commit is contained in:
Nicolás Badano 2015-01-14 00:29:01 -03:00
parent 71879acb79
commit 40c43944fe
3 changed files with 13 additions and 0 deletions

View File

@ -21,3 +21,10 @@ class CfgPatches {
#include "CfgWeapons.hpp" #include "CfgWeapons.hpp"
#include "CfgAmmo.hpp" #include "CfgAmmo.hpp"
class ACE_Options {
class Hearing_DisableEarRinging {
displayName = "$STR_ACE_Hearing_DisableEarRinging";
default = 0;
};
};

View File

@ -32,6 +32,8 @@ _fnc_removeEarRinging = {
[(_this select 1)] call cba_fnc_removePerFrameHandler; [(_this select 1)] call cba_fnc_removePerFrameHandler;
}; };
if (profileNamespace getVariable [QGVAR(DisableEarRinging), false]) exitWith {};
if (_strength > 0.75) exitWith { if (_strength > 0.75) exitWith {
playSound "ACE_EarRinging_Heavy"; playSound "ACE_EarRinging_Heavy";
GVAR(isEarRingingPlaying) = true; GVAR(isEarRingingPlaying) = true;

View File

@ -98,5 +98,9 @@
<Hungarian>Nincs több hely</Hungarian> <Hungarian>Nincs több hely</Hungarian>
<Russian>Нет места в инвентаре</Russian> <Russian>Нет места в инвентаре</Russian>
</Key> </Key>
<Key ID="STR_ACE_Hearing_DisableEarRinging">
<English>Disable ear ringing</English>
<Spanish>Desactivar zumbido de oídos</Spanish>
</Key>
</Package> </Package>
</Project> </Project>