From bf267246bf50697943af3b95d0b05d0e4ce14cf9 Mon Sep 17 00:00:00 2001 From: ViperMaul Date: Fri, 4 Sep 2015 07:48:16 -0700 Subject: [PATCH] Adding same ADV special case to BASIC handle damage. --- addons/medical/functions/fnc_handleDamage_basic.sqf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/addons/medical/functions/fnc_handleDamage_basic.sqf b/addons/medical/functions/fnc_handleDamage_basic.sqf index a37ccea2b3..48786b4686 100644 --- a/addons/medical/functions/fnc_handleDamage_basic.sqf +++ b/addons/medical/functions/fnc_handleDamage_basic.sqf @@ -16,6 +16,12 @@ private ["_damageBodyParts", "_cache_params", "_cache_damages"]; params ["_target"]; TRACE_1("ACE_DEBUG: HandleDamage_BASIC Called",_target); +// bug, apparently can fire for remote units in special cases +if !(local _unit) exitWith { + TRACE_2("HandleDamage BASIC on remote unit!",_unit, isServer); + nil +}; + _damageBodyParts = _target getvariable [QGVAR(bodyPartStatus), [0,0,0,0,0,0]]; _cache_params = _target getVariable [QGVAR(cachedHandleDamageParams), []]; _cache_damages = _target getVariable QGVAR(cachedDamages);