Fire - Adding option to disable screaming for units on fire (#8665)

This commit is contained in:
Crowdedlight 2021-11-08 00:32:49 +01:00 committed by GitHub
parent c83caa63b4
commit 62ed899ecc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 1 deletions

View File

@ -3,7 +3,10 @@
[QGVAR(burn), FUNC(burn)] call CBA_fnc_addEventHandler; [QGVAR(burn), FUNC(burn)] call CBA_fnc_addEventHandler;
[QGVAR(playScream), { [QGVAR(playScream), {
params ["_scream", "_source"]; params ["_scream", "_source"];
_source say3D _scream; // only play sound if enabled in settings
if (GVAR(enableScreams)) then {
_source say3D _scream;
};
}] call CBA_fnc_addEventHandler; }] call CBA_fnc_addEventHandler;
["ace_settingsInitialized", { ["ace_settingsInitialized", {

View File

@ -29,3 +29,12 @@
], ],
true // isGlobal true // isGlobal
] call CBA_fnc_addSetting; ] call CBA_fnc_addSetting;
[
QGVAR(enableScreams), "CHECKBOX",
[LSTRING(Setting_EnableScreams), LSTRING(Setting_EnableScreams_Description)],
LSTRING(Category_DisplayName),
true,
false // isGlobal
] call CBA_fnc_addSetting;

View File

@ -49,6 +49,12 @@
<German>Benutzt einen Feuerschein-Effekt um die Intensität des Feuers bei Nacht zu verstärken.</German> <German>Benutzt einen Feuerschein-Effekt um die Intensität des Feuers bei Nacht zu verstärken.</German>
<Polish>Używa efektu flary, aby zwiększyć jasność w nocy</Polish> <Polish>Używa efektu flary, aby zwiększyć jasność w nocy</Polish>
</Key> </Key>
<Key ID="STR_ACE_Fire_Setting_EnableScreams">
<English>Enable screams by units on fire</English>
</Key>
<Key ID="STR_ACE_Fire_Setting_EnableScreams_Description">
<English>Enables if units on fire will play the screaming sound</English>
</Key>
<Key ID="STR_ACE_Fire_Setting_DropWeapon"> <Key ID="STR_ACE_Fire_Setting_DropWeapon">
<English>Drop Weapons When on Fire</English> <English>Drop Weapons When on Fire</English>
<Polish>Włącz wyrzucanie broni podczas płonięcia</Polish> <Polish>Włącz wyrzucanie broni podczas płonięcia</Polish>