mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
a48db26996
* Disable (un)load patient action if unit is dead but was uncoscious before * Remove handcuffs on death (prevents stand-up ragoll restart), Don't show load patient and captive at the same time * Only allow unloading from outside - fix #5525 as discussed * Also prevent unloading captives from inside * Add debug logging
74 lines
1.6 KiB
C++
74 lines
1.6 KiB
C++
|
|
class Extended_PreStart_EventHandlers {
|
|
class ADDON {
|
|
init = QUOTE(call COMPILE_FILE(XEH_preStart));
|
|
};
|
|
};
|
|
|
|
class Extended_PreInit_EventHandlers {
|
|
class ADDON {
|
|
init = QUOTE(call COMPILE_FILE(XEH_preInit));
|
|
};
|
|
};
|
|
|
|
class Extended_PostInit_EventHandlers {
|
|
class ADDON {
|
|
init = QUOTE(call COMPILE_FILE(XEH_postInit));
|
|
};
|
|
};
|
|
|
|
class Extended_DisplayUnload_EventHandlers {
|
|
class RscDisplayCurator {
|
|
ADDON = QUOTE(call FUNC(handleZeusDisplayChanged));
|
|
};
|
|
};
|
|
|
|
//release escorted captive when entering a vehicle
|
|
class Extended_GetIn_EventHandlers {
|
|
class All {
|
|
class GVAR(AutoDetachCaptive) {
|
|
getIn = QUOTE(_this call FUNC(handleGetIn));
|
|
};
|
|
};
|
|
};
|
|
//reset captive animation after leaving vehicle
|
|
class Extended_GetOut_EventHandlers {
|
|
class All {
|
|
class GVAR(AutoDetachCaptive) {
|
|
getOut = QUOTE(_this call FUNC(handleGetOut));
|
|
};
|
|
};
|
|
};
|
|
//mission start
|
|
class Extended_InitPost_EventHandlers {
|
|
class CAManBase {
|
|
class GVAR(InitPost) {
|
|
init = QUOTE(_this call FUNC(handleUnitInitPost));
|
|
};
|
|
};
|
|
};
|
|
//make sure captiveNum is reset on respawn
|
|
class Extended_Respawn_EventHandlers {
|
|
class CAManBase {
|
|
class ADDON {
|
|
respawn = QUOTE(_this call FUNC(handleRespawn));
|
|
};
|
|
};
|
|
};
|
|
|
|
class Extended_Local_EventHandlers {
|
|
class CAManBase {
|
|
class ADDON {
|
|
local = QUOTE(call FUNC(handleLocal));
|
|
};
|
|
};
|
|
};
|
|
|
|
class Extended_Killed_EventHandlers {
|
|
class CAManBase {
|
|
class ADDON {
|
|
killed = QUOTE(_this call FUNC(handleKilled));
|
|
};
|
|
};
|
|
};
|