From d3eae58237300c36db4f310a8abdba997c99a3b8 Mon Sep 17 00:00:00 2001 From: AKALegman Date: Sun, 7 Jun 2015 12:17:52 +0100 Subject: [PATCH] Fixed Zeus Unconscious --- addons/medical/functions/fnc_setUnconscious.sqf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/addons/medical/functions/fnc_setUnconscious.sqf b/addons/medical/functions/fnc_setUnconscious.sqf index 28ee530797..f296bd13df 100644 --- a/addons/medical/functions/fnc_setUnconscious.sqf +++ b/addons/medical/functions/fnc_setUnconscious.sqf @@ -46,8 +46,11 @@ if (_unit == ACE_player) then { }; }; +// check if Zeus is remote controlling AI and treat him like one +_isRemoteControl = (_unit == ACE_player && !isNull (missionNamespace getVariable ["BIS_fnc_moduleRemoteControl_unit", objNull])); + // if we have unconsciousness for AI disabled, we will kill the unit instead -if (!([_unit] call EFUNC(common,isPlayer)) && !_force) then { +if ((!([_unit] call EFUNC(common,isPlayer)) || _isRemoteControl) && !_force) then { _enableUncon = _unit getVariable [QGVAR(enableUnconsciousnessAI), GVAR(enableUnconsciousnessAI)]; if (_enableUncon == 0 or {_enableUncon == 1 and (random 1) < 0.5}) exitWith { [_unit, true] call FUNC(setDead);