Subversion Repositories eduke32

Rev

Rev 4987 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4987 Rev 5003
1
1
2
#ifndef EDUKE32_EVENTS_DEFS_H_
2
#ifndef EDUKE32_EVENTS_DEFS_H_
3
#define EDUKE32_EVENTS_DEFS_H_
3
#define EDUKE32_EVENTS_DEFS_H_
4
4
5
// the order of these can't be changed or else compatibility with EDuke 2.0 mods will break
5
// the order of these can't be changed or else compatibility with EDuke 2.0 mods will break
6
// KEEPINSYNC with EventNames[] and lunatic/con_lang.lua
6
// KEEPINSYNC with EventNames[] and lunatic/con_lang.lua
7
enum GameEvent_t {
7
enum GameEvent_t {
8
    EVENT_INIT,  // 0
8
    EVENT_INIT,  // 0
9
    EVENT_ENTERLEVEL,
9
    EVENT_ENTERLEVEL,
10
    EVENT_RESETWEAPONS,
10
    EVENT_RESETWEAPONS,
11
    EVENT_RESETINVENTORY,
11
    EVENT_RESETINVENTORY,
12
    EVENT_HOLSTER,
12
    EVENT_HOLSTER,
13
    EVENT_LOOKLEFT,  // 5
13
    EVENT_LOOKLEFT,  // 5
14
    EVENT_LOOKRIGHT,
14
    EVENT_LOOKRIGHT,
15
    EVENT_SOARUP,
15
    EVENT_SOARUP,
16
    EVENT_SOARDOWN,
16
    EVENT_SOARDOWN,
17
    EVENT_CROUCH,
17
    EVENT_CROUCH,
18
    EVENT_JUMP,  // 10
18
    EVENT_JUMP,  // 10
19
    EVENT_RETURNTOCENTER,
19
    EVENT_RETURNTOCENTER,
20
    EVENT_LOOKUP,
20
    EVENT_LOOKUP,
21
    EVENT_LOOKDOWN,
21
    EVENT_LOOKDOWN,
22
    EVENT_AIMUP,
22
    EVENT_AIMUP,
23
    EVENT_FIRE,  // 15
23
    EVENT_FIRE,  // 15
24
    EVENT_CHANGEWEAPON,
24
    EVENT_CHANGEWEAPON,
25
    EVENT_GETSHOTRANGE,
25
    EVENT_GETSHOTRANGE,
26
    EVENT_GETAUTOAIMANGLE,
26
    EVENT_GETAUTOAIMANGLE,
27
    EVENT_GETLOADTILE,
27
    EVENT_GETLOADTILE,
28
    EVENT_CHEATGETSTEROIDS,  // 20
28
    EVENT_CHEATGETSTEROIDS,  // 20
29
    EVENT_CHEATGETHEAT,
29
    EVENT_CHEATGETHEAT,
30
    EVENT_CHEATGETBOOT,
30
    EVENT_CHEATGETBOOT,
31
    EVENT_CHEATGETSHIELD,
31
    EVENT_CHEATGETSHIELD,
32
    EVENT_CHEATGETSCUBA,
32
    EVENT_CHEATGETSCUBA,
33
    EVENT_CHEATGETHOLODUKE,  // 25
33
    EVENT_CHEATGETHOLODUKE,  // 25
34
    EVENT_CHEATGETJETPACK,
34
    EVENT_CHEATGETJETPACK,
35
    EVENT_CHEATGETFIRSTAID,
35
    EVENT_CHEATGETFIRSTAID,
36
    EVENT_QUICKKICK,
36
    EVENT_QUICKKICK,
37
    EVENT_INVENTORY,
37
    EVENT_INVENTORY,
38
    EVENT_USENIGHTVISION,  // 30
38
    EVENT_USENIGHTVISION,  // 30
39
    EVENT_USESTEROIDS,
39
    EVENT_USESTEROIDS,
40
    EVENT_INVENTORYLEFT,
40
    EVENT_INVENTORYLEFT,
41
    EVENT_INVENTORYRIGHT,
41
    EVENT_INVENTORYRIGHT,
42
    EVENT_HOLODUKEON,
42
    EVENT_HOLODUKEON,
43
    EVENT_HOLODUKEOFF,  // 35
43
    EVENT_HOLODUKEOFF,  // 35
44
    EVENT_USEMEDKIT,
44
    EVENT_USEMEDKIT,
45
    EVENT_USEJETPACK,
45
    EVENT_USEJETPACK,
46
    EVENT_TURNAROUND,
46
    EVENT_TURNAROUND,
47
    EVENT_DISPLAYWEAPON,
47
    EVENT_DISPLAYWEAPON,
48
    EVENT_FIREWEAPON,  // 40
48
    EVENT_FIREWEAPON,  // 40
49
    EVENT_SELECTWEAPON,
49
    EVENT_SELECTWEAPON,
50
    EVENT_MOVEFORWARD,
50
    EVENT_MOVEFORWARD,
51
    EVENT_MOVEBACKWARD,
51
    EVENT_MOVEBACKWARD,
52
    EVENT_TURNLEFT,
52
    EVENT_TURNLEFT,
53
    EVENT_TURNRIGHT,  // 45
53
    EVENT_TURNRIGHT,  // 45
54
    EVENT_STRAFELEFT,
54
    EVENT_STRAFELEFT,
55
    EVENT_STRAFERIGHT,
55
    EVENT_STRAFERIGHT,
56
    EVENT_WEAPKEY1,
56
    EVENT_WEAPKEY1,
57
    EVENT_WEAPKEY2,
57
    EVENT_WEAPKEY2,
58
    EVENT_WEAPKEY3,  // 50
58
    EVENT_WEAPKEY3,  // 50
59
    EVENT_WEAPKEY4,
59
    EVENT_WEAPKEY4,
60
    EVENT_WEAPKEY5,
60
    EVENT_WEAPKEY5,
61
    EVENT_WEAPKEY6,
61
    EVENT_WEAPKEY6,
62
    EVENT_WEAPKEY7,
62
    EVENT_WEAPKEY7,
63
    EVENT_WEAPKEY8,  // 55
63
    EVENT_WEAPKEY8,  // 55
64
    EVENT_WEAPKEY9,
64
    EVENT_WEAPKEY9,
65
    EVENT_WEAPKEY10,
65
    EVENT_WEAPKEY10,
66
    EVENT_DRAWWEAPON,
66
    EVENT_DRAWWEAPON,
67
    EVENT_DISPLAYCROSSHAIR,
67
    EVENT_DISPLAYCROSSHAIR,
68
    EVENT_DISPLAYREST,  // 60
68
    EVENT_DISPLAYREST,  // 60
69
    EVENT_DISPLAYSBAR,
69
    EVENT_DISPLAYSBAR,
70
    EVENT_RESETPLAYER,
70
    EVENT_RESETPLAYER,
71
    EVENT_INCURDAMAGE,
71
    EVENT_INCURDAMAGE,
72
    EVENT_AIMDOWN,
72
    EVENT_AIMDOWN,
73
    EVENT_GAME,  // 65
73
    EVENT_GAME,  // 65
74
    EVENT_PREVIOUSWEAPON,
74
    EVENT_PREVIOUSWEAPON,
75
    EVENT_NEXTWEAPON,
75
    EVENT_NEXTWEAPON,
76
    EVENT_SWIMUP,
76
    EVENT_SWIMUP,
77
    EVENT_SWIMDOWN,
77
    EVENT_SWIMDOWN,
78
    EVENT_GETMENUTILE,  // 70
78
    EVENT_GETMENUTILE,  // 70
79
    EVENT_SPAWN,
79
    EVENT_SPAWN,
80
    EVENT_LOGO,
80
    EVENT_LOGO,
81
    EVENT_EGS,
81
    EVENT_EGS,
82
    EVENT_DOFIRE,
82
    EVENT_DOFIRE,
83
    EVENT_PRESSEDFIRE,  // 75
83
    EVENT_PRESSEDFIRE,  // 75
84
    EVENT_USE,
84
    EVENT_USE,
85
    EVENT_PROCESSINPUT,
85
    EVENT_PROCESSINPUT,
86
    EVENT_FAKEDOMOVETHINGS,
86
    EVENT_FAKEDOMOVETHINGS,
87
    EVENT_DISPLAYROOMS,
87
    EVENT_DISPLAYROOMS,
88
    EVENT_KILLIT,  // 80
88
    EVENT_KILLIT,  // 80
89
    EVENT_LOADACTOR,
89
    EVENT_LOADACTOR,
90
    EVENT_DISPLAYBONUSSCREEN,
90
    EVENT_DISPLAYBONUSSCREEN,
91
    EVENT_DISPLAYMENU,
91
    EVENT_DISPLAYMENU,
92
    EVENT_DISPLAYMENUREST,
92
    EVENT_DISPLAYMENUREST,
93
    EVENT_DISPLAYLOADINGSCREEN,  // 85
93
    EVENT_DISPLAYLOADINGSCREEN,  // 85
94
    EVENT_ANIMATESPRITES,
94
    EVENT_ANIMATESPRITES,
95
    EVENT_NEWGAME,
95
    EVENT_NEWGAME,
96
    EVENT_SOUND,
96
    EVENT_SOUND,
97
    EVENT_CHECKTOUCHDAMAGE,
97
    EVENT_CHECKTOUCHDAMAGE,
98
    EVENT_CHECKFLOORDAMAGE,  // 90
98
    EVENT_CHECKFLOORDAMAGE,  // 90
99
    EVENT_LOADGAME,
99
    EVENT_LOADGAME,
100
    EVENT_SAVEGAME,
100
    EVENT_SAVEGAME,
101
    EVENT_PREGAME,
101
    EVENT_PREGAME,
102
    EVENT_CHANGEMENU,
102
    EVENT_CHANGEMENU,
103
    EVENT_DAMAGEHPLANE,  // 95
103
    EVENT_DAMAGEHPLANE,  // 95
104
    EVENT_ACTIVATECHEAT,
104
    EVENT_ACTIVATECHEAT,
105
    EVENT_DISPLAYINACTIVEMENU,
105
    EVENT_DISPLAYINACTIVEMENU,
106
    EVENT_DISPLAYINACTIVEMENUREST,
106
    EVENT_DISPLAYINACTIVEMENUREST,
107
    EVENT_CUTSCENE,
107
    EVENT_CUTSCENE,
-
 
108
    EVENT_DISPLAYCURSOR,
108
#ifdef LUNATIC
109
#ifdef LUNATIC
109
    EVENT_ANIMATEALLSPRITES,
110
    EVENT_ANIMATEALLSPRITES,
110
#endif
111
#endif
111
    MAXEVENTS
112
    MAXEVENTS
112
};
113
};
113
114
114
#endif
115
#endif
115
 
116