Subversion Repositories eduke32

Rev

Rev 856 | Rev 874 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5 Plagman 1
//-------------------------------------------------------------------------
2
/*
484 terminx 3
Copyright (C) 1996, 2003 - 3D Realms Entertainment
4
Copyright (C) 2000, 2003 - Matt Saettler (EDuke Enhancements)
5
Copyright (C) 2004, 2007 - EDuke32 developers
5 Plagman 6
 
7
This file is part of EDuke32
8
 
9
EDuke32 is free software; you can redistribute it and/or
10
modify it under the terms of the GNU General Public License version 2
11
as published by the Free Software Foundation.
12
 
13
This program is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16
 
17
See the GNU General Public License for more details.
18
 
19
You should have received a copy of the GNU General Public License
20
along with this program; if not, write to the Free Software
21
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
22
*/
23
//-------------------------------------------------------------------------
24
 
25
#define MAXGAMEEVENTS   128
26
#define LABEL_HASPARM2  1
27
#define LABEL_ISSTRING  2
28
 
29
extern int g_iReturnVarID;      // var ID of "RETURN"
30
extern int g_iWeaponVarID;      // var ID of "WEAPON"
31
extern int g_iWorksLikeVarID;   // var ID of "WORKSLIKE"
32
extern int g_iZRangeVarID;      // var ID of "ZRANGE"
33
extern int g_iAngRangeVarID;    // var ID of "ANGRANGE"
34
extern int g_iAimAngleVarID;    // var ID of "AUTOAIMANGLE"
35
extern int g_iLoTagID;          // var ID of "LOTAG"
36
extern int g_iHiTagID;          // var ID of "HITAG"
37
extern int g_iTextureID;        // var ID of "TEXTURE"
38
extern int g_iThisActorID;      // var ID of "THISACTOR"
39
 
709 qbix79 40
extern intptr_t *actorLoadEventScrptr[MAXTILES];
5 Plagman 41
 
709 qbix79 42
extern intptr_t *apScriptGameEvent[MAXGAMEEVENTS];
5 Plagman 43
 
610 terminx 44
extern int otherp;
584 terminx 45
extern int g_currentweapon;
46
extern int g_gun_pos;
47
extern int g_looking_arc;
48
extern int g_currentweapon;
49
extern int g_weapon_xoffset;
50
extern int g_gs;
51
extern int g_kb;
52
extern int g_looking_angSR1;
5 Plagman 53
extern int display_bonus_screen;
584 terminx 54
extern int lastvisinc;
855 terminx 55
extern char cheatstrings[][MAXCHEATLEN];
398 terminx 56
extern char compilefile[BMAX_PATH];
432 terminx 57
extern int total_lines,line_number;
58
extern int error,warning;
616 terminx 59
typedef struct
566 terminx 60
{
5 Plagman 61
    char *name;
584 terminx 62
    int lId;
5 Plagman 63
    int flags;
64
    int maxParm2;
616 terminx 65
} memberlabel_t;
5 Plagman 66
 
859 terminx 67
extern const memberlabel_t sectorlabels[];
68
extern const memberlabel_t walllabels[];
616 terminx 69
extern const memberlabel_t actorlabels[];
70
extern const memberlabel_t playerlabels[];
859 terminx 71
extern const memberlabel_t projectilelabels[];
72
extern const memberlabel_t userdeflabels[];
73
extern const memberlabel_t inputlabels[];
74
extern const memberlabel_t tsprlabels[];
566 terminx 75
 
398 terminx 76
enum errors
77
{
78
    ERROR_CLOSEBRACKET,
79
    ERROR_EVENTONLY,
80
    ERROR_EXCEEDSMAXTILES,
81
    ERROR_EXPECTEDKEYWORD,
82
    ERROR_FOUNDWITHIN,
83
    ERROR_ISAKEYWORD,
84
    ERROR_NOENDSWITCH,
85
    ERROR_NOTAGAMEDEF,
86
    ERROR_NOTAGAMEVAR,
676 terminx 87
    ERROR_NOTAGAMEARRAY,
88
    ERROR_GAMEARRAYBNC,
89
    ERROR_GAMEARRAYBNO,
90
    ERROR_INVALIDARRAYWRITE,
398 terminx 91
    ERROR_OPENBRACKET,
92
    ERROR_PARAMUNDEFINED,
93
    ERROR_SYMBOLNOTRECOGNIZED,
94
    ERROR_SYNTAXERROR,
95
    ERROR_VARREADONLY,
96
    ERROR_VARTYPEMISMATCH,
97
    WARNING_DUPLICATEDEFINITION,
98
    WARNING_EVENTSYNC,
99
    WARNING_LABELSONLY,
587 terminx 100
    WARNING_BADGAMEVAR,
633 terminx 101
    WARNING_DUPLICATECASE,
102
    WARNING_REVEVENTSYNC
398 terminx 103
};
104
 
