diff --git a/addons/hearing/config.cpp b/addons/hearing/config.cpp index 6504710eae..84ae62a01b 100644 --- a/addons/hearing/config.cpp +++ b/addons/hearing/config.cpp @@ -21,3 +21,10 @@ class CfgPatches { #include "CfgWeapons.hpp" #include "CfgAmmo.hpp" + +class ACE_Options { + class Hearing_DisableEarRinging { + displayName = "$STR_ACE_Hearing_DisableEarRinging"; + default = 0; + }; +}; \ No newline at end of file diff --git a/addons/hearing/functions/fnc_earRinging.sqf b/addons/hearing/functions/fnc_earRinging.sqf index cb94303859..d3382ea26e 100644 --- a/addons/hearing/functions/fnc_earRinging.sqf +++ b/addons/hearing/functions/fnc_earRinging.sqf @@ -32,6 +32,8 @@ _fnc_removeEarRinging = { [(_this select 1)] call cba_fnc_removePerFrameHandler; }; +if (profileNamespace getVariable [QGVAR(DisableEarRinging), false]) exitWith {}; + if (_strength > 0.75) exitWith { playSound "ACE_EarRinging_Heavy"; GVAR(isEarRingingPlaying) = true; diff --git a/addons/hearing/stringtable.xml b/addons/hearing/stringtable.xml index 22404c7d0f..385bf35936 100644 --- a/addons/hearing/stringtable.xml +++ b/addons/hearing/stringtable.xml @@ -98,5 +98,9 @@ Nincs több hely Нет места в инвентаре + + Disable ear ringing + Desactivar zumbido de oídos + \ No newline at end of file