mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Prevent Respawn bug
Change to Macros
This commit is contained in:
parent
75be6a1906
commit
e40310189e
@ -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));
|
||||
};
|
||||
};
|
||||
};
|
17
addons/parachute/XEH_respawn.sqf
Normal file
17
addons/parachute/XEH_respawn.sqf
Normal 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);
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user