diff --git a/addons/fire/XEH_postInit.sqf b/addons/fire/XEH_postInit.sqf index abda6c6578..655b55af19 100644 --- a/addons/fire/XEH_postInit.sqf +++ b/addons/fire/XEH_postInit.sqf @@ -3,7 +3,10 @@ [QGVAR(burn), FUNC(burn)] call CBA_fnc_addEventHandler; [QGVAR(playScream), { params ["_scream", "_source"]; - _source say3D _scream; + // only play sound if enabled in settings + if (GVAR(enableScreams)) then { + _source say3D _scream; + }; }] call CBA_fnc_addEventHandler; ["ace_settingsInitialized", { diff --git a/addons/fire/initSettings.sqf b/addons/fire/initSettings.sqf index c6855e9ae8..ff21b75ae4 100644 --- a/addons/fire/initSettings.sqf +++ b/addons/fire/initSettings.sqf @@ -29,3 +29,12 @@ ], true // isGlobal ] call CBA_fnc_addSetting; + +[ + QGVAR(enableScreams), "CHECKBOX", + [LSTRING(Setting_EnableScreams), LSTRING(Setting_EnableScreams_Description)], + LSTRING(Category_DisplayName), + true, + false // isGlobal +] call CBA_fnc_addSetting; + diff --git a/addons/fire/stringtable.xml b/addons/fire/stringtable.xml index fa383721bf..c969039326 100644 --- a/addons/fire/stringtable.xml +++ b/addons/fire/stringtable.xml @@ -49,6 +49,12 @@ Benutzt einen Feuerschein-Effekt um die Intensität des Feuers bei Nacht zu verstärken. Używa efektu flary, aby zwiększyć jasność w nocy + + Enable screams by units on fire + + + Enables if units on fire will play the screaming sound + Drop Weapons When on Fire Włącz wyrzucanie broni podczas płonięcia