Subversion Repositories eduke32

Rev

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