From 40c43944fe28e1bdcf85a87da59c50a37425af13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Badano?= Date: Wed, 14 Jan 2015 00:29:01 -0300 Subject: [PATCH] hearing: make tinnitus disabable --- addons/hearing/config.cpp | 7 +++++++ addons/hearing/functions/fnc_earRinging.sqf | 2 ++ addons/hearing/stringtable.xml | 4 ++++ 3 files changed, 13 insertions(+) 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