This commit is contained in:
PabstMirror 2015-02-15 16:45:13 -06:00
parent 3c65c422b1
commit a0c2a00777
3 changed files with 2 additions and 3 deletions

View File

@ -23,7 +23,7 @@ private "_returnValue";
_returnValue = if (_newSurrenderState) then {
!(_unit getVariable [QGVAR(isSurrendering), false]); //Not currently surrendering
} else {
(_unit getVariable [QGVAR(isSurrendering), false]); //isSurrendering and on the hands up animation - // && {(animationState _unit) == "ACE_AmovPercMstpSsurWnonDnon"};
(_unit getVariable [QGVAR(isSurrendering), false]); //is Surrendering
};
_returnValue

View File

@ -1,5 +1,5 @@
/*
* Author: PabstMirror
* Author: commy2, PabstMirror
* Handles when a unit gets knocked out. Ends surrendering.
*
* Arguments:

View File

@ -50,7 +50,6 @@ if (_state) then {
PARAMS_2(_unit,_newAnimation);
if (_newAnimation != "ACE_AmovPercMstpSsurWnonDnon") then {
ERROR("Surrender animation failed");
systemChat "You Stop Surrendering";
[_unit, false] call FUNC(surrender);
};
}];