mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Cleanup
This commit is contained in:
parent
3c65c422b1
commit
a0c2a00777
@ -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
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Author: PabstMirror
|
||||
* Author: commy2, PabstMirror
|
||||
* Handles when a unit gets knocked out. Ends surrendering.
|
||||
*
|
||||
* Arguments:
|
||||
|
@ -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);
|
||||
};
|
||||
}];
|
||||
|
Loading…
Reference in New Issue
Block a user