From e7d08788c07be48c63c0f0d4c3d6418536662f92 Mon Sep 17 00:00:00 2001 From: Brandon Danyluk Date: Wed, 27 Oct 2021 12:05:55 -0600 Subject: [PATCH] readd settings to enable for player vehicles (#8611) --- addons/cookoff/functions/fnc_cookOff.sqf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/cookoff/functions/fnc_cookOff.sqf b/addons/cookoff/functions/fnc_cookOff.sqf index 6c8ace548a..196336a24d 100644 --- a/addons/cookoff/functions/fnc_cookOff.sqf +++ b/addons/cookoff/functions/fnc_cookOff.sqf @@ -20,6 +20,9 @@ params ["_vehicle", "_intensity", ["_instigator", objNull], ["_smokeDelayEnabled if (GVAR(enable) == 0) exitWith {}; if !(GVAR(enableFire)) exitWith {}; +if (_vehicle getVariable [QGVAR(enable), GVAR(enable)] in [0, false]) exitWith {}; +if (_vehicle getVariable [QGVAR(enable), GVAR(enable)] isEqualTo 2 && {fullCrew [_vehicle, "", false] findIf {isPlayer (_x select 0)} == -1}) exitWith {}; + TRACE_8("cooking off",_vehicle,_intensity,_instigator,_smokeDelayEnabled,_ammoDetonationChance,_detonateAfterCookoff,_fireSource,_canRing);