2015-08-26 04:11:52 +00:00
|
|
|
/*
|
|
|
|
Header: script_xeh.hpp
|
|
|
|
|
|
|
|
Description:
|
|
|
|
Used internally.
|
|
|
|
*/
|
2015-04-04 14:33:53 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// MACRO: EXTENDED_EVENTHANDLERS
|
2015-08-26 04:11:52 +00:00
|
|
|
// Add all XEH event handlers
|
2015-04-04 14:33:53 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2018-02-06 13:52:25 +00:00
|
|
|
#define EXTENDED_EVENTHANDLERS init = "call cba_xeh_fnc_init"; \
|
|
|
|
fired = "call cba_xeh_fnc_fired"; \
|
|
|
|
animChanged = "call cba_xeh_fnc_animChanged"; \
|
|
|
|
animDone = "call cba_xeh_fnc_animDone"; \
|
|
|
|
animStateChanged = "call cba_xeh_fnc_animStateChanged"; \
|
2023-09-07 04:07:45 +00:00
|
|
|
cargoLoaded = "call cba_xeh_fnc_cargoLoaded"; \
|
|
|
|
cargoUnloaded = "call cba_xeh_fnc_cargoUnloaded"; \
|
2018-02-06 13:52:25 +00:00
|
|
|
containerClosed = "call cba_xeh_fnc_containerClosed"; \
|
|
|
|
containerOpened = "call cba_xeh_fnc_containerOpened"; \
|
|
|
|
controlsShifted = "call cba_xeh_fnc_controlsShifted"; \
|
|
|
|
dammaged = "call cba_xeh_fnc_dammaged"; \
|
2023-09-07 04:07:45 +00:00
|
|
|
deleted = "call cba_xeh_fnc_deleted"; \
|
|
|
|
disassembled = "call cba_xeh_fnc_disassembled"; \
|
2018-02-06 13:52:25 +00:00
|
|
|
engine = "call cba_xeh_fnc_engine"; \
|
|
|
|
epeContact = "call cba_xeh_fnc_epeContact"; \
|
|
|
|
epeContactEnd = "call cba_xeh_fnc_epeContactEnd"; \
|
|
|
|
epeContactStart = "call cba_xeh_fnc_epeContactStart"; \
|
|
|
|
explosion = "call cba_xeh_fnc_explosion"; \
|
2023-09-07 04:07:45 +00:00
|
|
|
firedMan = "call cba_xeh_fnc_firedMan"; \
|
2018-02-06 13:52:25 +00:00
|
|
|
firedNear = "call cba_xeh_fnc_firedNear"; \
|
|
|
|
fuel = "call cba_xeh_fnc_cba_xeh_fuel"; \
|
|
|
|
gear = "call cba_xeh_fnc_gear"; \
|
2023-09-07 04:07:45 +00:00
|
|
|
gestureChanged = "call cba_xeh_fnc_gestureChanged"; \
|
|
|
|
gestureDone = "call cba_xeh_fnc_gestureDone"; \
|
2018-02-06 13:52:25 +00:00
|
|
|
getIn = "call cba_xeh_fnc_getIn"; \
|
|
|
|
getInMan = "call cba_xeh_fnc_getInMan"; \
|
|
|
|
getOut = "call cba_xeh_fnc_getOut"; \
|
|
|
|
getOutMan = "call cba_xeh_fnc_getOutMan"; \
|
|
|
|
hit = "call cba_xeh_fnc_hit"; \
|
|
|
|
hitPart = "call cba_xeh_fnc_hitPart"; \
|
|
|
|
incomingMissile = "call cba_xeh_fnc_incomingMissile"; \
|
|
|
|
inventoryClosed = "call cba_xeh_fnc_inventoryClosed"; \
|
|
|
|
inventoryOpened = "call cba_xeh_fnc_inventoryOpened"; \
|
|
|
|
killed = "call cba_xeh_fnc_killed"; \
|
|
|
|
landedTouchDown = "call cba_xeh_fnc_landedTouchDown"; \
|
|
|
|
landedStopped = "call cba_xeh_fnc_landedStopped"; \
|
|
|
|
local = "call cba_xeh_fnc_local"; \
|
2023-09-07 04:07:45 +00:00
|
|
|
opticsModeChanged = "call cba_xeh_fnc_opticsModeChanged"; \
|
|
|
|
opticsSwitch = "call cba_xeh_fnc_opticsSwitch"; \
|
2018-02-06 13:52:25 +00:00
|
|
|
put = "call cba_xeh_fnc_put"; \
|
2023-09-07 04:07:45 +00:00
|
|
|
reloaded = "call cba_xeh_fnc_reloaded"; \
|
|
|
|
respawn = "call cba_xeh_fnc_respawn"; \
|
|
|
|
ropeAttach = "call cba_xeh_fnc_ropeAttach"; \
|
|
|
|
ropeBreak = "call cba_xeh_fnc_ropeBreak"; \
|
2018-02-06 13:52:25 +00:00
|
|
|
seatSwitched = "call cba_xeh_fnc_seatSwitched"; \
|
|
|
|
seatSwitchedMan = "call cba_xeh_fnc_seatSwitchedMan"; \
|
2023-09-07 04:07:45 +00:00
|
|
|
slotItemChanged = "call cba_xeh_fnc_slotItemChanged"; \
|
|
|
|
suppressed = "call cba_xeh_fnc_suppressed"; \
|
2018-02-06 13:52:25 +00:00
|
|
|
soundPlayed = "call cba_xeh_fnc_soundPlayed"; \
|
2023-09-07 04:07:45 +00:00
|
|
|
take = "call cba_xeh_fnc_take"; \
|
|
|
|
turnIn = "call cba_xeh_fnc_turnIn"; \
|
|
|
|
turnOut = "call cba_xeh_fnc_turnOut"; \
|
|
|
|
visionModeChanged = "call cba_xeh_fnc_visionModeChanged"; \
|
2018-02-06 13:52:25 +00:00
|
|
|
weaponAssembled = "call cba_xeh_fnc_weaponAssembled"; \
|
|
|
|
weaponDisassembled = "call cba_xeh_fnc_weaponDisassembled"; \
|
|
|
|
weaponDeployed = "call cba_xeh_fnc_weaponDeployed"; \
|
2023-09-07 04:07:45 +00:00
|
|
|
weaponRested = "call cba_xeh_fnc_weaponRested";
|
|
|
|
|
2015-04-04 14:33:53 +00:00
|
|
|
|
2018-02-06 13:52:25 +00:00
|
|
|
/*
|
2015-08-26 04:11:52 +00:00
|
|
|
MACRO: DELETE_EVENTHANDLERS
|
|
|
|
|
2016-02-06 16:31:41 +00:00
|
|
|
Removes all event handlers.
|
2015-08-26 04:11:52 +00:00
|
|
|
*/
|
2015-04-04 14:33:53 +00:00
|
|
|
|
2016-02-06 16:31:41 +00:00
|
|
|
#define DELETE_EVENTHANDLERS init = ""; \
|
|
|
|
fired = ""; \
|
|
|
|
animChanged = ""; \
|
|
|
|
animDone = ""; \
|
|
|
|
animStateChanged = ""; \
|
2023-09-07 04:07:45 +00:00
|
|
|
cargoLoaded = ""; \
|
|
|
|
cargoUnloaded = ""; \
|
2016-02-06 16:31:41 +00:00
|
|
|
containerClosed = ""; \
|
|
|
|
containerOpened = ""; \
|
|
|
|
controlsShifted = ""; \
|
|
|
|
dammaged = ""; \
|
2023-09-07 04:07:45 +00:00
|
|
|
deleted = ""; \
|
|
|
|
disassembled = ""; \
|
2016-02-06 16:31:41 +00:00
|
|
|
engine = ""; \
|
|
|
|
epeContact = ""; \
|
|
|
|
epeContactEnd = ""; \
|
|
|
|
epeContactStart = ""; \
|
|
|
|
explosion = ""; \
|
2023-09-07 04:07:45 +00:00
|
|
|
firedMan = ""; \
|
2016-02-06 16:31:41 +00:00
|
|
|
firedNear = ""; \
|
|
|
|
fuel = ""; \
|
|
|
|
gear = ""; \
|
2023-09-07 04:07:45 +00:00
|
|
|
gestureChanged = ""; \
|
|
|
|
gestureDone = "" \
|
2016-02-06 16:31:41 +00:00
|
|
|
getIn = ""; \
|
2016-06-24 17:16:12 +00:00
|
|
|
getInMan = ""; \
|
2016-02-06 16:31:41 +00:00
|
|
|
getOut = ""; \
|
2016-06-24 17:16:12 +00:00
|
|
|
getOutMan = ""; \
|
2016-02-06 16:31:41 +00:00
|
|
|
hit = ""; \
|
|
|
|
hitPart = ""; \
|
|
|
|
incomingMissile = ""; \
|
|
|
|
inventoryClosed = ""; \
|
|
|
|
inventoryOpened = ""; \
|
|
|
|
killed = ""; \
|
|
|
|
landedTouchDown = ""; \
|
|
|
|
landedStopped = ""; \
|
|
|
|
local = ""; \
|
2023-09-07 04:07:45 +00:00
|
|
|
opticsModeChanged = ""; \
|
|
|
|
opticsSwitch = ""; \
|
2016-02-06 16:31:41 +00:00
|
|
|
put = ""; \
|
2023-09-07 04:07:45 +00:00
|
|
|
reloaded = ""; \
|
|
|
|
respawn = ""; \
|
|
|
|
ropeAttach = ""; \
|
|
|
|
ropeBreak = ""; \
|
2016-02-06 16:31:41 +00:00
|
|
|
seatSwitched = ""; \
|
2018-02-06 13:52:25 +00:00
|
|
|
seatSwitchedMan = ""; \
|
2016-02-06 16:31:41 +00:00
|
|
|
soundPlayed = ""; \
|
2023-09-07 04:07:45 +00:00
|
|
|
suppressed = ""; \
|
|
|
|
take = ""; \
|
|
|
|
turnIn = ""; \
|
|
|
|
turnOut = ""; \
|
|
|
|
visionModeChanged = ""; \
|
2016-02-06 16:31:41 +00:00
|
|
|
weaponAssembled = ""; \
|
|
|
|
weaponDisassembled = ""; \
|
|
|
|
weaponDeployed = ""; \
|
2023-09-07 04:07:45 +00:00
|
|
|
weaponRested = "";
|