diff --git a/addons/main/functions/fnc_handleDamageEh.sqf b/addons/main/functions/fnc_handleDamageEh.sqf index 15607f6..be837f0 100644 --- a/addons/main/functions/fnc_handleDamageEh.sqf +++ b/addons/main/functions/fnc_handleDamageEh.sqf @@ -1,5 +1,5 @@ #include "script_component.hpp" -params ["_unit", "", "_damage", "_source", "_projectile", "_hitIndex", "_instigator", "_hitPoint"]; +params ["_unit", "", "_damage", "_source", "_projectile", "_hitIndex", "_instigator", "_hitPoint", "", "_context"]; // params ["_unit", "_selection", "_damage", "_source", "_projectile", "_hitIndex", "_instigator", "_hitPoint"]; if !(local _unit) exitWith {nil}; @@ -13,8 +13,11 @@ if (_hitPoint isEqualTo "") then { if (GVAR(damageEhVariant) isNotEqualTo 1 || {!(isDamageAllowed _unit)}) exitWith {_curDamage}; +// Zeus END key kill +if (_context == 0 && {_damage == 1 && _projectile == "" && isNull _source && isNull _instigator}) exitWith {_damage}; + private _newDamage = _damage - _curDamage; -if (_newDamage < 1E-3) exitWith { +if (_context != 2 && {_context == 4 || _newDamage == 0} || {_newDamage < 1E-3}) exitWith { _curDamage };