Subversion Repositories eduke32

Rev

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