diff --git a/addons/cookoff/functions/fnc_cookOff.sqf b/addons/cookoff/functions/fnc_cookOff.sqf
index fa842c0640..442cde80f2 100644
--- a/addons/cookoff/functions/fnc_cookOff.sqf
+++ b/addons/cookoff/functions/fnc_cookOff.sqf
@@ -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];
};
};
diff --git a/addons/cookoff/initSettings.sqf b/addons/cookoff/initSettings.sqf
index cbba7c1719..8912636fd6 100644
--- a/addons/cookoff/initSettings.sqf
+++ b/addons/cookoff/initSettings.sqf
@@ -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)],
diff --git a/addons/cookoff/stringtable.xml b/addons/cookoff/stringtable.xml
index 81eb49e8c0..9f45b68450 100644
--- a/addons/cookoff/stringtable.xml
+++ b/addons/cookoff/stringtable.xml
@@ -166,6 +166,12 @@
Multiplikátor pro pravděpodobnost vznícení munice. Vyšší hodnota znamená vyšší šanci vznícení munice.
쿡오프가 일어날 확률에 계수를 곱합니다. 더 큰 숫자는 더 높은 확률의 쿡오프를 일으킵니다.
+
+ Destroy Vehicles After Cook-off
+
+
+ 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.
+
Enable Cook-Off Vehicle Fire
誘爆火災を有効化