566 terminx 105
enum playerlabels
106
{
5 Plagman 107
    PLAYER_ZOOM,
108
    PLAYER_EXITX,
109
    PLAYER_EXITY,
110
    PLAYER_LOOGIEX,
111
    PLAYER_LOOGIEY,
112
    PLAYER_NUMLOOGS,
113
    PLAYER_LOOGCNT,
114
    PLAYER_POSX,
115
    PLAYER_POSY,
116
    PLAYER_POSZ,
117
    PLAYER_HORIZ,
118
    PLAYER_OHORIZ,
119
    PLAYER_OHORIZOFF,
120
    PLAYER_INVDISPTIME,
121
    PLAYER_BOBPOSX,
122
    PLAYER_BOBPOSY,
123
    PLAYER_OPOSX,
124
    PLAYER_OPOSY,
125
    PLAYER_OPOSZ,
126
    PLAYER_PYOFF,
127
    PLAYER_OPYOFF,
128
    PLAYER_POSXV,
129
    PLAYER_POSYV,
130
    PLAYER_POSZV,
131
    PLAYER_LAST_PISSED_TIME,
132
    PLAYER_TRUEFZ,
133
    PLAYER_TRUECZ,
134
    PLAYER_PLAYER_PAR,
135
    PLAYER_VISIBILITY,
136
    PLAYER_BOBCOUNTER,
137
    PLAYER_WEAPON_SWAY,
138
    PLAYER_PALS_TIME,
139
    PLAYER_RANDOMFLAMEX,
140
    PLAYER_CRACK_TIME,
141
    PLAYER_AIM_MODE,
142
    PLAYER_ANG,
143
    PLAYER_OANG,
144
    PLAYER_ANGVEL,
145
    PLAYER_CURSECTNUM,
146
    PLAYER_LOOK_ANG,
147
    PLAYER_LAST_EXTRA,
148
    PLAYER_SUBWEAPON,
149
    PLAYER_AMMO_AMOUNT,
150
    PLAYER_WACKEDBYACTOR,
151
    PLAYER_FRAG,
152
    PLAYER_FRAGGEDSELF,
153
    PLAYER_CURR_WEAPON,
154
    PLAYER_LAST_WEAPON,
155
    PLAYER_TIPINCS,
156
    PLAYER_HORIZOFF,
157
    PLAYER_WANTWEAPONFIRE,
158
    PLAYER_HOLODUKE_AMOUNT,
159
    PLAYER_NEWOWNER,
160
    PLAYER_HURT_DELAY,
161
    PLAYER_HBOMB_HOLD_DELAY,
162
    PLAYER_JUMPING_COUNTER,
163
    PLAYER_AIRLEFT,
164
    PLAYER_KNEE_INCS,
165
    PLAYER_ACCESS_INCS,
166
    PLAYER_FTA,
167
    PLAYER_FTQ,
168
    PLAYER_ACCESS_WALLNUM,
169
    PLAYER_ACCESS_SPRITENUM,
170
    PLAYER_KICKBACK_PIC,
171
    PLAYER_GOT_ACCESS,
172
    PLAYER_WEAPON_ANG,
173
    PLAYER_FIRSTAID_AMOUNT,
174
    PLAYER_SOMETHINGONPLAYER,
175
    PLAYER_ON_CRANE,
176
    PLAYER_I,
177
    PLAYER_ONE_PARALLAX_SECTNUM,
178
    PLAYER_OVER_SHOULDER_ON,
179
    PLAYER_RANDOM_CLUB_FRAME,
180
    PLAYER_FIST_INCS,
181
    PLAYER_ONE_EIGHTY_COUNT,
182
    PLAYER_CHEAT_PHASE,
183
    PLAYER_DUMMYPLAYERSPRITE,
184
    PLAYER_EXTRA_EXTRA8,
185
    PLAYER_QUICK_KICK,
186
    PLAYER_HEAT_AMOUNT,
187
    PLAYER_ACTORSQU,
188
    PLAYER_TIMEBEFOREEXIT,
189
    PLAYER_CUSTOMEXITSOUND,
190
    PLAYER_WEAPRECS,
191
    PLAYER_WEAPRECCNT,
192
    PLAYER_INTERFACE_TOGGLE_FLAG,
193
    PLAYER_ROTSCRNANG,
194
    PLAYER_DEAD_FLAG,
195
    PLAYER_SHOW_EMPTY_WEAPON,
196
    PLAYER_SCUBA_AMOUNT,
197
    PLAYER_JETPACK_AMOUNT,
198
    PLAYER_STEROIDS_AMOUNT,
199
    PLAYER_SHIELD_AMOUNT,
200
    PLAYER_HOLODUKE_ON,
201
    PLAYER_PYCOUNT,
202
    PLAYER_WEAPON_POS,
203
    PLAYER_FRAG_PS,
204
    PLAYER_TRANSPORTER_HOLD,
205
    PLAYER_LAST_FULL_WEAPON,
206
    PLAYER_FOOTPRINTSHADE,
207
    PLAYER_BOOT_AMOUNT,
208
    PLAYER_SCREAM_VOICE,
209
    PLAYER_GM,
210
    PLAYER_ON_WARPING_SECTOR,
211
    PLAYER_FOOTPRINTCOUNT,
212
    PLAYER_HBOMB_ON,
213
    PLAYER_JUMPING_TOGGLE,
214
    PLAYER_RAPID_FIRE_HOLD,
215
    PLAYER_ON_GROUND,
216
    PLAYER_NAME,
217
    PLAYER_INVEN_ICON,
218
    PLAYER_BUTTONPALETTE,
219
    PLAYER_JETPACK_ON,
220
    PLAYER_SPRITEBRIDGE,
221
    PLAYER_LASTRANDOMSPOT,
222
    PLAYER_SCUBA_ON,
223
    PLAYER_FOOTPRINTPAL,
224
    PLAYER_HEAT_ON,
225
    PLAYER_HOLSTER_WEAPON,
226
    PLAYER_FALLING_COUNTER,
227
    PLAYER_GOTWEAPON,
228
    PLAYER_REFRESH_INVENTORY,
229
    PLAYER_PALETTE,
230
    PLAYER_TOGGLE_KEY_FLAG,
231
    PLAYER_KNUCKLE_INCS,
232
    PLAYER_WALKING_SND_TOGGLE,
233
    PLAYER_PALOOKUP,
234
    PLAYER_HARD_LANDING,
235
    PLAYER_MAX_SECRET_ROOMS,
236
    PLAYER_SECRET_ROOMS,
237
    PLAYER_PALS,
238
    PLAYER_MAX_ACTORS_KILLED,
239
    PLAYER_ACTORS_KILLED,
240
    PLAYER_RETURN_TO_CENTER,
241
    PLAYER_RUNSPEED,
242
    PLAYER_SBS,
243
    PLAYER_RELOADING,
244
    PLAYER_AUTO_AIM,
245
    PLAYER_MOVEMENT_LOCK,
246
    PLAYER_SOUND_PITCH,
268 terminx 247
    PLAYER_WEAPONSWITCH,
566 terminx 248
    PLAYER_TEAM,
249
    PLAYER_MAX_PLAYER_HEALTH,
250
    PLAYER_MAX_SHIELD_AMOUNT,
251
    PLAYER_MAX_AMMO_AMOUNT
5 Plagman 252
};
253
 
