2015-01-11 16:42:31 +00:00
|
|
|
/*
|
2015-02-02 22:05:03 +00:00
|
|
|
* 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
|
|
|
|
*/
|
2015-02-02 20:52:08 +00:00
|
|
|
#include "script_component.hpp"
|
2015-05-19 19:46:34 +00:00
|
|
|
private["_unit"];
|
|
|
|
_unit = _this select 0;
|
2015-02-02 21:58:24 +00:00
|
|
|
GVAR(PFH) = false;
|
|
|
|
[_unit, "AmovPercMevaSrasWrflDf_AmovPknlMstpSrasWrflDnon", 2] call EFUNC(common,doAnimation);
|
2015-07-28 18:08:38 +00:00
|
|
|
_unit setVariable [QGVAR(chuteIsCut), false, true];
|
2015-02-02 21:58:24 +00:00
|
|
|
[{
|
2015-05-21 16:42:44 +00:00
|
|
|
if (ACE_time >= ((_this select 0) select 0) + 1) then {
|
2015-04-06 16:22:43 +00:00
|
|
|
((_this select 0) select 1) playActionNow "Crouch";
|
|
|
|
[(_this select 1)] call CALLSTACK(cba_fnc_removePerFrameHandler);
|
|
|
|
};
|
2015-08-04 07:34:31 +00:00
|
|
|
}, 1, [ACE_time,_unit]] call CALLSTACK(CBA_fnc_addPerFrameHandler);
|