From ea22ebdf096207ebf52f433091b5e8b7a47ed6ba Mon Sep 17 00:00:00 2001 From: Fishy Date: Thu, 29 Jun 2017 15:03:53 +0100 Subject: [PATCH 1/2] Update XEH_preInit.sqf --- addons/common/XEH_preInit.sqf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/common/XEH_preInit.sqf b/addons/common/XEH_preInit.sqf index 355ffb2a7d..99a449ab1d 100644 --- a/addons/common/XEH_preInit.sqf +++ b/addons/common/XEH_preInit.sqf @@ -28,6 +28,8 @@ GVAR(statusEffect_isGlobal) = []; GVAR(setHearingCapabilityMap) = []; +GVAR(setMusicVolume) = true; + ////////////////////////////////////////////////// // Set up PlayerChanged eventhandler for pre init (EH is installed in postInit) ////////////////////////////////////////////////// From b84aec305124cacb129053bd26db881a6ba26e4e Mon Sep 17 00:00:00 2001 From: Fishy Date: Thu, 29 Jun 2017 15:04:32 +0100 Subject: [PATCH 2/2] Update fnc_setHearingCapability.sqf --- addons/common/functions/fnc_setHearingCapability.sqf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/common/functions/fnc_setHearingCapability.sqf b/addons/common/functions/fnc_setHearingCapability.sqf index 5b1e7a5a3a..3c6783c98e 100644 --- a/addons/common/functions/fnc_setHearingCapability.sqf +++ b/addons/common/functions/fnc_setHearingCapability.sqf @@ -47,7 +47,9 @@ if (!_exists && _add) then { // in game sounds 0 fadeSound _lowestVolume; 0 fadeRadio _lowestVolume; -0 fadeMusic _lowestVolume; +if (GVAR(setMusicVolume)) then { + 0 fadeMusic _lowestVolume; +}; // Set Radio mod variables. ACE_player setVariable ["tf_globalVolume", _lowestVolume];