Subversion Repositories eduke32

Rev

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

Rev 4968 Rev 4969
1
//-------------------------------------------------------------------------
1
//-------------------------------------------------------------------------
2
/*
2
/*
3
Copyright (C) 2010 EDuke32 developers and contributors
3
Copyright (C) 2010 EDuke32 developers and contributors
4

4

5
This file is part of EDuke32.
5
This file is part of EDuke32.
6

6

7
EDuke32 is free software; you can redistribute it and/or
7
EDuke32 is free software; you can redistribute it and/or
8
modify it under the terms of the GNU General Public License version 2
8
modify it under the terms of the GNU General Public License version 2
9
as published by the Free Software Foundation.
9
as published by the Free Software Foundation.
10

10

11
This program is distributed in the hope that it will be useful,
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14

14

15
See the GNU General Public License for more details.
15
See the GNU General Public License for more details.
16

16

17
You should have received a copy of the GNU General Public License
17
You should have received a copy of the GNU General Public License
18
along with this program; if not, write to the Free Software
18
along with this program; if not, write to the Free Software
19
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
19
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
20
*/
20
*/
21
//-------------------------------------------------------------------------
21
//-------------------------------------------------------------------------
22
22
23
#ifndef gamedef_h_
23
#ifndef gamedef_h_
24
#define gamedef_h_
24
#define gamedef_h_
25
25
26
#include "build.h"  // hashtable_t
26
#include "build.h"  // hashtable_t
27
#include "common.h"  // tokenlist
27
#include "common.h"  // tokenlist
28
28
29
#ifdef __cplusplus
29
#ifdef __cplusplus
30
extern "C" {
30
extern "C" {
31
#endif
31
#endif
32
32
33
#define MAXGAMEEVENTS   128
33
#define MAXGAMEEVENTS   128
34
#define LABEL_HASPARM2  1
34
#define LABEL_HASPARM2  1
35
#define LABEL_ISSTRING  2
35
#define LABEL_ISSTRING  2
36
36
37
#define MAXCHEATLEN             20
37
#define MAXCHEATLEN             20
38
#define NUMCHEATCODES           (int32_t)ARRAY_SIZE(CheatStrings)
38
#define NUMCHEATCODES           (int32_t)ARRAY_SIZE(CheatStrings)
39
39
40
extern intptr_t *insptr;
40
extern intptr_t *insptr;
41
extern hashtable_t h_gamefuncs;
41
extern hashtable_t h_gamefuncs;
42
42
43
#if !defined LUNATIC
43
#if !defined LUNATIC
44
extern hashtable_t h_gamevars;
44
extern hashtable_t h_gamevars;
45
extern hashtable_t h_arrays;
45
extern hashtable_t h_arrays;
46
extern hashtable_t h_labels;
46
extern hashtable_t h_labels;
47
47
48
extern int32_t g_iReturnVarID;      // var ID of "RETURN"
48
extern int32_t g_iReturnVarID;      // var ID of "RETURN"
49
extern int32_t g_iWeaponVarID;      // var ID of "WEAPON"
49
extern int32_t g_iWeaponVarID;      // var ID of "WEAPON"
50
extern int32_t g_iWorksLikeVarID;   // var ID of "WORKSLIKE"
50
extern int32_t g_iWorksLikeVarID;   // var ID of "WORKSLIKE"
51
extern int32_t g_iZRangeVarID;      // var ID of "ZRANGE"
51
extern int32_t g_iZRangeVarID;      // var ID of "ZRANGE"
52
extern int32_t g_iAngRangeVarID;    // var ID of "ANGRANGE"
52
extern int32_t g_iAngRangeVarID;    // var ID of "ANGRANGE"
53
extern int32_t g_iAimAngleVarID;    // var ID of "AUTOAIMANGLE"
53
extern int32_t g_iAimAngleVarID;    // var ID of "AUTOAIMANGLE"
54
extern int32_t g_iLoTagID;          // var ID of "LOTAG"
54
extern int32_t g_iLoTagID;          // var ID of "LOTAG"
55
extern int32_t g_iHiTagID;          // var ID of "HITAG"
55
extern int32_t g_iHiTagID;          // var ID of "HITAG"
56
extern int32_t g_iTextureID;        // var ID of "TEXTURE"
56
extern int32_t g_iTextureID;        // var ID of "TEXTURE"
57
extern int32_t g_iThisActorID;      // var ID of "THISACTOR"
57
extern int32_t g_iThisActorID;      // var ID of "THISACTOR"
58
extern int32_t g_iSpriteVarID;
58
extern int32_t g_iSpriteVarID;
59
extern int32_t g_iSectorVarID;
59
extern int32_t g_iSectorVarID;
60
extern int32_t g_iWallVarID;
60
extern int32_t g_iWallVarID;
61
extern int32_t g_iPlayerVarID;
61
extern int32_t g_iPlayerVarID;
62
extern int32_t g_iActorVarID;
62
extern int32_t g_iActorVarID;
63
63
64
extern intptr_t *apScriptGameEvent[MAXGAMEEVENTS];
64
extern intptr_t *apScriptGameEvent[MAXGAMEEVENTS];
65
#endif
65
#endif
66
66
67
extern int32_t otherp;
67
extern int32_t otherp;
68
extern char CheatStrings[][MAXCHEATLEN];
68
extern char CheatStrings[][MAXCHEATLEN];
69
extern char g_szScriptFileName[BMAX_PATH];
69
extern char g_szScriptFileName[BMAX_PATH];
70
extern int32_t g_totalLines,g_lineNumber;
70
extern int32_t g_totalLines,g_lineNumber;
71
extern int32_t g_numCompilerErrors,g_numCompilerWarnings,g_numQuoteRedefinitions;
71
extern int32_t g_numCompilerErrors,g_numCompilerWarnings,g_numQuoteRedefinitions;
72
extern int32_t g_scriptVersion;
72
extern int32_t g_scriptVersion;
73
extern uint32_t g_scriptDateVersion;  // YYYYMMDD
73
extern uint32_t g_scriptDateVersion;  // YYYYMMDD
74
extern char g_szBuf[1024];
74
extern char g_szBuf[1024];
75
75
76
extern const char *EventNames[];  // MAXEVENTS
76
extern const char *EventNames[];  // MAXEVENTS
77
77
78
#if !defined LUNATIC
78
#if !defined LUNATIC
79
extern intptr_t *g_scriptPtr;
79
extern intptr_t *g_scriptPtr;
80
80
81
typedef struct
81
typedef struct
82
{
82
{
83
    const char *name;
83
    const char *name;
84
    int lId, flags, maxParm2;
84
    int lId, flags, maxParm2;
85
} memberlabel_t;
85
} memberlabel_t;
86
86
87
extern const memberlabel_t SectorLabels[];
87
extern const memberlabel_t SectorLabels[];
88
extern const memberlabel_t WallLabels[];
88
extern const memberlabel_t WallLabels[];
89
extern const memberlabel_t ActorLabels[];
89
extern const memberlabel_t ActorLabels[];
90
extern const memberlabel_t PlayerLabels[];
90
extern const memberlabel_t PlayerLabels[];
91
extern const memberlabel_t ProjectileLabels[];
91
extern const memberlabel_t ProjectileLabels[];
92
extern const memberlabel_t userdeflabels[];
92
extern const memberlabel_t userdeflabels[];
93
extern const memberlabel_t InputLabels[];
93
extern const memberlabel_t InputLabels[];
94
extern const memberlabel_t TsprLabels[];
94
extern const memberlabel_t TsprLabels[];
95
#endif
95
#endif
96
96
97
int32_t C_AllocQuote(int32_t qnum);
97
int32_t C_AllocQuote(int32_t qnum);
98
void C_InitQuotes(void);
98
void C_InitQuotes(void);
99
void C_InitProjectiles(void);
99
void C_InitProjectiles(void);
100
100
101
typedef struct {
101
typedef struct {
102
    int g_i, g_p, g_x;
102
    int g_i, g_p, g_x;
103
    int32_t *g_t;
103
    int32_t *g_t;
104
    spritetype *g_sp;
104
    spritetype *g_sp;
105
    DukePlayer_t *g_pp;
105
    DukePlayer_t *g_pp;
106
    int g_flags;
106
    int g_flags;
107
} vmstate_t;
107
} vmstate_t;
108
108
109
extern vmstate_t vm;
109
extern vmstate_t vm;
110
110
111
void G_DoGameStartup(const int32_t *params);
111
void G_DoGameStartup(const int32_t *params);
112
void C_DefineMusic(int32_t vol, int32_t lev, const char *fn);
112
void C_DefineMusic(int32_t vol, int32_t lev, const char *fn);
113
113
114
#if defined LUNATIC
114
#if defined LUNATIC
115
void C_DefineSound(int32_t sndidx, const char *fn, int32_t args[5]);
115
void C_DefineSound(int32_t sndidx, const char *fn, int32_t args[5]);
116
void C_DefineQuote(int32_t qnum, const char *qstr);
116
void C_DefineQuote(int32_t qnum, const char *qstr);
117
void C_DefineVolumeName(int32_t vol, const char *name);
117
void C_DefineVolumeName(int32_t vol, const char *name);
118
void C_DefineSkillName(int32_t skill, const char *name);
118
void C_DefineSkillName(int32_t skill, const char *name);
119
void C_DefineLevelName(int32_t vol, int32_t lev, const char *fn,
119
void C_DefineLevelName(int32_t vol, int32_t lev, const char *fn,
120
                       int32_t partime, int32_t designertime,
120
                       int32_t partime, int32_t designertime,
121
                       const char *levelname);
121
                       const char *levelname);
122
void C_DefineGameFuncName(int32_t idx, const char *name);
122
void C_DefineGameFuncName(int32_t idx, const char *name);
123
void C_DefineGameType(int32_t idx, int32_t flags, const char *name);
123
void C_DefineGameType(int32_t idx, int32_t flags, const char *name);
124
int32_t C_SetDefName(const char *name);
124
int32_t C_SetDefName(const char *name);
125
void C_DefineProjectile(int32_t j, int32_t what, int32_t val);
125
void C_DefineProjectile(int32_t j, int32_t what, int32_t val);
126
void C_SetCfgName(const char *cfgname);
126
void C_SetCfgName(const char *cfgname);
127
#else
127
#else
128
void C_ReportError(int32_t iError);
128
void C_ReportError(int32_t iError);
129
void C_Compile(const char *filenam);
129
void C_Compile(const char *filenam);
130
130
131
extern int32_t g_errorLineNum;
131
extern int32_t g_errorLineNum;
132
extern int32_t g_tw;
132
extern int32_t g_tw;
133
extern const char *keyw[];
133
extern const char *keyw[];
134
134
135
// KEEPINSYNC lunatic/con_lang.lua
135
// KEEPINSYNC lunatic/con_lang.lua
136
enum SystemString_t {
136
enum SystemString_t {
137
    STR_MAPNAME,
137
    STR_MAPNAME,
138
    STR_MAPFILENAME,
138
    STR_MAPFILENAME,
139
    STR_PLAYERNAME,
139
    STR_PLAYERNAME,
140
    STR_VERSION,
140
    STR_VERSION,
141
    STR_GAMETYPE,
141
    STR_GAMETYPE,
142
    STR_VOLUMENAME
142
    STR_VOLUMENAME,
-
 
143
    STR_YOURTIME,
-
 
144
    STR_PARTIME,
-
 
145
    STR_DESIGNERTIME,
-
 
146
    STR_BESTTIME,
143
};
147
};
144
148
145
enum ScriptError_t
149
enum ScriptError_t
146
{
150
{
147
    ERROR_CLOSEBRACKET,
151
    ERROR_CLOSEBRACKET,
148
    ERROR_EVENTONLY,
152
    ERROR_EVENTONLY,
149
    ERROR_EXCEEDSMAXTILES,
153
    ERROR_EXCEEDSMAXTILES,
150
    ERROR_EXPECTEDKEYWORD,
154
    ERROR_EXPECTEDKEYWORD,
151
    ERROR_FOUNDWITHIN,
155
    ERROR_FOUNDWITHIN,
152
    ERROR_ISAKEYWORD,
156
    ERROR_ISAKEYWORD,
153
    ERROR_NOENDSWITCH,
157
    ERROR_NOENDSWITCH,
154
    ERROR_NOTAGAMEDEF,
158
    ERROR_NOTAGAMEDEF,
155
    ERROR_NOTAGAMEVAR,
159
    ERROR_NOTAGAMEVAR,
156
    ERROR_NOTAGAMEARRAY,
160
    ERROR_NOTAGAMEARRAY,
157
    ERROR_GAMEARRAYBNC,
161
    ERROR_GAMEARRAYBNC,
158
    ERROR_GAMEARRAYBNO,
162
    ERROR_GAMEARRAYBNO,
159
    ERROR_INVALIDARRAYWRITE,
163
    ERROR_INVALIDARRAYWRITE,
160
    ERROR_OPENBRACKET,
164
    ERROR_OPENBRACKET,
161
    ERROR_PARAMUNDEFINED,
165
    ERROR_PARAMUNDEFINED,
162
    ERROR_SYMBOLNOTRECOGNIZED,
166
    ERROR_SYMBOLNOTRECOGNIZED,
163
    ERROR_SYNTAXERROR,
167
    ERROR_SYNTAXERROR,
164
    ERROR_VARREADONLY,
168
    ERROR_VARREADONLY,
165
    ERROR_ARRAYREADONLY,
169
    ERROR_ARRAYREADONLY,
166
    ERROR_VARTYPEMISMATCH,
170
    ERROR_VARTYPEMISMATCH,
167
    WARNING_BADGAMEVAR,
171
    WARNING_BADGAMEVAR,
168
    WARNING_DUPLICATECASE,
172
    WARNING_DUPLICATECASE,
169
    WARNING_DUPLICATEDEFINITION,
173
    WARNING_DUPLICATEDEFINITION,
170
    WARNING_EVENTSYNC,
174
    WARNING_EVENTSYNC,
171
    WARNING_LABELSONLY,
175
    WARNING_LABELSONLY,
172
    WARNING_NAMEMATCHESVAR
176
    WARNING_NAMEMATCHESVAR
173
};
177
};
174
178
175
enum PlayerLabel_t
179
enum PlayerLabel_t
176
{
180
{
177
    PLAYER_ZOOM,
181
    PLAYER_ZOOM,
178
    PLAYER_EXITX,
182
    PLAYER_EXITX,
179
    PLAYER_EXITY,
183
    PLAYER_EXITY,
180
    PLAYER_LOOGIEX,
184
    PLAYER_LOOGIEX,
181
    PLAYER_LOOGIEY,
185
    PLAYER_LOOGIEY,
182
    PLAYER_NUMLOOGS,
186
    PLAYER_NUMLOOGS,
183
    PLAYER_LOOGCNT,
187
    PLAYER_LOOGCNT,
184
    PLAYER_POSX,
188
    PLAYER_POSX,
185
    PLAYER_POSY,
189
    PLAYER_POSY,
186
    PLAYER_POSZ,
190
    PLAYER_POSZ,
187
    PLAYER_HORIZ,
191
    PLAYER_HORIZ,
188
    PLAYER_OHORIZ,
192
    PLAYER_OHORIZ,
189
    PLAYER_OHORIZOFF,
193
    PLAYER_OHORIZOFF,
190
    PLAYER_INVDISPTIME,
194
    PLAYER_INVDISPTIME,
191
    PLAYER_BOBPOSX,
195
    PLAYER_BOBPOSX,
192
    PLAYER_BOBPOSY,
196
    PLAYER_BOBPOSY,
193
    PLAYER_OPOSX,
197
    PLAYER_OPOSX,
194
    PLAYER_OPOSY,
198
    PLAYER_OPOSY,
195
    PLAYER_OPOSZ,
199
    PLAYER_OPOSZ,
196
    PLAYER_PYOFF,
200
    PLAYER_PYOFF,
197
    PLAYER_OPYOFF,
201
    PLAYER_OPYOFF,
198
    PLAYER_POSXV,
202
    PLAYER_POSXV,
199
    PLAYER_POSYV,
203
    PLAYER_POSYV,
200
    PLAYER_POSZV,
204
    PLAYER_POSZV,
201
    PLAYER_LAST_PISSED_TIME,
205
    PLAYER_LAST_PISSED_TIME,
202
    PLAYER_TRUEFZ,
206
    PLAYER_TRUEFZ,
203
    PLAYER_TRUECZ,
207
    PLAYER_TRUECZ,
204
    PLAYER_PLAYER_PAR,
208
    PLAYER_PLAYER_PAR,
205
    PLAYER_VISIBILITY,
209
    PLAYER_VISIBILITY,
206
    PLAYER_BOBCOUNTER,
210
    PLAYER_BOBCOUNTER,
207
    PLAYER_WEAPON_SWAY,
211
    PLAYER_WEAPON_SWAY,
208
    PLAYER_PALS_TIME,
212
    PLAYER_PALS_TIME,
209
    PLAYER_RANDOMFLAMEX,
213
    PLAYER_RANDOMFLAMEX,
210
    PLAYER_CRACK_TIME,
214
    PLAYER_CRACK_TIME,
211
    PLAYER_AIM_MODE,
215
    PLAYER_AIM_MODE,
212
    PLAYER_ANG,
216
    PLAYER_ANG,
213
    PLAYER_OANG,
217
    PLAYER_OANG,
214
    PLAYER_ANGVEL,
218
    PLAYER_ANGVEL,
215
    PLAYER_CURSECTNUM,
219
    PLAYER_CURSECTNUM,
216
    PLAYER_LOOK_ANG,
220
    PLAYER_LOOK_ANG,
217
    PLAYER_LAST_EXTRA,
221
    PLAYER_LAST_EXTRA,
218
    PLAYER_SUBWEAPON,
222
    PLAYER_SUBWEAPON,
219
    PLAYER_AMMO_AMOUNT,
223
    PLAYER_AMMO_AMOUNT,
220
    PLAYER_WACKEDBYACTOR,
224
    PLAYER_WACKEDBYACTOR,
221
    PLAYER_FRAG,
225
    PLAYER_FRAG,
222
    PLAYER_FRAGGEDSELF,
226
    PLAYER_FRAGGEDSELF,
223
    PLAYER_CURR_WEAPON,
227
    PLAYER_CURR_WEAPON,
224
    PLAYER_LAST_WEAPON,
228
    PLAYER_LAST_WEAPON,
225
    PLAYER_TIPINCS,
229
    PLAYER_TIPINCS,
226
    PLAYER_HORIZOFF,
230
    PLAYER_HORIZOFF,
227
    PLAYER_WANTWEAPONFIRE,
231
    PLAYER_WANTWEAPONFIRE,
228
    PLAYER_HOLODUKE_AMOUNT,
232
    PLAYER_HOLODUKE_AMOUNT,
229
    PLAYER_NEWOWNER,
233
    PLAYER_NEWOWNER,
230
    PLAYER_HURT_DELAY,
234
    PLAYER_HURT_DELAY,
231
    PLAYER_HBOMB_HOLD_DELAY,
235
    PLAYER_HBOMB_HOLD_DELAY,
232
    PLAYER_JUMPING_COUNTER,
236
    PLAYER_JUMPING_COUNTER,
233
    PLAYER_AIRLEFT,
237
    PLAYER_AIRLEFT,
234
    PLAYER_KNEE_INCS,
238
    PLAYER_KNEE_INCS,
235
    PLAYER_ACCESS_INCS,
239
    PLAYER_ACCESS_INCS,
236
    PLAYER_FTA,
240
    PLAYER_FTA,
237
    PLAYER_FTQ,
241
    PLAYER_FTQ,
238
    PLAYER_ACCESS_WALLNUM,
242
    PLAYER_ACCESS_WALLNUM,
239
    PLAYER_ACCESS_SPRITENUM,
243
    PLAYER_ACCESS_SPRITENUM,
240
    PLAYER_KICKBACK_PIC,
244
    PLAYER_KICKBACK_PIC,
241
    PLAYER_GOT_ACCESS,
245
    PLAYER_GOT_ACCESS,
242
    PLAYER_WEAPON_ANG,
246
    PLAYER_WEAPON_ANG,
243
    PLAYER_FIRSTAID_AMOUNT,
247
    PLAYER_FIRSTAID_AMOUNT,
244
    PLAYER_SOMETHINGONPLAYER,
248
    PLAYER_SOMETHINGONPLAYER,
245
    PLAYER_ON_CRANE,
249
    PLAYER_ON_CRANE,
246
    PLAYER_I,
250
    PLAYER_I,
247
    PLAYER_ONE_PARALLAX_SECTNUM,
251
    PLAYER_ONE_PARALLAX_SECTNUM,
248
    PLAYER_OVER_SHOULDER_ON,
252
    PLAYER_OVER_SHOULDER_ON,
249
    PLAYER_RANDOM_CLUB_FRAME,
253
    PLAYER_RANDOM_CLUB_FRAME,
250
    PLAYER_FIST_INCS,
254
    PLAYER_FIST_INCS,
251
    PLAYER_ONE_EIGHTY_COUNT,
255
    PLAYER_ONE_EIGHTY_COUNT,
252
    PLAYER_CHEAT_PHASE,
256
    PLAYER_CHEAT_PHASE,
253
    PLAYER_DUMMYPLAYERSPRITE,
257
    PLAYER_DUMMYPLAYERSPRITE,
254
    PLAYER_EXTRA_EXTRA8,
258
    PLAYER_EXTRA_EXTRA8,
255
    PLAYER_QUICK_KICK,
259
    PLAYER_QUICK_KICK,
256
    PLAYER_HEAT_AMOUNT,
260
    PLAYER_HEAT_AMOUNT,
257
    PLAYER_ACTORSQU,
261
    PLAYER_ACTORSQU,
258
    PLAYER_TIMEBEFOREEXIT,
262
    PLAYER_TIMEBEFOREEXIT,
259
    PLAYER_CUSTOMEXITSOUND,
263
    PLAYER_CUSTOMEXITSOUND,
260
    PLAYER_WEAPRECS,
264
    PLAYER_WEAPRECS,
261
    PLAYER_WEAPRECCNT,
265
    PLAYER_WEAPRECCNT,
262
    PLAYER_INTERFACE_TOGGLE_FLAG,
266
    PLAYER_INTERFACE_TOGGLE_FLAG,
263
    PLAYER_ROTSCRNANG,
267
    PLAYER_ROTSCRNANG,
264
    PLAYER_DEAD_FLAG,
268
    PLAYER_DEAD_FLAG,
265
    PLAYER_SHOW_EMPTY_WEAPON,
269
    PLAYER_SHOW_EMPTY_WEAPON,
266
    PLAYER_SCUBA_AMOUNT,
270
    PLAYER_SCUBA_AMOUNT,
267
    PLAYER_JETPACK_AMOUNT,
271
    PLAYER_JETPACK_AMOUNT,
268
    PLAYER_STEROIDS_AMOUNT,
272
    PLAYER_STEROIDS_AMOUNT,
269
    PLAYER_SHIELD_AMOUNT,
273
    PLAYER_SHIELD_AMOUNT,
270
    PLAYER_HOLODUKE_ON,
274
    PLAYER_HOLODUKE_ON,
271
    PLAYER_PYCOUNT,
275
    PLAYER_PYCOUNT,
272
    PLAYER_WEAPON_POS,
276
    PLAYER_WEAPON_POS,
273
    PLAYER_FRAG_PS,
277
    PLAYER_FRAG_PS,
274
    PLAYER_TRANSPORTER_HOLD,
278
    PLAYER_TRANSPORTER_HOLD,
275
    PLAYER_LAST_FULL_WEAPON,
279
    PLAYER_LAST_FULL_WEAPON,
276
    PLAYER_FOOTPRINTSHADE,
280
    PLAYER_FOOTPRINTSHADE,
277
    PLAYER_BOOT_AMOUNT,
281
    PLAYER_BOOT_AMOUNT,
278
    PLAYER_SCREAM_VOICE,
282
    PLAYER_SCREAM_VOICE,
279
    PLAYER_GM,
283
    PLAYER_GM,
280
    PLAYER_ON_WARPING_SECTOR,
284
    PLAYER_ON_WARPING_SECTOR,
281
    PLAYER_FOOTPRINTCOUNT,
285
    PLAYER_FOOTPRINTCOUNT,
282
    PLAYER_HBOMB_ON,
286
    PLAYER_HBOMB_ON,
283
    PLAYER_JUMPING_TOGGLE,
287
    PLAYER_JUMPING_TOGGLE,
284
    PLAYER_RAPID_FIRE_HOLD,
288
    PLAYER_RAPID_FIRE_HOLD,
285
    PLAYER_ON_GROUND,
289
    PLAYER_ON_GROUND,
286
    PLAYER_NAME,
290
    PLAYER_NAME,
287
    PLAYER_INVEN_ICON,
291
    PLAYER_INVEN_ICON,
288
    PLAYER_BUTTONPALETTE,
292
    PLAYER_BUTTONPALETTE,
289
    PLAYER_JETPACK_ON,
293
    PLAYER_JETPACK_ON,
290
    PLAYER_SPRITEBRIDGE,
294
    PLAYER_SPRITEBRIDGE,
291
    PLAYER_LASTRANDOMSPOT,
295
    PLAYER_LASTRANDOMSPOT,
292
    PLAYER_SCUBA_ON,
296
    PLAYER_SCUBA_ON,
293
    PLAYER_FOOTPRINTPAL,
297
    PLAYER_FOOTPRINTPAL,
294
    PLAYER_HEAT_ON,
298
    PLAYER_HEAT_ON,
295
    PLAYER_HOLSTER_WEAPON,
299
    PLAYER_HOLSTER_WEAPON,
296
    PLAYER_FALLING_COUNTER,
300
    PLAYER_FALLING_COUNTER,
297
    PLAYER_GOTWEAPON,
301
    PLAYER_GOTWEAPON,
298
    PLAYER_REFRESH_INVENTORY,
302
    PLAYER_REFRESH_INVENTORY,
299
    PLAYER_PALETTE,
303
    PLAYER_PALETTE,
300
    PLAYER_TOGGLE_KEY_FLAG,
304
    PLAYER_TOGGLE_KEY_FLAG,
301
    PLAYER_KNUCKLE_INCS,
305
    PLAYER_KNUCKLE_INCS,
302
    PLAYER_WALKING_SND_TOGGLE,
306
    PLAYER_WALKING_SND_TOGGLE,
303
    PLAYER_PALOOKUP,
307
    PLAYER_PALOOKUP,
304
    PLAYER_HARD_LANDING,
308
    PLAYER_HARD_LANDING,
305
    PLAYER_MAX_SECRET_ROOMS,
309
    PLAYER_MAX_SECRET_ROOMS,
306
    PLAYER_SECRET_ROOMS,
310
    PLAYER_SECRET_ROOMS,
307
    PLAYER_PALS,
311
    PLAYER_PALS,
308
    PLAYER_MAX_ACTORS_KILLED,
312
    PLAYER_MAX_ACTORS_KILLED,
309
    PLAYER_ACTORS_KILLED,
313
    PLAYER_ACTORS_KILLED,
310
    PLAYER_RETURN_TO_CENTER,
314
    PLAYER_RETURN_TO_CENTER,
311
    PLAYER_RUNSPEED,
315
    PLAYER_RUNSPEED,
312
    PLAYER_SBS,
316
    PLAYER_SBS,
313
    PLAYER_RELOADING,
317
    PLAYER_RELOADING,
314
    PLAYER_AUTO_AIM,
318
    PLAYER_AUTO_AIM,
315
    PLAYER_MOVEMENT_LOCK,
319
    PLAYER_MOVEMENT_LOCK,
316
    PLAYER_SOUND_PITCH,
320
    PLAYER_SOUND_PITCH,
317
    PLAYER_WEAPONSWITCH,
321
    PLAYER_WEAPONSWITCH,
318
    PLAYER_TEAM,
322
    PLAYER_TEAM,
319
    PLAYER_MAX_PLAYER_HEALTH,
323
    PLAYER_MAX_PLAYER_HEALTH,
320
    PLAYER_MAX_SHIELD_AMOUNT,
324
    PLAYER_MAX_SHIELD_AMOUNT,
321
    PLAYER_MAX_AMMO_AMOUNT,
325
    PLAYER_MAX_AMMO_AMOUNT,
322
    PLAYER_LAST_QUICK_KICK,
326
    PLAYER_LAST_QUICK_KICK,
323
    PLAYER_AUTOSTEP,
327
    PLAYER_AUTOSTEP,
324
    PLAYER_AUTOSTEP_SBW,
328
    PLAYER_AUTOSTEP_SBW,
325
    PLAYER_END
329
    PLAYER_END
326
};
330
};
327
331
328
enum UserdefsLabel_t
332
enum UserdefsLabel_t
329
{
333
{
330
    USERDEFS_GOD,
334
    USERDEFS_GOD,
331
    USERDEFS_WARP_ON,
335
    USERDEFS_WARP_ON,
332
    USERDEFS_CASHMAN,
336
    USERDEFS_CASHMAN,
333
    USERDEFS_EOG,
337
    USERDEFS_EOG,
334
    USERDEFS_SHOWALLMAP,
338
    USERDEFS_SHOWALLMAP,
335
    USERDEFS_SHOW_HELP,
339
    USERDEFS_SHOW_HELP,
336
    USERDEFS_SCROLLMODE,
340
    USERDEFS_SCROLLMODE,
337
    USERDEFS_CLIPPING,
341
    USERDEFS_CLIPPING,
338
    USERDEFS_USER_NAME,
342
    USERDEFS_USER_NAME,
339
    USERDEFS_RIDECULE,
343
    USERDEFS_RIDECULE,
340
    USERDEFS_SAVEGAME,
344
    USERDEFS_SAVEGAME,
341
    USERDEFS_PWLOCKOUT,
345
    USERDEFS_PWLOCKOUT,
342
    USERDEFS_RTSNAME,
346
    USERDEFS_RTSNAME,
343
    USERDEFS_OVERHEAD_ON,
347
    USERDEFS_OVERHEAD_ON,
344
    USERDEFS_LAST_OVERHEAD,
348
    USERDEFS_LAST_OVERHEAD,
345
    USERDEFS_SHOWWEAPONS,
349
    USERDEFS_SHOWWEAPONS,
346
    USERDEFS_PAUSE_ON,
350
    USERDEFS_PAUSE_ON,
347
    USERDEFS_FROM_BONUS,
351
    USERDEFS_FROM_BONUS,
348
    USERDEFS_CAMERASPRITE,
352
    USERDEFS_CAMERASPRITE,
349
    USERDEFS_LAST_CAMSPRITE,
353
    USERDEFS_LAST_CAMSPRITE,
350
    USERDEFS_LAST_LEVEL,
354
    USERDEFS_LAST_LEVEL,
351
    USERDEFS_SECRETLEVEL,
355
    USERDEFS_SECRETLEVEL,
352
    USERDEFS_CONST_VISIBILITY,
356
    USERDEFS_CONST_VISIBILITY,
353
    USERDEFS_UW_FRAMERATE,
357
    USERDEFS_UW_FRAMERATE,
354
    USERDEFS_CAMERA_TIME,
358
    USERDEFS_CAMERA_TIME,
355
    USERDEFS_FOLFVEL,
359
    USERDEFS_FOLFVEL,
356
    USERDEFS_FOLAVEL,
360
    USERDEFS_FOLAVEL,
357
    USERDEFS_FOLX,
361
    USERDEFS_FOLX,
358
    USERDEFS_FOLY,
362
    USERDEFS_FOLY,
359
    USERDEFS_FOLA,
363
    USERDEFS_FOLA,
360
    USERDEFS_RECCNT,
364
    USERDEFS_RECCNT,
361
    USERDEFS_ENTERED_NAME,
365
    USERDEFS_ENTERED_NAME,
362
    USERDEFS_SCREEN_TILTING,
366
    USERDEFS_SCREEN_TILTING,
363
    USERDEFS_SHADOWS,
367
    USERDEFS_SHADOWS,
364
    USERDEFS_FTA_ON,
368
    USERDEFS_FTA_ON,
365
    USERDEFS_EXECUTIONS,
369
    USERDEFS_EXECUTIONS,
366
    USERDEFS_AUTO_RUN,
370
    USERDEFS_AUTO_RUN,
367
    USERDEFS_COORDS,
371
    USERDEFS_COORDS,
368
    USERDEFS_TICKRATE,
372
    USERDEFS_TICKRATE,
369
    USERDEFS_M_COOP,
373
    USERDEFS_M_COOP,
370
    USERDEFS_COOP,
374
    USERDEFS_COOP,
371
    USERDEFS_SCREEN_SIZE,
375
    USERDEFS_SCREEN_SIZE,
372
    USERDEFS_LOCKOUT,
376
    USERDEFS_LOCKOUT,
373
    USERDEFS_CROSSHAIR,
377
    USERDEFS_CROSSHAIR,
374
    USERDEFS_WCHOICE,
378
    USERDEFS_WCHOICE,
375
    USERDEFS_PLAYERAI,
379
    USERDEFS_PLAYERAI,
376
    USERDEFS_RESPAWN_MONSTERS,
380
    USERDEFS_RESPAWN_MONSTERS,
377
    USERDEFS_RESPAWN_ITEMS,
381
    USERDEFS_RESPAWN_ITEMS,
378
    USERDEFS_RESPAWN_INVENTORY,
382
    USERDEFS_RESPAWN_INVENTORY,
379
    USERDEFS_RECSTAT,
383
    USERDEFS_RECSTAT,
380
    USERDEFS_MONSTERS_OFF,
384
    USERDEFS_MONSTERS_OFF,
381
    USERDEFS_BRIGHTNESS,
385
    USERDEFS_BRIGHTNESS,
382
    USERDEFS_M_RESPAWN_ITEMS,
386
    USERDEFS_M_RESPAWN_ITEMS,
383
    USERDEFS_M_RESPAWN_MONSTERS,
387
    USERDEFS_M_RESPAWN_MONSTERS,
384
    USERDEFS_M_RESPAWN_INVENTORY,
388
    USERDEFS_M_RESPAWN_INVENTORY,
385
    USERDEFS_M_RECSTAT,
389
    USERDEFS_M_RECSTAT,
386
    USERDEFS_M_MONSTERS_OFF,
390
    USERDEFS_M_MONSTERS_OFF,
387
    USERDEFS_DETAIL,
391
    USERDEFS_DETAIL,
388
    USERDEFS_M_FFIRE,
392
    USERDEFS_M_FFIRE,
389
    USERDEFS_FFIRE,
393
    USERDEFS_FFIRE,
390
    USERDEFS_M_PLAYER_SKILL,
394
    USERDEFS_M_PLAYER_SKILL,
391
    USERDEFS_M_LEVEL_NUMBER,
395
    USERDEFS_M_LEVEL_NUMBER,
392
    USERDEFS_M_VOLUME_NUMBER,
396
    USERDEFS_M_VOLUME_NUMBER,
393
    USERDEFS_MULTIMODE,
397
    USERDEFS_MULTIMODE,
394
    USERDEFS_PLAYER_SKILL,
398
    USERDEFS_PLAYER_SKILL,
395
    USERDEFS_LEVEL_NUMBER,
399
    USERDEFS_LEVEL_NUMBER,
396
    USERDEFS_VOLUME_NUMBER,
400
    USERDEFS_VOLUME_NUMBER,
397
    USERDEFS_M_MARKER,
401
    USERDEFS_M_MARKER,
398
    USERDEFS_MARKER,
402
    USERDEFS_MARKER,
399
    USERDEFS_MOUSEFLIP,
403
    USERDEFS_MOUSEFLIP,
400
    USERDEFS_STATUSBARSCALE,
404
    USERDEFS_STATUSBARSCALE,
401
    USERDEFS_DRAWWEAPON,
405
    USERDEFS_DRAWWEAPON,
402
    USERDEFS_MOUSEAIMING,
406
    USERDEFS_MOUSEAIMING,
403
    USERDEFS_WEAPONSWITCH,
407
    USERDEFS_WEAPONSWITCH,
404
    USERDEFS_DEMOCAMS,
408
    USERDEFS_DEMOCAMS,
405
    USERDEFS_COLOR,
409
    USERDEFS_COLOR,
406
    USERDEFS_MSGDISPTIME,
410
    USERDEFS_MSGDISPTIME,
407
    USERDEFS_STATUSBARMODE,
411
    USERDEFS_STATUSBARMODE,
408
    USERDEFS_M_NOEXITS,
412
    USERDEFS_M_NOEXITS,
409
    USERDEFS_NOEXITS,
413
    USERDEFS_NOEXITS,
410
    USERDEFS_AUTOVOTE,
414
    USERDEFS_AUTOVOTE,
411
    USERDEFS_AUTOMSG,
415
    USERDEFS_AUTOMSG,
412
    USERDEFS_IDPLAYERS,
416
    USERDEFS_IDPLAYERS,
413
    USERDEFS_TEAM,
417
    USERDEFS_TEAM,
414
    USERDEFS_VIEWBOB,
418
    USERDEFS_VIEWBOB,
415
    USERDEFS_WEAPONSWAY,
419
    USERDEFS_WEAPONSWAY,
416
    USERDEFS_ANGLEINTERPOLATION,
420
    USERDEFS_ANGLEINTERPOLATION,
417
    USERDEFS_OBITUARIES,
421
    USERDEFS_OBITUARIES,
418
    USERDEFS_LEVELSTATS,
422
    USERDEFS_LEVELSTATS,
419
    USERDEFS_CROSSHAIRSCALE,
423
    USERDEFS_CROSSHAIRSCALE,
420
    USERDEFS_ALTHUD,
424
    USERDEFS_ALTHUD,
421
    USERDEFS_DISPLAY_BONUS_SCREEN,
425
    USERDEFS_DISPLAY_BONUS_SCREEN,
422
    USERDEFS_SHOW_LEVEL_TEXT,
426
    USERDEFS_SHOW_LEVEL_TEXT,
423
    USERDEFS_WEAPONSCALE,
427
    USERDEFS_WEAPONSCALE,
424
    USERDEFS_TEXTSCALE,
428
    USERDEFS_TEXTSCALE,
425
    USERDEFS_RUNKEY_MODE,
429
    USERDEFS_RUNKEY_MODE,
426
    USERDEFS_M_ORIGIN_X,
430
    USERDEFS_M_ORIGIN_X,
427
    USERDEFS_M_ORIGIN_Y,
431
    USERDEFS_M_ORIGIN_Y,
428
    USERDEFS_PLAYERBEST,
432
    USERDEFS_PLAYERBEST,
429
    USERDEFS_END
433
    USERDEFS_END
430
};
434
};
431
435
432
enum SectorLabel_t
436
enum SectorLabel_t
433
{
437
{
434
    SECTOR_WALLPTR,
438
    SECTOR_WALLPTR,
435
    SECTOR_WALLNUM,
439
    SECTOR_WALLNUM,
436
    SECTOR_CEILINGZ,
440
    SECTOR_CEILINGZ,
437
    SECTOR_FLOORZ,
441
    SECTOR_FLOORZ,
438
    SECTOR_CEILINGSTAT,
442
    SECTOR_CEILINGSTAT,
439
    SECTOR_FLOORSTAT,
443
    SECTOR_FLOORSTAT,
440
    SECTOR_CEILINGPICNUM,
444
    SECTOR_CEILINGPICNUM,
441
    SECTOR_CEILINGSLOPE,
445
    SECTOR_CEILINGSLOPE,
442
    SECTOR_CEILINGSHADE,
446
    SECTOR_CEILINGSHADE,
443
    SECTOR_CEILINGPAL,
447
    SECTOR_CEILINGPAL,
444
    SECTOR_CEILINGXPANNING,
448
    SECTOR_CEILINGXPANNING,
445
    SECTOR_CEILINGYPANNING,
449
    SECTOR_CEILINGYPANNING,
446
    SECTOR_FLOORPICNUM,
450
    SECTOR_FLOORPICNUM,
447
    SECTOR_FLOORSLOPE,
451
    SECTOR_FLOORSLOPE,
448
    SECTOR_FLOORSHADE,
452
    SECTOR_FLOORSHADE,
449
    SECTOR_FLOORPAL,
453
    SECTOR_FLOORPAL,
450
    SECTOR_FLOORXPANNING,
454
    SECTOR_FLOORXPANNING,
451
    SECTOR_FLOORYPANNING,
455
    SECTOR_FLOORYPANNING,
452
    SECTOR_VISIBILITY,
456
    SECTOR_VISIBILITY,
453
    SECTOR_FOGPAL,
457
    SECTOR_FOGPAL,
454
    SECTOR_LOTAG,
458
    SECTOR_LOTAG,
455
    SECTOR_HITAG,
459
    SECTOR_HITAG,
456
    SECTOR_EXTRA,
460
    SECTOR_EXTRA,
457
    SECTOR_CEILINGBUNCH,
461
    SECTOR_CEILINGBUNCH,
458
    SECTOR_FLOORBUNCH,
462
    SECTOR_FLOORBUNCH,
459
    SECTOR_ULOTAG,
463
    SECTOR_ULOTAG,
460
    SECTOR_UHITAG,
464
    SECTOR_UHITAG,
461
    SECTOR_END
465
    SECTOR_END
462
};
466
};
463
467
464
enum WallLabel_t
468
enum WallLabel_t
465
{
469
{
466
    WALL_X,
470
    WALL_X,
467
    WALL_Y,
471
    WALL_Y,
468
    WALL_POINT2,
472
    WALL_POINT2,
469
    WALL_NEXTWALL,
473
    WALL_NEXTWALL,
470
    WALL_NEXTSECTOR,
474
    WALL_NEXTSECTOR,
471
    WALL_CSTAT,
475
    WALL_CSTAT,
472
    WALL_PICNUM,
476
    WALL_PICNUM,
473
    WALL_OVERPICNUM,
477
    WALL_OVERPICNUM,
474
    WALL_SHADE,
478
    WALL_SHADE,
475
    WALL_PAL,
479
    WALL_PAL,
476
    WALL_XREPEAT,
480
    WALL_XREPEAT,
477
    WALL_YREPEAT,
481
    WALL_YREPEAT,
478
    WALL_XPANNING,
482
    WALL_XPANNING,
479
    WALL_YPANNING,
483
    WALL_YPANNING,
480
    WALL_LOTAG,
484
    WALL_LOTAG,
481
    WALL_HITAG,
485
    WALL_HITAG,
482
    WALL_EXTRA,
486
    WALL_EXTRA,
483
    WALL_ULOTAG,
487
    WALL_ULOTAG,
484
    WALL_UHITAG,
488
    WALL_UHITAG,
485
    WALL_END
489
    WALL_END
486
};
490
};
487
491
488
enum ActorLabel_t
492
enum ActorLabel_t
489
{
493
{
490
    ACTOR_X,
494
    ACTOR_X,
491
    ACTOR_Y,
495
    ACTOR_Y,
492
    ACTOR_Z,
496
    ACTOR_Z,
493
    ACTOR_CSTAT,
497
    ACTOR_CSTAT,
494
    ACTOR_PICNUM,
498
    ACTOR_PICNUM,
495
    ACTOR_SHADE,
499
    ACTOR_SHADE,
496
    ACTOR_PAL,
500
    ACTOR_PAL,
497
    ACTOR_CLIPDIST,
501
    ACTOR_CLIPDIST,
498
    ACTOR_DETAIL,
502
    ACTOR_DETAIL,
499
    ACTOR_XREPEAT,
503
    ACTOR_XREPEAT,
500
    ACTOR_YREPEAT,
504
    ACTOR_YREPEAT,
501
    ACTOR_XOFFSET,
505
    ACTOR_XOFFSET,
502
    ACTOR_YOFFSET,
506
    ACTOR_YOFFSET,
503
    ACTOR_SECTNUM,
507
    ACTOR_SECTNUM,
504
    ACTOR_STATNUM,
508
    ACTOR_STATNUM,
505
    ACTOR_ANG,
509
    ACTOR_ANG,
506
    ACTOR_OWNER,
510
    ACTOR_OWNER,
507
    ACTOR_XVEL,
511
    ACTOR_XVEL,
508
    ACTOR_YVEL,
512
    ACTOR_YVEL,
509
    ACTOR_ZVEL,
513
    ACTOR_ZVEL,
510
    ACTOR_LOTAG,
514
    ACTOR_LOTAG,
511
    ACTOR_HITAG,
515
    ACTOR_HITAG,
512
    ACTOR_EXTRA,
516
    ACTOR_EXTRA,
513
    ACTOR_HTCGG,
517
    ACTOR_HTCGG,
514
    ACTOR_HTPICNUM,
518
    ACTOR_HTPICNUM,
515
    ACTOR_HTANG,
519
    ACTOR_HTANG,
516
    ACTOR_HTEXTRA,
520
    ACTOR_HTEXTRA,
517
    ACTOR_HTOWNER,
521
    ACTOR_HTOWNER,
518
    ACTOR_HTMOVFLAG,
522
    ACTOR_HTMOVFLAG,
519
    ACTOR_HTTEMPANG,
523
    ACTOR_HTTEMPANG,
520
    ACTOR_HTACTORSTAYPUT,
524
    ACTOR_HTACTORSTAYPUT,
521
    ACTOR_HTDISPICNUM,
525
    ACTOR_HTDISPICNUM,
522
    ACTOR_HTTIMETOSLEEP,
526
    ACTOR_HTTIMETOSLEEP,
523
    ACTOR_HTFLOORZ,
527
    ACTOR_HTFLOORZ,
524
    ACTOR_HTCEILINGZ,
528
    ACTOR_HTCEILINGZ,
525
    ACTOR_HTLASTVX,
529
    ACTOR_HTLASTVX,
526
    ACTOR_HTLASTVY,
530
    ACTOR_HTLASTVY,
527
    ACTOR_HTBPOSX,
531
    ACTOR_HTBPOSX,
528
    ACTOR_HTBPOSY,
532
    ACTOR_HTBPOSY,
529
    ACTOR_HTBPOSZ,
533
    ACTOR_HTBPOSZ,
530
    ACTOR_HTG_T,
534
    ACTOR_HTG_T,
531
    ACTOR_ANGOFF,
535
    ACTOR_ANGOFF,
532
    ACTOR_PITCH,
536
    ACTOR_PITCH,
533
    ACTOR_ROLL,
537
    ACTOR_ROLL,
534
    ACTOR_MDXOFF,
538
    ACTOR_MDXOFF,
535
    ACTOR_MDYOFF,
539
    ACTOR_MDYOFF,
536
    ACTOR_MDZOFF,
540
    ACTOR_MDZOFF,
537
    ACTOR_MDFLAGS,
541
    ACTOR_MDFLAGS,
538
    ACTOR_XPANNING,
542
    ACTOR_XPANNING,
539
    ACTOR_YPANNING,
543
    ACTOR_YPANNING,
540
    ACTOR_HTFLAGS,
544
    ACTOR_HTFLAGS,
541
    ACTOR_ALPHA,
545
    ACTOR_ALPHA,
542
    ACTOR_ULOTAG,
546
    ACTOR_ULOTAG,
543
    ACTOR_UHITAG,
547
    ACTOR_UHITAG,
544
    ACTOR_ISVALID,
548
    ACTOR_ISVALID,
545
    ACTOR_END
549
    ACTOR_END
546
};
550
};
547
551
548
enum InputLabel_t
552
enum InputLabel_t
549
{
553
{
550
    INPUT_AVEL,
554
    INPUT_AVEL,
551
    INPUT_HORZ,
555
    INPUT_HORZ,
552
    INPUT_FVEL,
556
    INPUT_FVEL,
553
    INPUT_SVEL,
557
    INPUT_SVEL,
554
    INPUT_BITS,
558
    INPUT_BITS,
555
    INPUT_EXTBITS,
559
    INPUT_EXTBITS,
556
    INPUT_END
560
    INPUT_END
557
};
561
};
558
562
559
#endif
563
#endif
560
// KEEPINSYNC lunatic/con_lang.lua
564
// KEEPINSYNC lunatic/con_lang.lua
561
enum ProjectileLabel_t
565
enum ProjectileLabel_t
562
{
566
{
563
    PROJ_WORKSLIKE,  // 0
567
    PROJ_WORKSLIKE,  // 0
564
    PROJ_SPAWNS,
568
    PROJ_SPAWNS,
565
    PROJ_SXREPEAT,
569
    PROJ_SXREPEAT,
566
    PROJ_SYREPEAT,
570
    PROJ_SYREPEAT,
567
    PROJ_SOUND,
571
    PROJ_SOUND,
568
    PROJ_ISOUND,  // 5
572
    PROJ_ISOUND,  // 5
569
    PROJ_VEL,
573
    PROJ_VEL,
570
    PROJ_EXTRA,
574
    PROJ_EXTRA,
571
    PROJ_DECAL,
575
    PROJ_DECAL,
572
    PROJ_TRAIL,
576
    PROJ_TRAIL,
573
    PROJ_TXREPEAT,  // 10
577
    PROJ_TXREPEAT,  // 10
574
    PROJ_TYREPEAT,
578
    PROJ_TYREPEAT,
575
    PROJ_TOFFSET,
579
    PROJ_TOFFSET,
576
    PROJ_TNUM,
580
    PROJ_TNUM,
577
    PROJ_DROP,
581
    PROJ_DROP,
578
    PROJ_CSTAT,  // 15
582
    PROJ_CSTAT,  // 15
579
    PROJ_CLIPDIST,
583
    PROJ_CLIPDIST,
580
    PROJ_SHADE,
584
    PROJ_SHADE,
581
    PROJ_XREPEAT,
585
    PROJ_XREPEAT,
582
    PROJ_YREPEAT,
586
    PROJ_YREPEAT,
583
    PROJ_PAL,  // 20
587
    PROJ_PAL,  // 20
584
    PROJ_EXTRA_RAND,
588
    PROJ_EXTRA_RAND,
585
    PROJ_HITRADIUS,
589
    PROJ_HITRADIUS,
586
    PROJ_MOVECNT,
590
    PROJ_MOVECNT,
587
    PROJ_OFFSET,
591
    PROJ_OFFSET,
588
    PROJ_BOUNCES,  // 25
592
    PROJ_BOUNCES,  // 25
589
    PROJ_BSOUND,
593
    PROJ_BSOUND,
590
    PROJ_RANGE,
594
    PROJ_RANGE,
591
    PROJ_FLASH_COLOR,
595
    PROJ_FLASH_COLOR,
592
    PROJ_USERDATA,
596
    PROJ_USERDATA,
593
    PROJ_END
597
    PROJ_END
594
};
598
};
595
#if !defined LUNATIC
599
#if !defined LUNATIC
596
600
597
enum ScriptKeywords_t
601
enum ScriptKeywords_t
598
{
602
{
599
    CON_DEFINELEVELNAME,    // 0
603
    CON_DEFINELEVELNAME,    // 0
600
    CON_ACTOR,              // 1
604
    CON_ACTOR,              // 1
601
    CON_ADDAMMO,            // 2
605
    CON_ADDAMMO,            // 2
602
    CON_IFRND,              // 3
606
    CON_IFRND,              // 3
603
    CON_ENDA,               // 4
607
    CON_ENDA,               // 4
604
    CON_IFCANSEE,           // 5
608
    CON_IFCANSEE,           // 5
605
    CON_IFHITWEAPON,        // 6
609
    CON_IFHITWEAPON,        // 6
606
    CON_ACTION,             // 7
610
    CON_ACTION,             // 7
607
    CON_IFPDISTL,           // 8
611
    CON_IFPDISTL,           // 8
608
    CON_IFPDISTG,           // 9
612
    CON_IFPDISTG,           // 9
609
    CON_ELSE,               // 10
613
    CON_ELSE,               // 10
610
    CON_STRENGTH,           // 11
614
    CON_STRENGTH,           // 11
611
    CON_BREAK,              // 12
615
    CON_BREAK,              // 12
612
    CON_SHOOT,              // 13
616
    CON_SHOOT,              // 13
613
    CON_PALFROM,            // 14
617
    CON_PALFROM,            // 14
614
    CON_SOUND,              // 15
618
    CON_SOUND,              // 15
615
    CON_FALL,               // 16
619
    CON_FALL,               // 16
616
    CON_STATE,              // 17
620
    CON_STATE,              // 17
617
    CON_ENDS,               // 18
621
    CON_ENDS,               // 18
618
    CON_DEFINE,             // 19
622
    CON_DEFINE,             // 19
619
    CON_RETURN,             // 20
623
    CON_RETURN,             // 20
620
    CON_IFAI,               // 21
624
    CON_IFAI,               // 21
621
    CON_KILLIT,             // 22
625
    CON_KILLIT,             // 22
622
    CON_ADDWEAPON,          // 23
626
    CON_ADDWEAPON,          // 23
623
    CON_AI,                 // 24
627
    CON_AI,                 // 24
624
    CON_ADDPHEALTH,         // 25
628
    CON_ADDPHEALTH,         // 25
625
    CON_IFDEAD,             // 26
629
    CON_IFDEAD,             // 26
626
    CON_IFSQUISHED,         // 27
630
    CON_IFSQUISHED,         // 27
627
    CON_SIZETO,             // 28
631
    CON_SIZETO,             // 28
628
    CON_LEFTBRACE,          // 29
632
    CON_LEFTBRACE,          // 29
629
    CON_RIGHTBRACE,         // 30
633
    CON_RIGHTBRACE,         // 30
630
    CON_SPAWN,              // 31
634
    CON_SPAWN,              // 31
631
    CON_MOVE,               // 32
635
    CON_MOVE,               // 32
632
    CON_IFWASWEAPON,        // 33
636
    CON_IFWASWEAPON,        // 33
633
    CON_IFACTION,           // 34
637
    CON_IFACTION,           // 34
634
    CON_IFACTIONCOUNT,      // 35
638
    CON_IFACTIONCOUNT,      // 35
635
    CON_RESETACTIONCOUNT,   // 36
639
    CON_RESETACTIONCOUNT,   // 36
636
    CON_DEBRIS,             // 37
640
    CON_DEBRIS,             // 37
637
    CON_PSTOMP,             // 38
641
    CON_PSTOMP,             // 38
638
    CON_BLOCKCOMMENT,       // 39 deprecated
642
    CON_BLOCKCOMMENT,       // 39 deprecated
639
    CON_CSTAT,              // 40
643
    CON_CSTAT,              // 40
640
    CON_IFMOVE,             // 41
644
    CON_IFMOVE,             // 41
641
    CON_RESETPLAYER,        // 42
645
    CON_RESETPLAYER,        // 42
642
    CON_IFONWATER,          // 43
646
    CON_IFONWATER,          // 43
643
    CON_IFINWATER,          // 44
647
    CON_IFINWATER,          // 44
644
    CON_IFCANSHOOTTARGET,   // 45
648
    CON_IFCANSHOOTTARGET,   // 45
645
    CON_IFCOUNT,            // 46
649
    CON_IFCOUNT,            // 46
646
    CON_RESETCOUNT,         // 47
650
    CON_RESETCOUNT,         // 47
647
    CON_ADDINVENTORY,       // 48
651
    CON_ADDINVENTORY,       // 48
648
    CON_IFACTORNOTSTAYPUT,  // 49
652
    CON_IFACTORNOTSTAYPUT,  // 49
649
    CON_HITRADIUS,          // 50
653
    CON_HITRADIUS,          // 50
650
    CON_IFP,                // 51
654
    CON_IFP,                // 51
651
    CON_COUNT,              // 52
655
    CON_COUNT,              // 52
652
    CON_IFACTOR,            // 53
656
    CON_IFACTOR,            // 53
653
    CON_MUSIC,              // 54
657
    CON_MUSIC,              // 54
654
    CON_INCLUDE,            // 55
658
    CON_INCLUDE,            // 55
655
    CON_IFSTRENGTH,         // 56
659
    CON_IFSTRENGTH,         // 56
656
    CON_DEFINESOUND,        // 57
660
    CON_DEFINESOUND,        // 57
657
    CON_GUTS,               // 58
661
    CON_GUTS,               // 58
658
    CON_IFSPAWNEDBY,        // 59
662
    CON_IFSPAWNEDBY,        // 59
659
    CON_GAMESTARTUP,        // 60
663
    CON_GAMESTARTUP,        // 60
660
    CON_WACKPLAYER,         // 61
664
    CON_WACKPLAYER,         // 61
661
    CON_IFGAPZL,            // 62
665
    CON_IFGAPZL,            // 62
662
    CON_IFHITSPACE,         // 63
666
    CON_IFHITSPACE,         // 63
663
    CON_IFOUTSIDE,          // 64
667
    CON_IFOUTSIDE,          // 64
664
    CON_IFMULTIPLAYER,      // 65
668
    CON_IFMULTIPLAYER,      // 65
665
    CON_OPERATE,            // 66
669
    CON_OPERATE,            // 66
666
    CON_IFINSPACE,          // 67
670
    CON_IFINSPACE,          // 67
667
    CON_DEBUG,              // 68
671
    CON_DEBUG,              // 68
668
    CON_ENDOFGAME,          // 69
672
    CON_ENDOFGAME,          // 69
669
    CON_IFBULLETNEAR,       // 70
673
    CON_IFBULLETNEAR,       // 70
670
    CON_IFRESPAWN,          // 71
674
    CON_IFRESPAWN,          // 71
671
    CON_IFFLOORDISTL,       // 72
675
    CON_IFFLOORDISTL,       // 72
672
    CON_IFCEILINGDISTL,     // 73
676
    CON_IFCEILINGDISTL,     // 73
673
    CON_SPRITEPAL,          // 74
677
    CON_SPRITEPAL,          // 74
674
    CON_IFPINVENTORY,       // 75
678
    CON_IFPINVENTORY,       // 75
675
    CON_BETANAME,           // 76
679
    CON_BETANAME,           // 76
676
    CON_CACTOR,             // 77
680
    CON_CACTOR,             // 77
677
    CON_IFPHEALTHL,         // 78
681
    CON_IFPHEALTHL,         // 78
678
    CON_DEFINEQUOTE,        // 79
682
    CON_DEFINEQUOTE,        // 79
679
    CON_QUOTE,              // 80
683
    CON_QUOTE,              // 80
680
    CON_IFINOUTERSPACE,     // 81
684
    CON_IFINOUTERSPACE,     // 81
681
    CON_IFNOTMOVING,        // 82
685
    CON_IFNOTMOVING,        // 82
682
    CON_RESPAWNHITAG,       // 83
686
    CON_RESPAWNHITAG,       // 83
683
    CON_TIP,                // 84
687
    CON_TIP,                // 84
684
    CON_IFSPRITEPAL,        // 85
688
    CON_IFSPRITEPAL,        // 85
685
    CON_MONEY,              // 86
689
    CON_MONEY,              // 86
686
    CON_SOUNDONCE,          // 87
690
    CON_SOUNDONCE,          // 87
687
    CON_ADDKILLS,           // 88
691
    CON_ADDKILLS,           // 88
688
    CON_STOPSOUND,          // 89
692
    CON_STOPSOUND,          // 89
689
    CON_IFAWAYFROMWALL,     // 90
693
    CON_IFAWAYFROMWALL,     // 90
690
    CON_IFCANSEETARGET,     // 91
694
    CON_IFCANSEETARGET,     // 91
691
    CON_GLOBALSOUND,        // 92
695
    CON_GLOBALSOUND,        // 92
692
    CON_LOTSOFGLASS,        // 93
696
    CON_LOTSOFGLASS,        // 93
693
    CON_IFGOTWEAPONCE,      // 94
697
    CON_IFGOTWEAPONCE,      // 94
694
    CON_GETLASTPAL,         // 95
698
    CON_GETLASTPAL,         // 95
695
    CON_PKICK,              // 96
699
    CON_PKICK,              // 96
696
    CON_MIKESND,            // 97
700
    CON_MIKESND,            // 97
697
    CON_USERACTOR,          // 98
701
    CON_USERACTOR,          // 98
698
    CON_SIZEAT,             // 99
702
    CON_SIZEAT,             // 99
699
    CON_ADDSTRENGTH,        // 100
703
    CON_ADDSTRENGTH,        // 100
700
    CON_CSTATOR,            // 101
704
    CON_CSTATOR,            // 101
701
    CON_MAIL,               // 102
705
    CON_MAIL,               // 102
702
    CON_PAPER,              // 103
706
    CON_PAPER,              // 103
703
    CON_TOSSWEAPON,         // 104
707
    CON_TOSSWEAPON,         // 104
704
    CON_SLEEPTIME,          // 105
708
    CON_SLEEPTIME,          // 105
705
    CON_NULLOP,             // 106
709
    CON_NULLOP,             // 106
706
    CON_DEFINEVOLUMENAME,   // 107
710
    CON_DEFINEVOLUMENAME,   // 107
707
    CON_DEFINESKILLNAME,    // 108
711
    CON_DEFINESKILLNAME,    // 108
708
    CON_IFNOSOUNDS,         // 109
712
    CON_IFNOSOUNDS,         // 109
709
    CON_CLIPDIST,           // 110
713
    CON_CLIPDIST,           // 110
710
    CON_IFANGDIFFL,         // 111
714
    CON_IFANGDIFFL,         // 111
711
    CON_GAMEVAR,            // 112
715
    CON_GAMEVAR,            // 112
712
    CON_IFVARL,             // 113
716
    CON_IFVARL,             // 113
713
    CON_IFVARG,             // 114
717
    CON_IFVARG,             // 114
714
    CON_SETVARVAR,          // 115
718
    CON_SETVARVAR,          // 115
715
    CON_SETVAR,             // 116
719
    CON_SETVAR,             // 116
716
    CON_ADDVARVAR,          // 117
720
    CON_ADDVARVAR,          // 117
717
    CON_ADDVAR,             // 118
721
    CON_ADDVAR,             // 118
718
    CON_IFVARVARL,          // 119
722
    CON_IFVARVARL,          // 119
719
    CON_IFVARVARG,          // 120
723
    CON_IFVARVARG,          // 120
720
    CON_ADDLOGVAR,          // 121
724
    CON_ADDLOGVAR,          // 121
721
    CON_ADDLOG,             // 122
725
    CON_ADDLOG,             // 122
722
    CON_ONEVENT,            // 123
726
    CON_ONEVENT,            // 123
723
    CON_ENDEVENT,           // 124
727
    CON_ENDEVENT,           // 124
724
    CON_IFVARE,             // 125
728
    CON_IFVARE,             // 125
725
    CON_IFVARVARE,          // 126
729
    CON_IFVARVARE,          // 126
726
    CON_SPGETLOTAG,         // 127
730
    CON_SPGETLOTAG,         // 127
727
    CON_SPGETHITAG,         // 128
731
    CON_SPGETHITAG,         // 128
728
    CON_SECTGETLOTAG,       // 129
732
    CON_SECTGETLOTAG,       // 129
729
    CON_SECTGETHITAG,       // 130
733
    CON_SECTGETHITAG,       // 130
730
    CON_IFSOUND,            // 131
734
    CON_IFSOUND,            // 131
731
    CON_GETTEXTUREFLOOR,    // 132
735
    CON_GETTEXTUREFLOOR,    // 132
732
    CON_GETTEXTURECEILING,  // 133
736
    CON_GETTEXTURECEILING,  // 133
733
    CON_INITTIMER,          // 134
737
    CON_INITTIMER,          // 134
734
    CON_STARTTRACK,         // 135
738
    CON_STARTTRACK,         // 135
735
    CON_RANDVAR,            // 136
739
    CON_RANDVAR,            // 136
736
    CON_ENHANCED,           // 137
740
    CON_ENHANCED,           // 137
737
    CON_GETANGLETOTARGET,   // 138
741
    CON_GETANGLETOTARGET,   // 138
738
    CON_GETACTORANGLE,      // 139
742
    CON_GETACTORANGLE,      // 139
739
    CON_SETACTORANGLE,      // 140
743
    CON_SETACTORANGLE,      // 140
740
    CON_MULVAR,             // 141
744
    CON_MULVAR,             // 141
741
    CON_MULVARVAR,          // 142
745
    CON_MULVARVAR,          // 142
742
    CON_DIVVAR,             // 143
746
    CON_DIVVAR,             // 143
743
    CON_DIVVARVAR,          // 144
747
    CON_DIVVARVAR,          // 144
744
    CON_MODVAR,             // 145
748
    CON_MODVAR,             // 145
745
    CON_MODVARVAR,          // 146
749
    CON_MODVARVAR,          // 146
746
    CON_ANDVAR,             // 147
750
    CON_ANDVAR,             // 147
747
    CON_ANDVARVAR,          // 148
751
    CON_ANDVARVAR,          // 148
748
    CON_ORVAR,              // 149
752
    CON_ORVAR,              // 149
749
    CON_ORVARVAR,           // 150
753
    CON_ORVARVAR,           // 150
750
    CON_GETPLAYERANGLE,     // 151
754
    CON_GETPLAYERANGLE,     // 151
751
    CON_SETPLAYERANGLE,     // 152
755
    CON_SETPLAYERANGLE,     // 152
752
    CON_LOCKPLAYER,         // 153
756
    CON_LOCKPLAYER,         // 153
753
    CON_SETSECTOR,          // 154
757
    CON_SETSECTOR,          // 154
754
    CON_GETSECTOR,          // 155
758
    CON_GETSECTOR,          // 155
755
    CON_SETACTOR,           // 156
759
    CON_SETACTOR,           // 156
756
    CON_GETACTOR,           // 157
760
    CON_GETACTOR,           // 157
757
    CON_SETWALL,            // 158
761
    CON_SETWALL,            // 158
758
    CON_GETWALL,            // 159
762
    CON_GETWALL,            // 159
759
    CON_FINDNEARACTOR,      // 160
763
    CON_FINDNEARACTOR,      // 160
760
    CON_FINDNEARACTORVAR,   // 161
764
    CON_FINDNEARACTORVAR,   // 161
761
    CON_SETACTORVAR,        // 162
765
    CON_SETACTORVAR,        // 162
762
    CON_GETACTORVAR,        // 163
766
    CON_GETACTORVAR,        // 163
763
    CON_ESPAWN,             // 164
767
    CON_ESPAWN,             // 164
764
    CON_GETPLAYER,          // 165
768
    CON_GETPLAYER,          // 165
765
    CON_SETPLAYER,          // 166
769
    CON_SETPLAYER,          // 166
766
    CON_SQRT,               // 167
770
    CON_SQRT,               // 167
767
    CON_EVENTLOADACTOR,     // 168
771
    CON_EVENTLOADACTOR,     // 168
768
    CON_ESPAWNVAR,          // 169
772
    CON_ESPAWNVAR,          // 169
769
    CON_GETUSERDEF,         // 170
773
    CON_GETUSERDEF,         // 170
770
    CON_SETUSERDEF,         // 171
774
    CON_SETUSERDEF,         // 171
771
    CON_SUBVARVAR,          // 172
775
    CON_SUBVARVAR,          // 172
772
    CON_SUBVAR,             // 173
776
    CON_SUBVAR,             // 173
773
    CON_IFVARN,             // 174
777
    CON_IFVARN,             // 174
774
    CON_IFVARVARN,          // 175
778
    CON_IFVARVARN,          // 175
775
    CON_IFVARAND,           // 176
779
    CON_IFVARAND,           // 176
776
    CON_IFVARVARAND,        // 177
780
    CON_IFVARVARAND,        // 177
777
    CON_MYOS,               // 178
781
    CON_MYOS,               // 178
778
    CON_MYOSPAL,            // 179
782
    CON_MYOSPAL,            // 179
779
    CON_DISPLAYRAND,        // 180
783
    CON_DISPLAYRAND,        // 180
780
    CON_SIN,                // 181
784
    CON_SIN,                // 181
781
    CON_XORVARVAR,          // 182
785
    CON_XORVARVAR,          // 182
782
    CON_XORVAR,             // 183
786
    CON_XORVAR,             // 183
783
    CON_RANDVARVAR,         // 184
787
    CON_RANDVARVAR,         // 184
784
    CON_MYOSX,              // 185
788
    CON_MYOSX,              // 185
785
    CON_MYOSPALX,           // 186
789
    CON_MYOSPALX,           // 186
786
    CON_GMAXAMMO,           // 187
790
    CON_GMAXAMMO,           // 187
787
    CON_SMAXAMMO,           // 188
791
    CON_SMAXAMMO,           // 188
788
    CON_STARTLEVEL,         // 189
792
    CON_STARTLEVEL,         // 189
789
    CON_ESHOOT,             // 190
793
    CON_ESHOOT,             // 190
790
    CON_QSPAWN,             // 191
794
    CON_QSPAWN,             // 191
791
    CON_ROTATESPRITE,       // 192
795
    CON_ROTATESPRITE,       // 192
792
    CON_DEFINEPROJECTILE,   // 193
796
    CON_DEFINEPROJECTILE,   // 193
793
    CON_SPRITESHADOW,       // 194
797
    CON_SPRITESHADOW,       // 194
794
    CON_COS,                // 195
798
    CON_COS,                // 195
795
    CON_ESHOOTVAR,          // 196
799
    CON_ESHOOTVAR,          // 196
796
    CON_FINDNEARACTOR3D,    // 197
800
    CON_FINDNEARACTOR3D,    // 197
797
    CON_FINDNEARACTOR3DVAR, // 198
801
    CON_FINDNEARACTOR3DVAR, // 198
798
    CON_FLASH,              // 199
802
    CON_FLASH,              // 199
799
    CON_QSPAWNVAR,          // 200
803
    CON_QSPAWNVAR,          // 200
800
    CON_EQSPAWN,            // 201
804
    CON_EQSPAWN,            // 201
801
    CON_EQSPAWNVAR,         // 202
805
    CON_EQSPAWNVAR,         // 202
802
    CON_MINITEXT,           // 203
806
    CON_MINITEXT,           // 203
803
    CON_GAMETEXT,           // 204
807
    CON_GAMETEXT,           // 204
804
    CON_DIGITALNUMBER,      // 205
808
    CON_DIGITALNUMBER,      // 205
805
    CON_ADDWEAPONVAR,       // 206
809
    CON_ADDWEAPONVAR,       // 206
806
    CON_SETPROJECTILE,      // 207
810
    CON_SETPROJECTILE,      // 207
807
    CON_ANGOFF,             // 208
811
    CON_ANGOFF,             // 208
808
    CON_UPDATESECTOR,       // 209
812
    CON_UPDATESECTOR,       // 209
809
    CON_INSERTSPRITEQ,      // 210
813
    CON_INSERTSPRITEQ,      // 210
810
    CON_ANGOFFVAR,          // 211
814
    CON_ANGOFFVAR,          // 211
811
    CON_WHILEVARN,          // 212
815
    CON_WHILEVARN,          // 212
812
    CON_SWITCH,             // 213
816
    CON_SWITCH,             // 213
813
    CON_CASE,               // 214
817
    CON_CASE,               // 214
814
    CON_DEFAULT,            // 215
818
    CON_DEFAULT,            // 215
815
    CON_ENDSWITCH,          // 216
819
    CON_ENDSWITCH,          // 216
816
    CON_SHOOTVAR,           // 217
820
    CON_SHOOTVAR,           // 217
817
    CON_SOUNDVAR,           // 218
821
    CON_SOUNDVAR,           // 218
818
    CON_FINDPLAYER,         // 219
822
    CON_FINDPLAYER,         // 219
819
    CON_FINDOTHERPLAYER,    // 220
823
    CON_FINDOTHERPLAYER,    // 220
820
    CON_ACTIVATEBYSECTOR,   // 221
824
    CON_ACTIVATEBYSECTOR,   // 221
821
    CON_OPERATESECTORS,     // 222
825
    CON_OPERATESECTORS,     // 222
822
    CON_OPERATERESPAWNS,    // 223
826
    CON_OPERATERESPAWNS,    // 223
823
    CON_OPERATEACTIVATORS,  // 224
827
    CON_OPERATEACTIVATORS,  // 224
824
    CON_OPERATEMASTERSWITCHES,  // 225
828
    CON_OPERATEMASTERSWITCHES,  // 225
825
    CON_CHECKACTIVATORMOTION,   // 226
829
    CON_CHECKACTIVATORMOTION,   // 226
826
    CON_ZSHOOT,             // 227
830
    CON_ZSHOOT,             // 227
827
    CON_DIST,               // 228
831
    CON_DIST,               // 228
828
    CON_LDIST,              // 229
832
    CON_LDIST,              // 229
829
    CON_SHIFTVARL,          // 230
833
    CON_SHIFTVARL,          // 230
830
    CON_SHIFTVARR,          // 231
834
    CON_SHIFTVARR,          // 231
831
    CON_SPRITENVG,          // 232
835
    CON_SPRITENVG,          // 232
832
    CON_GETANGLE,           // 233
836
    CON_GETANGLE,           // 233
833
    CON_WHILEVARVARN,       // 234
837
    CON_WHILEVARVARN,       // 234
834
    CON_HITSCAN,            // 235
838
    CON_HITSCAN,            // 235
835
    CON_TIME,               // 236
839
    CON_TIME,               // 236
836
    CON_GETPLAYERVAR,       // 237
840
    CON_GETPLAYERVAR,       // 237
837
    CON_SETPLAYERVAR,       // 238
841
    CON_SETPLAYERVAR,       // 238
838
    CON_MULSCALE,           // 239
842
    CON_MULSCALE,           // 239
839
    CON_SETASPECT,          // 240
843
    CON_SETASPECT,          // 240
840
    CON_EZSHOOT,            // 241
844
    CON_EZSHOOT,            // 241
841
    CON_SPRITENOSHADE,      // 242
845
    CON_SPRITENOSHADE,      // 242
842
    CON_MOVESPRITE,         // 243
846
    CON_MOVESPRITE,         // 243
843
    CON_CHECKAVAILWEAPON,   // 244
847
    CON_CHECKAVAILWEAPON,   // 244
844
    CON_SOUNDONCEVAR,       // 245
848
    CON_SOUNDONCEVAR,       // 245
845
    CON_UPDATESECTORZ,      // 246
849
    CON_UPDATESECTORZ,      // 246
846
    CON_STOPALLSOUNDS,      // 247
850
    CON_STOPALLSOUNDS,      // 247
847
    CON_SSP,                // 248
851
    CON_SSP,                // 248
848
    CON_STOPSOUNDVAR,       // 249
852
    CON_STOPSOUNDVAR,       // 249
849
    CON_DISPLAYRANDVAR,     // 250
853
    CON_DISPLAYRANDVAR,     // 250
850
    CON_DISPLAYRANDVARVAR,  // 251
854
    CON_DISPLAYRANDVARVAR,  // 251
851
    CON_CHECKAVAILINVEN,    // 252
855
    CON_CHECKAVAILINVEN,    // 252
852
    CON_GLOBALSOUNDVAR,     // 253
856
    CON_GLOBALSOUNDVAR,     // 253
853
    CON_GUNIQHUDID,         // 254
857
    CON_GUNIQHUDID,         // 254
854
    CON_GETPROJECTILE,      // 255
858
    CON_GETPROJECTILE,      // 255
855
    CON_GETTHISPROJECTILE,  // 256
859
    CON_GETTHISPROJECTILE,  // 256
856
    CON_SETTHISPROJECTILE,  // 257
860
    CON_SETTHISPROJECTILE,  // 257
857
    CON_DEFINECHEAT,        // 258
861
    CON_DEFINECHEAT,        // 258
858
    CON_CHEATKEYS,          // 259
862
    CON_CHEATKEYS,          // 259
859
    CON_USERQUOTE,          // 260
863
    CON_USERQUOTE,          // 260
860
    CON_PRECACHE,           // 261
864
    CON_PRECACHE,           // 261
861
    CON_DEFINEGAMEFUNCNAME, // 262
865
    CON_DEFINEGAMEFUNCNAME, // 262
862
    CON_REDEFINEQUOTE,      // 263
866
    CON_REDEFINEQUOTE,      // 263
863
    CON_QSPRINTF,           // 264
867
    CON_QSPRINTF,           // 264
864
    CON_GETPNAME,           // 265
868
    CON_GETPNAME,           // 265
865
    CON_QSTRCAT,            // 266
869
    CON_QSTRCAT,            // 266
866
    CON_QSTRCPY,            // 267
870
    CON_QSTRCPY,            // 267
867
    CON_SETSPRITE,          // 268
871
    CON_SETSPRITE,          // 268
868
    CON_ROTATEPOINT,        // 269
872
    CON_ROTATEPOINT,        // 269
869
    CON_DRAGPOINT,          // 270
873
    CON_DRAGPOINT,          // 270
870
    CON_GETZRANGE,          // 271
874
    CON_GETZRANGE,          // 271
871
    CON_CHANGESPRITESTAT,   // 272
875
    CON_CHANGESPRITESTAT,   // 272
872
    CON_GETCEILZOFSLOPE,    // 273
876
    CON_GETCEILZOFSLOPE,    // 273
873
    CON_GETFLORZOFSLOPE,    // 274
877
    CON_GETFLORZOFSLOPE,    // 274
874
    CON_NEARTAG,            // 275
878
    CON_NEARTAG,            // 275
875
    CON_DEFINEGAMETYPE,     // 276
879
    CON_DEFINEGAMETYPE,     // 276
876
    CON_CHANGESPRITESECT,   // 277
880
    CON_CHANGESPRITESECT,   // 277
877
    CON_SPRITEFLAGS,        // 278
881
    CON_SPRITEFLAGS,        // 278
878
    CON_SAVEGAMEVAR,        // 279
882
    CON_SAVEGAMEVAR,        // 279
879
    CON_READGAMEVAR,        // 280
883
    CON_READGAMEVAR,        // 280
880
    CON_FINDNEARSPRITE,     // 281
884
    CON_FINDNEARSPRITE,     // 281
881
    CON_FINDNEARSPRITEVAR,  // 282
885
    CON_FINDNEARSPRITEVAR,  // 282
882
    CON_FINDNEARSPRITE3D,   // 283
886
    CON_FINDNEARSPRITE3D,   // 283
883
    CON_FINDNEARSPRITE3DVAR,// 284
887
    CON_FINDNEARSPRITE3DVAR,// 284
884
    CON_DYNAMICREMAP,       // 285
888
    CON_DYNAMICREMAP,       // 285
885
    CON_SETINPUT,           // 286
889
    CON_SETINPUT,           // 286
886
    CON_GETINPUT,           // 287
890
    CON_GETINPUT,           // 287
887
    CON_SAVE,               // 288
891
    CON_SAVE,               // 288
888
    CON_CANSEE,             // 289
892
    CON_CANSEE,             // 289
889
    CON_CANSEESPR,          // 290
893
    CON_CANSEESPR,          // 290
890
    CON_FINDNEARACTORZ,     // 291
894
    CON_FINDNEARACTORZ,     // 291
891
    CON_FINDNEARACTORZVAR,  // 292
895
    CON_FINDNEARACTORZVAR,  // 292
892
    CON_FINDNEARSPRITEZ,    // 293
896
    CON_FINDNEARSPRITEZ,    // 293
893
    CON_FINDNEARSPRITEZVAR, // 294
897
    CON_FINDNEARSPRITEZVAR, // 294
894
    CON_ZSHOOTVAR,          // 295
898
    CON_ZSHOOTVAR,          // 295
895
    CON_EZSHOOTVAR,         // 296
899
    CON_EZSHOOTVAR,         // 296
896
    CON_GETCURRADDRESS,     // 297
900
    CON_GETCURRADDRESS,     // 297
897
    CON_JUMP,               // 298
901
    CON_JUMP,               // 298
898
    CON_QSTRLEN,            // 299
902
    CON_QSTRLEN,            // 299
899
    CON_GETINCANGLE,        // 300
903
    CON_GETINCANGLE,        // 300
900
    CON_QUAKE,              // 301
904
    CON_QUAKE,              // 301
901
    CON_SHOWVIEW,           // 302
905
    CON_SHOWVIEW,           // 302
902
    CON_HEADSPRITESTAT,     // 303
906
    CON_HEADSPRITESTAT,     // 303
903
    CON_PREVSPRITESTAT,     // 304
907
    CON_PREVSPRITESTAT,     // 304
904
    CON_NEXTSPRITESTAT,     // 305
908
    CON_NEXTSPRITESTAT,     // 305
905
    CON_HEADSPRITESECT,     // 306
909
    CON_HEADSPRITESECT,     // 306
906
    CON_PREVSPRITESECT,     // 307
910
    CON_PREVSPRITESECT,     // 307
907
    CON_NEXTSPRITESECT,     // 308
911
    CON_NEXTSPRITESECT,     // 308
908
    CON_GETKEYNAME,         // 309
912
    CON_GETKEYNAME,         // 309
909
    CON_QSUBSTR,            // 310
913
    CON_QSUBSTR,            // 310
910
    CON_GAMETEXTZ,          // 311
914
    CON_GAMETEXTZ,          // 311
911
    CON_DIGITALNUMBERZ,     // 312
915
    CON_DIGITALNUMBERZ,     // 312
912
    CON_SPRITENOPAL,        // 313
916
    CON_SPRITENOPAL,        // 313
913
    CON_HITRADIUSVAR,       // 314
917
    CON_HITRADIUSVAR,       // 314
914
    CON_ROTATESPRITE16,     // 315
918
    CON_ROTATESPRITE16,     // 315
915
    CON_GAMEARRAY,          // 316
919
    CON_GAMEARRAY,          // 316
916
    CON_SETARRAY,           // 317
920
    CON_SETARRAY,           // 317
917
    CON_RESIZEARRAY,        // 318
921
    CON_RESIZEARRAY,        // 318
918
    CON_WRITEARRAYTOFILE,   // 319
922
    CON_WRITEARRAYTOFILE,   // 319
919
    CON_READARRAYFROMFILE,  // 320
923
    CON_READARRAYFROMFILE,  // 320
920
    CON_STARTTRACKVAR,      // 321
924
    CON_STARTTRACKVAR,      // 321
921
    CON_QGETSYSSTR,         // 322
925
    CON_QGETSYSSTR,         // 322
922
    CON_GETTICKS,           // 323
926
    CON_GETTICKS,           // 323
923
    CON_GETTSPR,            // 324
927
    CON_GETTSPR,            // 324
924
    CON_SETTSPR,            // 325
928
    CON_SETTSPR,            // 325
925
    CON_SAVEMAPSTATE,       // 326
929
    CON_SAVEMAPSTATE,       // 326
926
    CON_LOADMAPSTATE,       // 327
930
    CON_LOADMAPSTATE,       // 327
927
    CON_CLEARMAPSTATE,      // 328
931
    CON_CLEARMAPSTATE,      // 328
928
    CON_SCRIPTSIZE,         // 329
932
    CON_SCRIPTSIZE,         // 329
929
    CON_SETGAMENAME,        // 330
933
    CON_SETGAMENAME,        // 330
930
    CON_CMENU,              // 331
934
    CON_CMENU,              // 331
931
    CON_GETTIMEDATE,        // 332 
935
    CON_GETTIMEDATE,        // 332 
932
    CON_ACTIVATECHEAT,      // 333
936
    CON_ACTIVATECHEAT,      // 333
933
    CON_SETGAMEPALETTE,     // 334
937
    CON_SETGAMEPALETTE,     // 334
934
    CON_SETDEFNAME,         // 335
938
    CON_SETDEFNAME,         // 335
935
    CON_SETCFGNAME,         // 336
939
    CON_SETCFGNAME,         // 336
936
    CON_IFVAROR,            // 337
940
    CON_IFVAROR,            // 337
937
    CON_IFVARVAROR,         // 338
941
    CON_IFVARVAROR,         // 338
938
    CON_IFVARXOR,           // 339
942
    CON_IFVARXOR,           // 339
939
    CON_IFVARVARXOR,        // 340
943
    CON_IFVARVARXOR,        // 340
940
    CON_IFVAREITHER,        // 341
944
    CON_IFVAREITHER,        // 341
941
    CON_IFVARVAREITHER,     // 342
945
    CON_IFVARVAREITHER,     // 342
942
    CON_GETARRAYSIZE,       // 343
946
    CON_GETARRAYSIZE,       // 343
943
    CON_SAVENN,             // 344
947
    CON_SAVENN,             // 344
944
    CON_COPY,               // 345
948
    CON_COPY,               // 345
945
    CON_INV,                // 346
949
    CON_INV,                // 346
946
    CON_SECTOROFWALL,       // 347
950
    CON_SECTOROFWALL,       // 347
947
    CON_QSTRNCAT,           // 348
951
    CON_QSTRNCAT,           // 348
948
    CON_IFACTORSOUND,       // 349
952
    CON_IFACTORSOUND,       // 349
949
    CON_STOPACTORSOUND,     // 350
953
    CON_STOPACTORSOUND,     // 350
950
    CON_IFCLIENT,           // 351
954
    CON_IFCLIENT,           // 351
951
    CON_IFSERVER,           // 352
955
    CON_IFSERVER,           // 352
952
    CON_SECTSETINTERPOLATION, // 353
956
    CON_SECTSETINTERPOLATION, // 353
953
    CON_SECTCLEARINTERPOLATION, // 354
957
    CON_SECTCLEARINTERPOLATION, // 354
954
    CON_CLIPMOVE,           // 355
958
    CON_CLIPMOVE,           // 355
955
    CON_LINEINTERSECT,      // 356
959
    CON_LINEINTERSECT,      // 356
956
    CON_RAYINTERSECT,       // 357
960
    CON_RAYINTERSECT,       // 357
957
    CON_CALCHYPOTENUSE,     // 358
961
    CON_CALCHYPOTENUSE,     // 358
958
    CON_CLIPMOVENOSLIDE,    // 359
962
    CON_CLIPMOVENOSLIDE,    // 359
959
    CON_INCLUDEDEFAULT,     // 360
963
    CON_INCLUDEDEFAULT,     // 360
960
    CON_SETACTORSOUNDPITCH, // 361
964
    CON_SETACTORSOUNDPITCH, // 361
961
    CON_ECHO,               // 362
965
    CON_ECHO,               // 362
962
    CON_SHOWVIEWUNBIASED,   // 363
966
    CON_SHOWVIEWUNBIASED,   // 363
963
    CON_ROTATESPRITEA,      // 364
967
    CON_ROTATESPRITEA,      // 364
964
    CON_SHADETO,            // 365
968
    CON_SHADETO,            // 365
965
    CON_ENDOFLEVEL,         // 366
969
    CON_ENDOFLEVEL,         // 366
966
    CON_IFPLAYERSL,         // 367
970
    CON_IFPLAYERSL,         // 367
967
    CON_ACTIVATE,           // 368
971
    CON_ACTIVATE,           // 368
968
    CON_QSTRDIM,            // 369
972
    CON_QSTRDIM,            // 369
969
    CON_SCREENTEXT,         // 370
973
    CON_SCREENTEXT,         // 370
970
    CON_DYNAMICSOUNDREMAP,  // 371
974
    CON_DYNAMICSOUNDREMAP,  // 371
971
    CON_SCREENSOUND,        // 372
975
    CON_SCREENSOUND,        // 372
972
    CON_GETMUSICPOSITION,   // 373
976
    CON_GETMUSICPOSITION,   // 373
973
    CON_SETMUSICPOSITION,   // 374
977
    CON_SETMUSICPOSITION,   // 374
974
    CON_END
978
    CON_END
975
};
979
};
976
// KEEPINSYNC with the keyword list in lunatic/con_lang.lua
980
// KEEPINSYNC with the keyword list in lunatic/con_lang.lua
977
#endif
981
#endif
978
982
979
#ifdef __cplusplus
983
#ifdef __cplusplus
980
}
984
}
981
#endif
985
#endif
982
986
983
#endif // gamedef_h_
987
#endif // gamedef_h_
984
 
988