Make sure to remove animEH

This commit is contained in:
PabstMirror 2015-03-26 00:53:38 -05:00
parent 811530f180
commit d4d0a0a6de
3 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@
PARAMS_1(_oldUnit); PARAMS_1(_oldUnit);
if (_oldUnit getVariable [QGVAR(isHandcuffed), false]) then { if (_oldUnit getVariable [QGVAR(isHandcuffed), false]) then {
_oldUnit setVariable [QGVAR(isHandcuffed), false, true]; [_oldUnit, false] call FUNC(setSurrendered);
}; };
if (_oldUnit getVariable [QGVAR(isEscorting), false]) then { if (_oldUnit getVariable [QGVAR(isEscorting), false]) then {
@ -26,5 +26,5 @@ if (_oldUnit getVariable [QGVAR(isEscorting), false]) then {
}; };
if (_oldUnit getVariable [QGVAR(isSurrendering), false]) then { if (_oldUnit getVariable [QGVAR(isSurrendering), false]) then {
_oldUnit setVariable [QGVAR(isSurrendering), false, true]; [_oldUnit, false] call FUNC(setSurrendered);
}; };

View File

@ -22,4 +22,3 @@ if (!local _unit) exitWith {};
[_unit, QGVAR(Handcuffed), false] call EFUNC(common,setCaptivityStatus); [_unit, QGVAR(Handcuffed), false] call EFUNC(common,setCaptivityStatus);
[_unit, QGVAR(Surrendered), false] call EFUNC(common,setCaptivityStatus); [_unit, QGVAR(Surrendered), false] call EFUNC(common,setCaptivityStatus);

View File

@ -75,6 +75,7 @@ if (_state) then {
}; };
}; };
if (!alive _unit) exitWith {};
if (_unit getVariable ["ACE_isUnconscious", false]) exitWith {}; //don't touch animations if unconscious if (_unit getVariable ["ACE_isUnconscious", false]) exitWith {}; //don't touch animations if unconscious
//if we are in "hands up" animationState, crack it now //if we are in "hands up" animationState, crack it now