566 terminx 254
enum userdefslabels
255
{
5 Plagman 256
    USERDEFS_GOD,
257
    USERDEFS_WARP_ON,
258
    USERDEFS_CASHMAN,
259
    USERDEFS_EOG,
260
    USERDEFS_SHOWALLMAP,
261
    USERDEFS_SHOW_HELP,
262
    USERDEFS_SCROLLMODE,
263
    USERDEFS_CLIPPING,
264
    USERDEFS_USER_NAME,
265
    USERDEFS_RIDECULE,
266
    USERDEFS_SAVEGAME,
267
    USERDEFS_PWLOCKOUT,
268
    USERDEFS_RTSNAME,
269
    USERDEFS_OVERHEAD_ON,
270
    USERDEFS_LAST_OVERHEAD,
271
    USERDEFS_SHOWWEAPONS,
272
    USERDEFS_PAUSE_ON,
273
    USERDEFS_FROM_BONUS,
274
    USERDEFS_CAMERASPRITE,
275
    USERDEFS_LAST_CAMSPRITE,
276
    USERDEFS_LAST_LEVEL,
277
    USERDEFS_SECRETLEVEL,
278
    USERDEFS_CONST_VISIBILITY,
279
    USERDEFS_UW_FRAMERATE,
280
    USERDEFS_CAMERA_TIME,
281
    USERDEFS_FOLFVEL,
282
    USERDEFS_FOLAVEL,
283
    USERDEFS_FOLX,
284
    USERDEFS_FOLY,
285
    USERDEFS_FOLA,
286
    USERDEFS_RECCNT,
287
    USERDEFS_ENTERED_NAME,
288
    USERDEFS_SCREEN_TILTING,
289
    USERDEFS_SHADOWS,
290
    USERDEFS_FTA_ON,
291
    USERDEFS_EXECUTIONS,
292
    USERDEFS_AUTO_RUN,
293
    USERDEFS_COORDS,
294
    USERDEFS_TICKRATE,
295
    USERDEFS_M_COOP,
296
    USERDEFS_COOP,
297
    USERDEFS_SCREEN_SIZE,
298
    USERDEFS_LOCKOUT,
299
    USERDEFS_CROSSHAIR,
300
    USERDEFS_WCHOICE,
301
    USERDEFS_PLAYERAI,
302
    USERDEFS_RESPAWN_MONSTERS,
303
    USERDEFS_RESPAWN_ITEMS,
304
    USERDEFS_RESPAWN_INVENTORY,
305
    USERDEFS_RECSTAT,
306
    USERDEFS_MONSTERS_OFF,
307
    USERDEFS_BRIGHTNESS,
308
    USERDEFS_M_RESPAWN_ITEMS,
309
    USERDEFS_M_RESPAWN_MONSTERS,
310
    USERDEFS_M_RESPAWN_INVENTORY,
311
    USERDEFS_M_RECSTAT,
312
    USERDEFS_M_MONSTERS_OFF,
313
    USERDEFS_DETAIL,
314
    USERDEFS_M_FFIRE,
315
    USERDEFS_FFIRE,
316
    USERDEFS_M_PLAYER_SKILL,
317
    USERDEFS_M_LEVEL_NUMBER,
318
    USERDEFS_M_VOLUME_NUMBER,
319
    USERDEFS_MULTIMODE,
320
    USERDEFS_PLAYER_SKILL,
321
    USERDEFS_LEVEL_NUMBER,
322
    USERDEFS_VOLUME_NUMBER,
323
    USERDEFS_M_MARKER,
324
    USERDEFS_MARKER,
325
    USERDEFS_MOUSEFLIP,
326
    USERDEFS_STATUSBARSCALE,
327
    USERDEFS_DRAWWEAPON,
154 terminx 328
    USERDEFS_MOUSEAIMING,
329
    USERDEFS_WEAPONSWITCH,
53 terminx 330
    USERDEFS_DEMOCAMS,
89 terminx 331
    USERDEFS_COLOR,
128 terminx 332
    USERDEFS_MSGDISPTIME,
147 terminx 333
    USERDEFS_STATUSBARMODE,
334
    USERDEFS_M_NOEXITS,
148 terminx 335
    USERDEFS_NOEXITS,
150 terminx 336
    USERDEFS_AUTOVOTE,
152 terminx 337
    USERDEFS_AUTOMSG,
268 terminx 338
    USERDEFS_IDPLAYERS,
507 terminx 339
    USERDEFS_TEAM,
340
    USERDEFS_VIEWBOB,
529 terminx 341
    USERDEFS_WEAPONSWAY,
342
    USERDEFS_ANGLEINTERPOLATION,
674 terminx 343
    USERDEFS_DEATHMSGS,
344
    USERDEFS_LEVELSTATS
5 Plagman 345
};
346
 
