Skip to content

Commit

Permalink
Adv Vehicle Damage - Fix cookoff event args (#10338)
Browse files Browse the repository at this point in the history
* Adv Vehicle Damage - Fix cookoff event args

* fix `_delaySmoke`

* Update fnc_handleCookoff.sqf
  • Loading branch information
PabstMirror authored Sep 26, 2024
1 parent ca3aa3f commit d9b3ef9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions addons/vehicle_damage/functions/fnc_handleCookoff.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ if (_canJet) then {
private _delaySmoke = _chanceOfFire < random 1;
private _detonateAfterCookoff = (_fireDetonateChance / 4) > random 1;

private _source = "";
private _sourceHitpoint = "";

if (_hitPart == "engine") then {
_source = ["hit_engine_point", "HitPoints"];
_sourceHitpoint = ["hit_engine_point", "HitPoints"];
};

[QEGVAR(cookOff,cookOffServer), [_vehicle, _intensity, _injurer, _injurer, _delayWithSmoke, _fireDetonateChance, _detonateAfterCookoff, _source, _canRing, _canJet]] call CBA_fnc_serverEvent;
[QEGVAR(cookOff,cookOffServer), [_vehicle, _intensity, _source, _instigator, _delaySmoke, _fireDetonateChance, _detonateAfterCookoff, _sourceHitpoint, _canRing, _canJet]] call CBA_fnc_serverEvent;
TRACE_4("cooking-off",_vehicle,_chanceOfFire,_delaySmoke,_detonateAfterCookoff);

// Abandon vehicle
Expand Down

0 comments on commit d9b3ef9

Please sign in to comment.