Skip to content

Commit

Permalink
readd settings to enable for player vehicles (#8611)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCandianVendingMachine authored Oct 27, 2021
1 parent afca8ec commit e7d0878
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions addons/cookoff/functions/fnc_cookOff.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit e7d0878

Please sign in to comment.