566 terminx 347
enum sectorlabels
348
{
5 Plagman 349
    SECTOR_WALLPTR,
350
    SECTOR_WALLNUM,
351
    SECTOR_CEILINGZ,
352
    SECTOR_FLOORZ,
353
    SECTOR_CEILINGSTAT,
354
    SECTOR_FLOORSTAT,
355
    SECTOR_CEILINGPICNUM,
356
    SECTOR_CEILINGSLOPE,
357
    SECTOR_CEILINGSHADE,
358
    SECTOR_CEILINGPAL,
359
    SECTOR_CEILINGXPANNING,
360
    SECTOR_CEILINGYPANNING,
361
    SECTOR_FLOORPICNUM,
362
    SECTOR_FLOORSLOPE,
363
    SECTOR_FLOORSHADE,
364
    SECTOR_FLOORPAL,
365
    SECTOR_FLOORXPANNING,
366
    SECTOR_FLOORYPANNING,
367
    SECTOR_VISIBILITY,
368
    SECTOR_ALIGNTO,
369
    SECTOR_LOTAG,
370
    SECTOR_HITAG,
371
    SECTOR_EXTRA
372
};
373
 
566 terminx 374
enum walllabels
375
{
5 Plagman 376
    WALL_X,
377
    WALL_Y,
378
    WALL_POINT2,
379
    WALL_NEXTWALL,
380
    WALL_NEXTSECTOR,
381
    WALL_CSTAT,
382
    WALL_PICNUM,
383
    WALL_OVERPICNUM,
384
    WALL_SHADE,
385
    WALL_PAL,
386
    WALL_XREPEAT,
387
    WALL_YREPEAT,
388
    WALL_XPANNING,
389
    WALL_YPANNING,
390
    WALL_LOTAG,
391
    WALL_HITAG,
392
    WALL_EXTRA
393
};
394
 
566 terminx 395
enum actorlabels
396
{
5 Plagman 397
    ACTOR_X,
398
    ACTOR_Y,
399
    ACTOR_Z,
400
    ACTOR_CSTAT,
401
    ACTOR_PICNUM,
402
    ACTOR_SHADE,
403
    ACTOR_PAL,
404
    ACTOR_CLIPDIST,
405
    ACTOR_DETAIL,
406
    ACTOR_XREPEAT,
407
    ACTOR_YREPEAT,
408
    ACTOR_XOFFSET,
409
    ACTOR_YOFFSET,
410
    ACTOR_SECTNUM,
411
    ACTOR_STATNUM,
412
    ACTOR_ANG,
413
    ACTOR_OWNER,
414
    ACTOR_XVEL,
415
    ACTOR_YVEL,
416
    ACTOR_ZVEL,
417
    ACTOR_LOTAG,
418
    ACTOR_HITAG,
419
    ACTOR_EXTRA,
420
    ACTOR_HTCGG,
421
    ACTOR_HTPICNUM,
422
    ACTOR_HTANG,
423
    ACTOR_HTEXTRA,
424
    ACTOR_HTOWNER,
425
    ACTOR_HTMOVFLAG,
426
    ACTOR_HTTEMPANG,
427
    ACTOR_HTACTORSTAYPUT,
428
    ACTOR_HTDISPICNUM,
429
    ACTOR_HTTIMETOSLEEP,
430
    ACTOR_HTFLOORZ,
431
    ACTOR_HTCEILINGZ,
432
    ACTOR_HTLASTVX,
433
    ACTOR_HTLASTVY,
434
    ACTOR_HTBPOSX,
435
    ACTOR_HTBPOSY,
436
    ACTOR_HTBPOSZ,
437
    ACTOR_HTG_T,
438
    ACTOR_ANGOFF,
439
    ACTOR_PITCH,
440
    ACTOR_ROLL,
441
    ACTOR_MDXOFF,
442
    ACTOR_MDYOFF,
558 terminx 443
    ACTOR_MDZOFF,
590 plagman 444
    ACTOR_MDFLAGS,
445
    ACTOR_XPANNING,
853 terminx 446
    ACTOR_YPANNING,
856 terminx 447
};
448
 
