Subversion Repositories eduke32

Rev

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

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