From bd88c52083983fec647795d73bfde0ab4f43b8eb Mon Sep 17 00:00:00 2001 From: He-Man Date: Fri, 13 Sep 2019 14:59:01 +0200 Subject: [PATCH] NL Weapons script tweak --- .../compile/event_handlers/EPOCH_HandleDamage.sqf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/epoch_code/compile/event_handlers/EPOCH_HandleDamage.sqf b/Sources/epoch_code/compile/event_handlers/EPOCH_HandleDamage.sqf index ada6fb4c..586f4edf 100644 --- a/Sources/epoch_code/compile/event_handlers/EPOCH_HandleDamage.sqf +++ b/Sources/epoch_code/compile/event_handlers/EPOCH_HandleDamage.sqf @@ -15,13 +15,13 @@ params ["_unit", "_selection", "_damage", "_source", "_projectile", "_hitIndex", "_instigator", "_hitPoint"]; if !(_source isEqualTo _unit) then { if ((missionnamespace getvariable ["EPOCH_HandleDamageTimeOut",diag_ticktime]) > diag_ticktime) exitwith {}; // prevent multiple actions here + EPOCH_HandleDamageTimeOut = diag_ticktime + 0.1; switch _projectile do { case "B_EnergyPack": { - EPOCH_HandleDamageTimeOut = diag_ticktime + 0.1; if (_source distance _unit > 10) exitwith {}; if !(missionnamespace getvariable ["EPOCH_OldRevive",false]) then { _attachments = handgunItems _source; - if ("Heal_EPOCH" in _attachments) then { + if ("Heal_EPOCH" in _attachments) exitwith { if (lifeState _unit == "INCAPACITATED") exitwith { EPOCH_HandleDamageTimeOut = diag_ticktime + 1; _unit setUnconscious false; @@ -46,7 +46,7 @@ if !(_source isEqualTo _unit) then { }; }; }; - if ("Defib_EPOCH" in _attachments) then { + if ("Defib_EPOCH" in _attachments) exitwith { if !(alive _unit) then { EPOCH_HandleDamageTimeOut = diag_ticktime + 1; [_unit,_source,Epoch_personalToken] remoteExec ["EPOCH_server_revivePlayer",2];