449
enum tsprlabels
450
{
853 terminx 451
    ACTOR_TSPRX,
452
    ACTOR_TSPRY,
453
    ACTOR_TSPRZ,
454
    ACTOR_TSPRCSTAT,
455
    ACTOR_TSPRPICNUM,
456
    ACTOR_TSPRSHADE,
457
    ACTOR_TSPRPAL,
458
    ACTOR_TSPRXREPEAT,
459
    ACTOR_TSPRYREPEAT,
460
    ACTOR_TSPRXOFFSET,
461
    ACTOR_TSPRYOFFSET,
462
    ACTOR_TSPRSECTNUM,
463
    ACTOR_TSPRANG,
5 Plagman 464
};
465
 
566 terminx 466
enum inputlabels
467
{
5 Plagman 468
    INPUT_AVEL,
469
    INPUT_HORZ,
470
    INPUT_FVEL,
471
    INPUT_SVEL,
472
    INPUT_BITS,
275 terminx 473
    INPUT_EXTBITS
5 Plagman 474
};
475
 
566 terminx 476
enum projectilelabels
477
{
5 Plagman 478
    PROJ_WORKSLIKE,
479
    PROJ_SPAWNS,
480
    PROJ_SXREPEAT,
481
    PROJ_SYREPEAT,
482
    PROJ_SOUND,
483
    PROJ_ISOUND,
484
    PROJ_VEL,
485
    PROJ_EXTRA,
486
    PROJ_DECAL,
487
    PROJ_TRAIL,
488
    PROJ_TXREPEAT,
489
    PROJ_TYREPEAT,
490
    PROJ_TOFFSET,
491
    PROJ_TNUM,
492
    PROJ_DROP,
493
    PROJ_CSTAT,
494
    PROJ_CLIPDIST,
495
    PROJ_SHADE,
496
    PROJ_XREPEAT,
497
    PROJ_YREPEAT,
498
    PROJ_PAL,
499
    PROJ_EXTRA_RAND,
500
    PROJ_HITRADIUS,
501
    PROJ_VEL_MULT,
502
    PROJ_OFFSET,
503
    PROJ_BOUNCES,
504
    PROJ_BSOUND,
505
    PROJ_RANGE // 28
506
};
507
 
