Subversion Repositories eduke32

Rev

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