Skip to content

Commit

Permalink
Vehicle Damage - Fix zeus end keybind not killing units (#10396)
Browse files Browse the repository at this point in the history
Update fnc_handleDamage.sqf
  • Loading branch information
johnb432 authored Oct 12, 2024
1 parent d658c07 commit 2b1550c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions addons/vehicle_damage/functions/fnc_handleDamage.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@
* Public: No
*/

params ["_vehicle", "_selection", "_newDamage", "_source", "_projectile", "_hitIndex", "_instigator", "_hitPoint"];
TRACE_8("handleDamage",_vehicle,_selection,_newDamage,_source,_projectile,_hitIndex,_instigator,_hitPoint);
params ["_vehicle", "_selection", "_newDamage", "_source", "_projectile", "_hitIndex", "_instigator", "_hitPoint", "", "_context"];
TRACE_9("handleDamage",_vehicle,_selection,_newDamage,_source,_projectile,_hitIndex,_instigator,_hitPoint,_context);

if (!local _vehicle) exitWith {};

// Killing units via End key is an edge case (#10375)
if (_context == 0 && {_newDamage == 1 && _projectile == "" && isNull _source && isNull _instigator}) exitWith {_newDamage};

private _currentDamage = if (_selection != "") then {
_vehicle getHitIndex _hitIndex
} else {
Expand Down

0 comments on commit 2b1550c

Please sign in to comment.