2014-10-31 21:09:26 +00:00
|
|
|
|
|
|
|
#ifndef EDUKE32_EVENTS_DEFS_H_
|
|
|
|
#define EDUKE32_EVENTS_DEFS_H_
|
|
|
|
|
|
|
|
// the order of these can't be changed or else compatibility with EDuke 2.0 mods will break
|
|
|
|
// KEEPINSYNC with EventNames[] and lunatic/con_lang.lua
|
|
|
|
enum GameEvent_t {
|
|
|
|
EVENT_INIT, // 0
|
|
|
|
EVENT_ENTERLEVEL,
|
|
|
|
EVENT_RESETWEAPONS,
|
|
|
|
EVENT_RESETINVENTORY,
|
|
|
|
EVENT_HOLSTER,
|
|
|
|
EVENT_LOOKLEFT, // 5
|
|
|
|
EVENT_LOOKRIGHT,
|
|
|
|
EVENT_SOARUP,
|
|
|
|
EVENT_SOARDOWN,
|
|
|
|
EVENT_CROUCH,
|
|
|
|
EVENT_JUMP, // 10
|
|
|
|
EVENT_RETURNTOCENTER,
|
|
|
|
EVENT_LOOKUP,
|
|
|
|
EVENT_LOOKDOWN,
|
|
|
|
EVENT_AIMUP,
|
|
|
|
EVENT_FIRE, // 15
|
|
|
|
EVENT_CHANGEWEAPON,
|
|
|
|
EVENT_GETSHOTRANGE,
|
|
|
|
EVENT_GETAUTOAIMANGLE,
|
|
|
|
EVENT_GETLOADTILE,
|
|
|
|
EVENT_CHEATGETSTEROIDS, // 20
|
|
|
|
EVENT_CHEATGETHEAT,
|
|
|
|
EVENT_CHEATGETBOOT,
|
|
|
|
EVENT_CHEATGETSHIELD,
|
|
|
|
EVENT_CHEATGETSCUBA,
|
|
|
|
EVENT_CHEATGETHOLODUKE, // 25
|
|
|
|
EVENT_CHEATGETJETPACK,
|
|
|
|
EVENT_CHEATGETFIRSTAID,
|
|
|
|
EVENT_QUICKKICK,
|
|
|
|
EVENT_INVENTORY,
|
|
|
|
EVENT_USENIGHTVISION, // 30
|
|
|
|
EVENT_USESTEROIDS,
|
|
|
|
EVENT_INVENTORYLEFT,
|
|
|
|
EVENT_INVENTORYRIGHT,
|
|
|
|
EVENT_HOLODUKEON,
|
|
|
|
EVENT_HOLODUKEOFF, // 35
|
|
|
|
EVENT_USEMEDKIT,
|
|
|
|
EVENT_USEJETPACK,
|
|
|
|
EVENT_TURNAROUND,
|
|
|
|
EVENT_DISPLAYWEAPON,
|
|
|
|
EVENT_FIREWEAPON, // 40
|
|
|
|
EVENT_SELECTWEAPON,
|
|
|
|
EVENT_MOVEFORWARD,
|
|
|
|
EVENT_MOVEBACKWARD,
|
|
|
|
EVENT_TURNLEFT,
|
|
|
|
EVENT_TURNRIGHT, // 45
|
|
|
|
EVENT_STRAFELEFT,
|
|
|
|
EVENT_STRAFERIGHT,
|
|
|
|
EVENT_WEAPKEY1,
|
|
|
|
EVENT_WEAPKEY2,
|
|
|
|
EVENT_WEAPKEY3, // 50
|
|
|
|
EVENT_WEAPKEY4,
|
|
|
|
EVENT_WEAPKEY5,
|
|
|
|
EVENT_WEAPKEY6,
|
|
|
|
EVENT_WEAPKEY7,
|
|
|
|
EVENT_WEAPKEY8, // 55
|
|
|
|
EVENT_WEAPKEY9,
|
|
|
|
EVENT_WEAPKEY10,
|
|
|
|
EVENT_DRAWWEAPON,
|
|
|
|
EVENT_DISPLAYCROSSHAIR,
|
|
|
|
EVENT_DISPLAYREST, // 60
|
|
|
|
EVENT_DISPLAYSBAR,
|
|
|
|
EVENT_RESETPLAYER,
|
|
|
|
EVENT_INCURDAMAGE,
|
|
|
|
EVENT_AIMDOWN,
|
|
|
|
EVENT_GAME, // 65
|
|
|
|
EVENT_PREVIOUSWEAPON,
|
|
|
|
EVENT_NEXTWEAPON,
|
|
|
|
EVENT_SWIMUP,
|
|
|
|
EVENT_SWIMDOWN,
|
|
|
|
EVENT_GETMENUTILE, // 70
|
|
|
|
EVENT_SPAWN,
|
|
|
|
EVENT_LOGO,
|
|
|
|
EVENT_EGS,
|
|
|
|
EVENT_DOFIRE,
|
|
|
|
EVENT_PRESSEDFIRE, // 75
|
|
|
|
EVENT_USE,
|
|
|
|
EVENT_PROCESSINPUT,
|
|
|
|
EVENT_FAKEDOMOVETHINGS,
|
|
|
|
EVENT_DISPLAYROOMS,
|
|
|
|
EVENT_KILLIT, // 80
|
|
|
|
EVENT_LOADACTOR,
|
|
|
|
EVENT_DISPLAYBONUSSCREEN,
|
|
|
|
EVENT_DISPLAYMENU,
|
|
|
|
EVENT_DISPLAYMENUREST,
|
|
|
|
EVENT_DISPLAYLOADINGSCREEN, // 85
|
|
|
|
EVENT_ANIMATESPRITES,
|
|
|
|
EVENT_NEWGAME,
|
|
|
|
EVENT_SOUND,
|
|
|
|
EVENT_CHECKTOUCHDAMAGE,
|
|
|
|
EVENT_CHECKFLOORDAMAGE, // 90
|
|
|
|
EVENT_LOADGAME,
|
|
|
|
EVENT_SAVEGAME,
|
|
|
|
EVENT_PREGAME,
|
|
|
|
EVENT_CHANGEMENU,
|
|
|
|
EVENT_DAMAGEHPLANE, // 95
|
|
|
|
EVENT_ACTIVATECHEAT,
|
2015-01-25 12:16:58 +00:00
|
|
|
EVENT_DISPLAYINACTIVEMENU,
|
|
|
|
EVENT_DISPLAYINACTIVEMENUREST,
|
2015-02-11 05:22:07 +00:00
|
|
|
EVENT_CUTSCENE,
|
2015-02-11 07:08:27 +00:00
|
|
|
EVENT_DISPLAYCURSOR,
|
2015-03-08 07:57:47 +00:00
|
|
|
EVENT_DISPLAYLEVELSTATS,
|
2015-03-08 07:58:06 +00:00
|
|
|
EVENT_DISPLAYCAMERAOSD,
|
2015-03-08 07:58:24 +00:00
|
|
|
EVENT_DISPLAYROOMSCAMERA,
|
|
|
|
EVENT_DISPLAYSTART,
|
2015-03-27 12:29:05 +00:00
|
|
|
EVENT_WORLD,
|
|
|
|
EVENT_PREWORLD,
|
|
|
|
EVENT_PRELEVEL,
|
2015-03-30 05:57:30 +00:00
|
|
|
EVENT_DISPLAYSPIT,
|
|
|
|
EVENT_DISPLAYFIST,
|
|
|
|
EVENT_DISPLAYKNEE,
|
|
|
|
EVENT_DISPLAYKNUCKLES,
|
|
|
|
EVENT_DISPLAYSCUBA,
|
|
|
|
EVENT_DISPLAYTIP,
|
|
|
|
EVENT_DISPLAYACCESS,
|
2016-01-21 19:35:22 +00:00
|
|
|
EVENT_MOVESECTOR,
|
2016-01-21 19:35:25 +00:00
|
|
|
EVENT_MOVEEFFECTORS,
|
2017-06-24 09:20:50 +00:00
|
|
|
EVENT_DISPLAYOVERHEADMAPTEXT,
|
2017-06-24 09:21:07 +00:00
|
|
|
EVENT_PRELOADGAME,
|
|
|
|
EVENT_POSTSAVEGAME,
|
2017-11-29 07:29:04 +00:00
|
|
|
EVENT_PRECUTSCENE,
|
2017-11-29 07:29:07 +00:00
|
|
|
EVENT_SKIPCUTSCENE,
|
2017-11-29 07:29:11 +00:00
|
|
|
EVENT_SCREEN,
|
2017-11-29 07:29:23 +00:00
|
|
|
EVENT_DISPLAYROOMSEND,
|
|
|
|
EVENT_DISPLAYEND,
|
2017-11-29 07:29:37 +00:00
|
|
|
EVENT_OPENMENUSOUND,
|
2017-11-29 07:29:40 +00:00
|
|
|
EVENT_RECOGSOUND,
|
2017-11-29 07:29:44 +00:00
|
|
|
EVENT_UPDATESCREENAREA,
|
|
|
|
EVENT_DISPLAYBORDER,
|
2017-12-12 05:13:46 +00:00
|
|
|
EVENT_SETDEFAULTS,
|
2018-01-26 04:34:38 +00:00
|
|
|
EVENT_MAINMENUSCREEN,
|
|
|
|
EVENT_NEWGAMESCREEN,
|
|
|
|
EVENT_ENDLEVELSCREEN,
|
|
|
|
EVENT_EXITGAMESCREEN,
|
|
|
|
EVENT_EXITPROGRAMSCREEN,
|
2018-01-26 04:35:23 +00:00
|
|
|
EVENT_ALTWEAPON,
|
2018-01-28 04:31:04 +00:00
|
|
|
EVENT_DISPLAYOVERHEADMAPPLAYER,
|
2018-01-29 02:14:16 +00:00
|
|
|
EVENT_MENUCURSORLEFT,
|
|
|
|
EVENT_MENUCURSORRIGHT,
|
|
|
|
EVENT_MENUCURSORSHADE,
|
|
|
|
EVENT_MENUSHADESELECTED,
|
2018-01-29 11:14:08 +00:00
|
|
|
EVENT_PLAYLEVELMUSICSLOT,
|
|
|
|
EVENT_CONTINUELEVELMUSICSLOT,
|
2018-03-01 13:46:52 +00:00
|
|
|
EVENT_DISPLAYPOINTER,
|
2014-10-31 21:09:26 +00:00
|
|
|
#ifdef LUNATIC
|
|
|
|
EVENT_ANIMATEALLSPRITES,
|
|
|
|
#endif
|
|
|
|
MAXEVENTS
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|