mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Cookoff - Add setting to destroy vehicle after cooking off (#8734)
* Add setting to destroy vehicle after cooking off * Update stringtable.xml * Update stringtable.xml * Update addons/cookoff/stringtable.xml Co-authored-by: mharis001 <34453221+mharis001@users.noreply.github.com> * Update addons/cookoff/stringtable.xml Co-authored-by: mharis001 <34453221+mharis001@users.noreply.github.com> * Update initSettings.sqf Co-authored-by: mharis001 <34453221+mharis001@users.noreply.github.com>
This commit is contained in:
parent
cce1700f9c
commit
3f7530d89e
@ -69,8 +69,8 @@ if (_smokeDelayEnabled) then {
|
||||
_vehicle setVariable [QGVAR(isCookingOff), false, true];
|
||||
[_pfh] call CBA_fnc_removePerFrameHandler;
|
||||
|
||||
if (_detonateAfterCookoff) then {
|
||||
_vehicle setDamage 1;
|
||||
if (GVAR(destroyVehicleAfterCookoff) || _detonateAfterCookoff) then {
|
||||
_vehicle setDamage [1, _detonateAfterCookoff];
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -18,6 +18,16 @@
|
||||
false // Needs mission restart
|
||||
] call CBA_fnc_addSetting;
|
||||
|
||||
[
|
||||
QGVAR(destroyVehicleAfterCookoff), "CHECKBOX",
|
||||
[LSTRING(destroyVehicleAfterCookoff_name), LSTRING(destroyVehicleAfterCookoff_tooltip)],
|
||||
LSTRING(category_displayName),
|
||||
false, // default value
|
||||
true, // isGlobal
|
||||
{[QGVAR(destroyVehicleAfterCookoff), _this] call EFUNC(common,cbaSettings_settingChanged)},
|
||||
false // Needs mission restart
|
||||
] call CBA_fnc_addSetting;
|
||||
|
||||
[
|
||||
QGVAR(enableAmmoCookoff), "CHECKBOX",
|
||||
[LSTRING(enableAmmoCookoff_name), LSTRING(enableAmmoCookoff_tooltip)],
|
||||
|
@ -166,6 +166,12 @@
|
||||
<Czech>Multiplikátor pro pravděpodobnost vznícení munice. Vyšší hodnota znamená vyšší šanci vznícení munice.</Czech>
|
||||
<Korean>쿡오프가 일어날 확률에 계수를 곱합니다. 더 큰 숫자는 더 높은 확률의 쿡오프를 일으킵니다.</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_CookOff_destroyVehicleAfterCookoff_name">
|
||||
<English>Destroy Vehicles After Cook-off</English>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_CookOff_destroyVehicleAfterCookoff_tooltip">
|
||||
<English>Controls whether vehicles will always be destroyed after cooking off. Depending on the cookoff, the vehicle may explode or may simply be killed without effects.</English>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_CookOff_enableFire_name">
|
||||
<English>Enable Cook-Off Vehicle Fire</English>
|
||||
<Japanese>誘爆火災を有効化</Japanese>
|
||||
|
Loading…
Reference in New Issue
Block a user