Prevent Respawn bug

Change to Macros
This commit is contained in:
Joko 2015-05-19 13:55:25 +02:00
parent 75be6a1906
commit e40310189e
3 changed files with 25 additions and 1 deletions

View File

@ -8,3 +8,10 @@ class Extended_PostInit_EventHandlers {
init = QUOTE(call COMPILE_FILE(XEH_postInit));
};
};
class Extended_Respawn_EventHandlers {
class CAManBase {
class ADDON {
respawn = QUOTE(call COMPILE_FILE(XEH_respawn));
};
};
};

View File

@ -0,0 +1,17 @@
/*
* Author: joko // Jonas
* Reset the parachute system.
*
* Arguments:
* None
*
* Return Value:
* None
*
* Example:
* None
*
* Public: No
*/
#include "script_component.hpp"
SETVAR(_unit,chuteIsCuted,false);

View File

@ -18,7 +18,7 @@ private ["_unit"];
_unit = _this select 0;
GVAR(PFH) = false;
[_unit, "AmovPercMevaSrasWrflDf_AmovPknlMstpSrasWrflDnon", 2] call EFUNC(common,doAnimation);
_unit setVariable[QGVAR(chuteIsCuted),true];
SETVAR(_unit,chuteIsCuted,false);
[{
if (time >= ((_this select 0) select 0) + 1) then {
((_this select 0) select 1) playActionNow "Crouch";