566 terminx 508
enum keywords
509
{
5 Plagman 510
    CON_DEFINELEVELNAME,    // 0
511
    CON_ACTOR,              // 1
512
    CON_ADDAMMO,            // 2
513
    CON_IFRND,              // 3
514
    CON_ENDA,               // 4
515
    CON_IFCANSEE,           // 5
516
    CON_IFHITWEAPON,        // 6
517
    CON_ACTION,             // 7
518
    CON_IFPDISTL,           // 8
519
    CON_IFPDISTG,           // 9
520
    CON_ELSE,               // 10
521
    CON_STRENGTH,           // 11
522
    CON_BREAK,              // 12
523
    CON_SHOOT,              // 13
524
    CON_PALFROM,            // 14
525
    CON_SOUND,              // 15
526
    CON_FALL,               // 16
527
    CON_STATE,              // 17
528
    CON_ENDS,               // 18
529
    CON_DEFINE,             // 19
530
    CON_COMMENT,            // 20 deprecated
531
    CON_IFAI,               // 21
532
    CON_KILLIT,             // 22
533
    CON_ADDWEAPON,          // 23
534
    CON_AI,                 // 24
535
    CON_ADDPHEALTH,         // 25
536
    CON_IFDEAD,             // 26
537
    CON_IFSQUISHED,         // 27
538
    CON_SIZETO,             // 28
539
    CON_LEFTBRACE,          // 29
540
    CON_RIGHTBRACE,         // 30
541
    CON_SPAWN,              // 31
542
    CON_MOVE,               // 32
543
    CON_IFWASWEAPON,        // 33
544
    CON_IFACTION,           // 34
545
    CON_IFACTIONCOUNT,      // 35
546
    CON_RESETACTIONCOUNT,   // 36
547
    CON_DEBRIS,             // 37
548
    CON_PSTOMP,             // 38
549
    CON_BLOCKCOMMENT,       // 39 deprecated
550
    CON_CSTAT,              // 40
551
    CON_IFMOVE,             // 41
552
    CON_RESETPLAYER,        // 42
553
    CON_IFONWATER,          // 43
554
    CON_IFINWATER,          // 44
555
    CON_IFCANSHOOTTARGET,   // 45
556
    CON_IFCOUNT,            // 46
557
    CON_RESETCOUNT,         // 47
558
    CON_ADDINVENTORY,       // 48
559
    CON_IFACTORNOTSTAYPUT,  // 49
560
    CON_HITRADIUS,          // 50
561
    CON_IFP,                // 51
562
    CON_COUNT,              // 52
563
    CON_IFACTOR,            // 53
564
    CON_MUSIC,              // 54
565
    CON_INCLUDE,            // 55
566
    CON_IFSTRENGTH,         // 56
567
    CON_DEFINESOUND,        // 57
568
    CON_GUTS,               // 58
569
    CON_IFSPAWNEDBY,        // 59
570
    CON_GAMESTARTUP,        // 60
571
    CON_WACKPLAYER,         // 61
572
    CON_IFGAPZL,            // 62
573
    CON_IFHITSPACE,         // 63
574
    CON_IFOUTSIDE,          // 64
575
    CON_IFMULTIPLAYER,      // 65
576
    CON_OPERATE,            // 66
577
    CON_IFINSPACE,          // 67
578
    CON_DEBUG,              // 68
579
    CON_ENDOFGAME,          // 69
580
    CON_IFBULLETNEAR,       // 70
581
    CON_IFRESPAWN,          // 71
582
    CON_IFFLOORDISTL,       // 72
583
    CON_IFCEILINGDISTL,     // 73
584
    CON_SPRITEPAL,          // 74
585
    CON_IFPINVENTORY,       // 75
586
    CON_BETANAME,           // 76
587
    CON_CACTOR,             // 77
588
    CON_IFPHEALTHL,         // 78
589
    CON_DEFINEQUOTE,        // 79
590
    CON_QUOTE,              // 80
591
    CON_IFINOUTERSPACE,     // 81
592
    CON_IFNOTMOVING,        // 82
593
    CON_RESPAWNHITAG,       // 83
594
    CON_TIP,                // 84
595
    CON_IFSPRITEPAL,        // 85
596
    CON_MONEY,              // 86
597
    CON_SOUNDONCE,          // 87
598
    CON_ADDKILLS,           // 88
599
    CON_STOPSOUND,          // 89
600
    CON_IFAWAYFROMWALL,     // 90
601
    CON_IFCANSEETARGET,     // 91
602
    CON_GLOBALSOUND,        // 92
603
    CON_LOTSOFGLASS,        // 93
604
    CON_IFGOTWEAPONCE,      // 94
605
    CON_GETLASTPAL,         // 95
606
    CON_PKICK,              // 96
607
    CON_MIKESND,            // 97
608
    CON_USERACTOR,          // 98
609
    CON_SIZEAT,             // 99
610
    CON_ADDSTRENGTH,        // 100
611
    CON_CSTATOR,            // 101
612
    CON_MAIL,               // 102
613
    CON_PAPER,              // 103
614
    CON_TOSSWEAPON,         // 104
615
    CON_SLEEPTIME,          // 105
616
    CON_NULLOP,             // 106
617
    CON_DEFINEVOLUMENAME,   // 107
618
    CON_DEFINESKILLNAME,    // 108
619
    CON_IFNOSOUNDS,         // 109
620
    CON_CLIPDIST,           // 110
621
    CON_IFANGDIFFL,         // 111
622
    CON_GAMEVAR,            // 112
623
    CON_IFVARL,             // 113
624
    CON_IFVARG,             // 114
625
    CON_SETVARVAR,          // 115
626
    CON_SETVAR,             // 116
627
    CON_ADDVARVAR,          // 117
628
    CON_ADDVAR,             // 118
629
    CON_IFVARVARL,          // 119
630
    CON_IFVARVARG,          // 120
631
    CON_ADDLOGVAR,          // 121
632
    CON_ADDLOG,             // 122
633
    CON_ONEVENT,            // 123
634
    CON_ENDEVENT,           // 124
635
    CON_IFVARE,             // 125
636
    CON_IFVARVARE,          // 126
637
    CON_SPGETLOTAG,         // 127
638
    CON_SPGETHITAG,         // 128
639
    CON_SECTGETLOTAG,       // 129
640
    CON_SECTGETHITAG,       // 130
641
    CON_IFSOUND,            // 131
642
    CON_GETTEXTUREFLOOR,    // 132
643
    CON_GETTEXTURECEILING,  // 133
644
    CON_INITTIMER,          // 134
645
    CON_STARTTRACK,         // 135
646
    CON_RANDVAR,            // 136
647
    CON_ENHANCED,           // 137
648
    CON_GETANGLETOTARGET,   // 138
649
    CON_GETACTORANGLE,      // 139
650
    CON_SETACTORANGLE,      // 140
651
    CON_MULVAR,             // 141
652
    CON_MULVARVAR,          // 142
653
    CON_DIVVAR,             // 143
654
    CON_DIVVARVAR,          // 144
655
    CON_MODVAR,             // 145
656
    CON_MODVARVAR,          // 146
657
    CON_ANDVAR,             // 147
658
    CON_ANDVARVAR,          // 148
659
    CON_ORVAR,              // 149
660
    CON_ORVARVAR,           // 150
661
    CON_GETPLAYERANGLE,     // 151
662
    CON_SETPLAYERANGLE,     // 152
663
    CON_LOCKPLAYER,         // 153
664
    CON_SETSECTOR,          // 154
665
    CON_GETSECTOR,          // 155
666
    CON_SETACTOR,           // 156
667
    CON_GETACTOR,           // 157
668
    CON_SETWALL,            // 158
669
    CON_GETWALL,            // 159
670
    CON_FINDNEARACTOR,      // 160
671
    CON_FINDNEARACTORVAR,   // 161
672
    CON_SETACTORVAR,        // 162
673
    CON_GETACTORVAR,        // 163
674
    CON_ESPAWN,             // 164
675
    CON_GETPLAYER,          // 165
676
    CON_SETPLAYER,          // 166
677
    CON_SQRT,               // 167
678
    CON_EVENTLOADACTOR,     // 168
679
    CON_ESPAWNVAR,          // 169
680
    CON_GETUSERDEF,         // 170
681
    CON_SETUSERDEF,         // 171
682
    CON_SUBVARVAR,          // 172
683
    CON_SUBVAR,             // 173
684
    CON_IFVARN,             // 174
685
    CON_IFVARVARN,          // 175
686
    CON_IFVARAND,           // 176
687
    CON_IFVARVARAND,        // 177
688
    CON_MYOS,               // 178
689
    CON_MYOSPAL,            // 179
690
    CON_DISPLAYRAND,        // 180
691
    CON_SIN,                // 181
692
    CON_XORVARVAR,          // 182
693
    CON_XORVAR,             // 183
694
    CON_RANDVARVAR,         // 184
695
    CON_MYOSX,              // 185
696
    CON_MYOSPALX,           // 186
697
    CON_GMAXAMMO,           // 187
698
    CON_SMAXAMMO,           // 188
699
    CON_STARTLEVEL,         // 189
700
    CON_ESHOOT,             // 190
701
    CON_QSPAWN,             // 191
702
    CON_ROTATESPRITE,       // 192
703
    CON_DEFINEPROJECTILE,   // 193
704
    CON_SPRITESHADOW,       // 194
705
    CON_COS,                // 195
706
    CON_ESHOOTVAR,          // 196
707
    CON_FINDNEARACTOR3D,    // 197
708
    CON_FINDNEARACTOR3DVAR, // 198
709
    CON_FLASH,              // 199
710
    CON_QSPAWNVAR,          // 200
711
    CON_EQSPAWN,            // 201
712
    CON_EQSPAWNVAR,         // 202
713
    CON_MINITEXT,           // 203
714
    CON_GAMETEXT,           // 204
715
    CON_DIGITALNUMBER,      // 205
716
    CON_ADDWEAPONVAR,       // 206
717
    CON_SETPROJECTILE,      // 207
718
    CON_ANGOFF,             // 208
719
    CON_UPDATESECTOR,       // 209
720
    CON_INSERTSPRITEQ,      // 210
721
    CON_ANGOFFVAR,          // 211
722
    CON_WHILEVARN,          // 212
723
    CON_SWITCH,             // 213
724
    CON_CASE,               // 214
725
    CON_DEFAULT,            // 215
726
    CON_ENDSWITCH,          // 216
727
    CON_SHOOTVAR,           // 217
728
    CON_SOUNDVAR,           // 218
729
    CON_FINDPLAYER,         // 219
730
    CON_FINDOTHERPLAYER,    // 220
731
    CON_ACTIVATEBYSECTOR,   // 221
732
    CON_OPERATESECTORS,     // 222
733
    CON_OPERATERESPAWNS,    // 223
734
    CON_OPERATEACTIVATORS,  // 224
735
    CON_OPERATEMASTERSWITCHES,  // 225
736
    CON_CHECKACTIVATORMOTION,   // 226
737
    CON_ZSHOOT,             // 227
738
    CON_DIST,               // 228
739
    CON_LDIST,              // 229
740
    CON_SHIFTVARL,          // 230
741
    CON_SHIFTVARR,          // 231
742
    CON_SPRITENVG,          // 232
743
    CON_GETANGLE,           // 233
744
    CON_WHILEVARVARN,       // 234
745
    CON_HITSCAN,            // 235
746
    CON_TIME,               // 236
747
    CON_GETPLAYERVAR,       // 237
748
    CON_SETPLAYERVAR,       // 238
749
    CON_MULSCALE,           // 239
750
    CON_SETASPECT,          // 240
251 terminx 751
    CON_EZSHOOT,            // 241
5 Plagman 752
    CON_SPRITENOSHADE,      // 242
753
    CON_MOVESPRITE,         // 243
754
    CON_CHECKAVAILWEAPON,   // 244
755
    CON_SOUNDONCEVAR,       // 245
756
    CON_UPDATESECTORZ,      // 246
757
    CON_STOPALLSOUNDS,      // 247
758
    CON_SSP,                // 248
759
    CON_STOPSOUNDVAR,       // 249
760
    CON_DISPLAYRANDVAR,     // 250
761
    CON_DISPLAYRANDVARVAR,  // 251
762
    CON_CHECKAVAILINVEN,    // 252
763
    CON_GLOBALSOUNDVAR,     // 253
764
    CON_GUNIQHUDID,         // 254
765
    CON_GETPROJECTILE,      // 255
766
    CON_GETTHISPROJECTILE,  // 256
767
    CON_SETTHISPROJECTILE,  // 257
768
    CON_DEFINECHEAT,        // 258
769
    CON_CHEATKEYS,          // 259
770
    CON_USERQUOTE,          // 260
771
    CON_PRECACHE,           // 261
121 terminx 772
    CON_DEFINEGAMEFUNCNAME, // 262
5 Plagman 773
    CON_REDEFINEQUOTE,      // 263
290 terminx 774
    CON_QSPRINTF,           // 264
5 Plagman 775
    CON_GETPNAME,           // 265
776
    CON_QSTRCAT,            // 266
777
    CON_QSTRCPY,            // 267
778
    CON_SETSPRITE,          // 268
779
    CON_ROTATEPOINT,        // 269
780
    CON_DRAGPOINT,          // 270
781
    CON_GETZRANGE,          // 271
782
    CON_CHANGESPRITESTAT,   // 272
783
    CON_GETCEILZOFSLOPE,    // 273
784
    CON_GETFLORZOFSLOPE,    // 274
785
    CON_NEARTAG,            // 275
786
    CON_DEFINEGAMETYPE,     // 276
787
    CON_CHANGESPRITESECT,   // 277
788
    CON_SPRITEFLAGS,        // 278
789
    CON_SAVEGAMEVAR,        // 279
790
    CON_READGAMEVAR,        // 280
791
    CON_FINDNEARSPRITE,     // 281
792
    CON_FINDNEARSPRITEVAR,  // 282
793
    CON_FINDNEARSPRITE3D,   // 283
794
    CON_FINDNEARSPRITE3DVAR,// 284
795
    CON_DYNAMICREMAP,       // 285
796
    CON_SETINPUT,           // 286
797
    CON_GETINPUT,           // 287
154 terminx 798
    CON_SAVE,                           // 288
97 terminx 799
    CON_CANSEE,             // 289
106 terminx 800
    CON_CANSEESPR,          // 290
169 terminx 801
    CON_FINDNEARACTORZ,     // 291
802
    CON_FINDNEARACTORZVAR,  // 292
803
    CON_FINDNEARSPRITEZ,    // 293
804
    CON_FINDNEARSPRITEZVAR, // 294
305 terminx 805
    CON_ZSHOOTVAR,                      // 295
806
    CON_EZSHOOTVAR,                     // 296
807
    CON_GETCURRADDRESS,         // 297
808
    CON_JUMP,                           // 298
809
    CON_QSTRLEN,                        // 299
329 terminx 810
    CON_GETINCANGLE,        // 300
444 terminx 811
    CON_QUAKE,              // 301
484 terminx 812
    CON_SHOWVIEW,           // 302
558 terminx 813
    CON_HEADSPRITESTAT,     // 303
814
    CON_PREVSPRITESTAT,     // 304
815
    CON_NEXTSPRITESTAT,     // 305
816
    CON_HEADSPRITESECT,     // 306
817
    CON_PREVSPRITESECT,     // 307
818
    CON_NEXTSPRITESECT,     // 308
587 terminx 819
    CON_GETKEYNAME,         // 309
820
    CON_QSUBSTR,            // 310
821
    CON_GAMETEXTZ,          // 311
822
    CON_DIGITALNUMBERZ,     // 312
823
    CON_SPRITENOPAL,        // 313
617 terminx 824
    CON_HITRADIUSVAR,       // 314
642 terminx 825
    CON_ROTATESPRITE16,     // 315
676 terminx 826
    CON_GAMEARRAY,          // 316
827
    CON_SETARRAY,           // 317
693 terminx 828
    CON_RESIZEARRAY,        // 318
829
    CON_WRITEARRAYTOFILE,   // 319
830
    CON_READARRAYFROMFILE,  // 320
859 terminx 831
    CON_STARTTRACKVAR,          // 321
832
    CON_QGETSYSSTR,             // 322
833
    CON_GETTICKS,                       // 323
856 terminx 834
    CON_GETTSPR,            // 324
835
    CON_SETTSPR,            // 325
859 terminx 836
    CON_SAVEMAPSTATE,       // 326
837
    CON_LOADMAPSTATE,       // 327
838
    CON_CLEARMAPSTATE,      // 328
5 Plagman 839
};