ACE3/addons/parachute/functions/fnc_doLanding.sqf
Joko 48f44813ea Update to ACE Standarts
Fix Adding anytime B_Parachute
Fix Reserve Parachute Added if Normal Parachute Open
2015-05-19 18:17:10 +02:00

28 lines
695 B
Plaintext

/*
* Author: Garth 'L-H' de Wet
* Performs the landing animation fix
*
* Arguments:
* 0: unit <OBJECT>
*
* Return Value:
* None
*
* Example:
* [player] call ACE_Parachute_fnc_doLanding;
*
* Public: No
*/
#include "script_component.hpp"
private ["_unit"];
PARAMS_1(_unit);
GVAR(PFH) = false;
[_unit, "AmovPercMevaSrasWrflDf_AmovPknlMstpSrasWrflDnon", 2] call EFUNC(common,doAnimation);
SETVAR(_unit,chuteIsCut,false);
[{
if (time >= ((_this select 0) select 0) + 1) then {
((_this select 0) select 1) playActionNow "Crouch";
[(_this select 1)] call CALLSTACK(cba_fnc_removePerFrameHandler);
};
}, 1, [time,_unit]] call CALLSTACK(cba_fnc_addPerFrameHandler);