Subversion Repositories eduke32

Rev

Rev 4969 | 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,
4970 hendricks2 433
    USERDEFS_MUSICTOGGLE,
1025 terminx 434
    USERDEFS_END
5 Plagman 435
};
436
 
1143 terminx 437
enum SectorLabel_t
566 terminx 438
{
5 Plagman 439
    SECTOR_WALLPTR,
440
    SECTOR_WALLNUM,
441
    SECTOR_CEILINGZ,
442
    SECTOR_FLOORZ,
443
    SECTOR_CEILINGSTAT,
444
    SECTOR_FLOORSTAT,
445
    SECTOR_CEILINGPICNUM,
446
    SECTOR_CEILINGSLOPE,
447
    SECTOR_CEILINGSHADE,
448
    SECTOR_CEILINGPAL,
449
    SECTOR_CEILINGXPANNING,
450
    SECTOR_CEILINGYPANNING,
451
    SECTOR_FLOORPICNUM,
452
    SECTOR_FLOORSLOPE,
453
    SECTOR_FLOORSHADE,
454
    SECTOR_FLOORPAL,
455
    SECTOR_FLOORXPANNING,
456
    SECTOR_FLOORYPANNING,
457
    SECTOR_VISIBILITY,
4416 helixhorne 458
    SECTOR_FOGPAL,
5 Plagman 459
    SECTOR_LOTAG,
460
    SECTOR_HITAG,
1025 terminx 461
    SECTOR_EXTRA,
1931 helixhorne 462
    SECTOR_CEILINGBUNCH,
463
    SECTOR_FLOORBUNCH,
3192 terminx 464
    SECTOR_ULOTAG,
465
    SECTOR_UHITAG,
1025 terminx 466
    SECTOR_END
5 Plagman 467
};
468
 
1143 terminx 469
enum WallLabel_t
566 terminx 470
{
5 Plagman 471
    WALL_X,
472
    WALL_Y,
473
    WALL_POINT2,
474
    WALL_NEXTWALL,
475
    WALL_NEXTSECTOR,
476
    WALL_CSTAT,
477
    WALL_PICNUM,
478
    WALL_OVERPICNUM,
479
    WALL_SHADE,
480
    WALL_PAL,
481
    WALL_XREPEAT,
482
    WALL_YREPEAT,
483
    WALL_XPANNING,
484
    WALL_YPANNING,
485
    WALL_LOTAG,
486
    WALL_HITAG,
1025 terminx 487
    WALL_EXTRA,
3192 terminx 488
    WALL_ULOTAG,
489
    WALL_UHITAG,
1025 terminx 490
    WALL_END
5 Plagman 491
};
492
 
1143 terminx 493
enum ActorLabel_t
566 terminx 494
{
5 Plagman 495
    ACTOR_X,
496
    ACTOR_Y,
497
    ACTOR_Z,
498
    ACTOR_CSTAT,
499
    ACTOR_PICNUM,
500
    ACTOR_SHADE,
501
    ACTOR_PAL,
502
    ACTOR_CLIPDIST,
503
    ACTOR_DETAIL,
504
    ACTOR_XREPEAT,
505
    ACTOR_YREPEAT,
506
    ACTOR_XOFFSET,
507
    ACTOR_YOFFSET,
508
    ACTOR_SECTNUM,
509
    ACTOR_STATNUM,
510
    ACTOR_ANG,
511
    ACTOR_OWNER,
512
    ACTOR_XVEL,
513
    ACTOR_YVEL,
514
    ACTOR_ZVEL,
515
    ACTOR_LOTAG,
516
    ACTOR_HITAG,
517
    ACTOR_EXTRA,
518
    ACTOR_HTCGG,
519
    ACTOR_HTPICNUM,
520
    ACTOR_HTANG,
521
    ACTOR_HTEXTRA,
522
    ACTOR_HTOWNER,
523
    ACTOR_HTMOVFLAG,
524
    ACTOR_HTTEMPANG,
525
    ACTOR_HTACTORSTAYPUT,
526
    ACTOR_HTDISPICNUM,
527
    ACTOR_HTTIMETOSLEEP,
528
    ACTOR_HTFLOORZ,
529
    ACTOR_HTCEILINGZ,
530
    ACTOR_HTLASTVX,
531
    ACTOR_HTLASTVY,
532
    ACTOR_HTBPOSX,
533
    ACTOR_HTBPOSY,
534
    ACTOR_HTBPOSZ,
535
    ACTOR_HTG_T,
536
    ACTOR_ANGOFF,
537
    ACTOR_PITCH,
538
    ACTOR_ROLL,
539
    ACTOR_MDXOFF,
540
    ACTOR_MDYOFF,
558 terminx 541
    ACTOR_MDZOFF,
590 plagman 542
    ACTOR_MDFLAGS,
543
    ACTOR_XPANNING,
853 terminx 544
    ACTOR_YPANNING,
939 terminx 545
    ACTOR_HTFLAGS,
1341 terminx 546
    ACTOR_ALPHA,
3192 terminx 547
    ACTOR_ULOTAG,
548
    ACTOR_UHITAG,
4146 helixhorne 549
    ACTOR_ISVALID,
1025 terminx 550
    ACTOR_END
856 terminx 551
};
552
 
1143 terminx 553
enum InputLabel_t
566 terminx 554
{
5 Plagman 555
    INPUT_AVEL,
556
    INPUT_HORZ,
557
    INPUT_FVEL,
558
    INPUT_SVEL,
559
    INPUT_BITS,
1025 terminx 560
    INPUT_EXTBITS,
561
    INPUT_END
5 Plagman 562
};
563
 
3463 helixhorne 564
#endif
2762 helixhorne 565
// KEEPINSYNC lunatic/con_lang.lua
1143 terminx 566
enum ProjectileLabel_t
566 terminx 567
{
2762 helixhorne 568
    PROJ_WORKSLIKE,  // 0
5 Plagman 569
    PROJ_SPAWNS,
570
    PROJ_SXREPEAT,
571
    PROJ_SYREPEAT,
572
    PROJ_SOUND,
2762 helixhorne 573
    PROJ_ISOUND,  // 5
5 Plagman 574
    PROJ_VEL,
575
    PROJ_EXTRA,
576
    PROJ_DECAL,
577
    PROJ_TRAIL,
2762 helixhorne 578
    PROJ_TXREPEAT,  // 10
5 Plagman 579
    PROJ_TYREPEAT,
580
    PROJ_TOFFSET,
581
    PROJ_TNUM,
582
    PROJ_DROP,
2762 helixhorne 583
    PROJ_CSTAT,  // 15
5 Plagman 584
    PROJ_CLIPDIST,
585
    PROJ_SHADE,
586
    PROJ_XREPEAT,
587
    PROJ_YREPEAT,
2762 helixhorne 588
    PROJ_PAL,  // 20
5 Plagman 589
    PROJ_EXTRA_RAND,
590
    PROJ_HITRADIUS,
3053 terminx 591
    PROJ_MOVECNT,
5 Plagman 592
    PROJ_OFFSET,
2762 helixhorne 593
    PROJ_BOUNCES,  // 25
5 Plagman 594
    PROJ_BSOUND,
1315 terminx 595
    PROJ_RANGE,
2762 helixhorne 596
    PROJ_FLASH_COLOR,
3866 helixhorne 597
    PROJ_USERDATA,
1025 terminx 598
    PROJ_END
5 Plagman 599
};
3463 helixhorne 600
#if !defined LUNATIC
5 Plagman 601
 
1143 terminx 602
enum ScriptKeywords_t
566 terminx 603
{
5 Plagman 604
    CON_DEFINELEVELNAME,    // 0
605
    CON_ACTOR,              // 1
606
    CON_ADDAMMO,            // 2
607
    CON_IFRND,              // 3
608
    CON_ENDA,               // 4
609
    CON_IFCANSEE,           // 5
610
    CON_IFHITWEAPON,        // 6
611
    CON_ACTION,             // 7
612
    CON_IFPDISTL,           // 8
613
    CON_IFPDISTG,           // 9
614
    CON_ELSE,               // 10
615
    CON_STRENGTH,           // 11
616
    CON_BREAK,              // 12
617
    CON_SHOOT,              // 13
618
    CON_PALFROM,            // 14
619
    CON_SOUND,              // 15
620
    CON_FALL,               // 16
621
    CON_STATE,              // 17
622
    CON_ENDS,               // 18
623
    CON_DEFINE,             // 19
1203 terminx 624
    CON_RETURN,             // 20
5 Plagman 625
    CON_IFAI,               // 21
626
    CON_KILLIT,             // 22
627
    CON_ADDWEAPON,          // 23
628
    CON_AI,                 // 24
629
    CON_ADDPHEALTH,         // 25
630
    CON_IFDEAD,             // 26
631
    CON_IFSQUISHED,         // 27
632
    CON_SIZETO,             // 28
633
    CON_LEFTBRACE,          // 29
634
    CON_RIGHTBRACE,         // 30
635
    CON_SPAWN,              // 31
636
    CON_MOVE,               // 32
637
    CON_IFWASWEAPON,        // 33
638
    CON_IFACTION,           // 34
639
    CON_IFACTIONCOUNT,      // 35
640
    CON_RESETACTIONCOUNT,   // 36
641
    CON_DEBRIS,             // 37
642
    CON_PSTOMP,             // 38
643
    CON_BLOCKCOMMENT,       // 39 deprecated
644
    CON_CSTAT,              // 40
645
    CON_IFMOVE,             // 41
646
    CON_RESETPLAYER,        // 42
647
    CON_IFONWATER,          // 43
648
    CON_IFINWATER,          // 44
649
    CON_IFCANSHOOTTARGET,   // 45
650
    CON_IFCOUNT,            // 46
651
    CON_RESETCOUNT,         // 47
652
    CON_ADDINVENTORY,       // 48
653
    CON_IFACTORNOTSTAYPUT,  // 49
654
    CON_HITRADIUS,          // 50
655
    CON_IFP,                // 51
656
    CON_COUNT,              // 52
657
    CON_IFACTOR,            // 53
658
    CON_MUSIC,              // 54
659
    CON_INCLUDE,            // 55
660
    CON_IFSTRENGTH,         // 56
661
    CON_DEFINESOUND,        // 57
662
    CON_GUTS,               // 58
663
    CON_IFSPAWNEDBY,        // 59
664
    CON_GAMESTARTUP,        // 60
665
    CON_WACKPLAYER,         // 61
666
    CON_IFGAPZL,            // 62
667
    CON_IFHITSPACE,         // 63
668
    CON_IFOUTSIDE,          // 64
669
    CON_IFMULTIPLAYER,      // 65
670
    CON_OPERATE,            // 66
671
    CON_IFINSPACE,          // 67
672
    CON_DEBUG,              // 68
673
    CON_ENDOFGAME,          // 69
674
    CON_IFBULLETNEAR,       // 70
675
    CON_IFRESPAWN,          // 71
676
    CON_IFFLOORDISTL,       // 72
677
    CON_IFCEILINGDISTL,     // 73
678
    CON_SPRITEPAL,          // 74
679
    CON_IFPINVENTORY,       // 75
680
    CON_BETANAME,           // 76
681
    CON_CACTOR,             // 77
682
    CON_IFPHEALTHL,         // 78
683
    CON_DEFINEQUOTE,        // 79
684
    CON_QUOTE,              // 80
685
    CON_IFINOUTERSPACE,     // 81
686
    CON_IFNOTMOVING,        // 82
687
    CON_RESPAWNHITAG,       // 83
688
    CON_TIP,                // 84
689
    CON_IFSPRITEPAL,        // 85
690
    CON_MONEY,              // 86
691
    CON_SOUNDONCE,          // 87
692
    CON_ADDKILLS,           // 88
693
    CON_STOPSOUND,          // 89
694
    CON_IFAWAYFROMWALL,     // 90
695
    CON_IFCANSEETARGET,     // 91
696
    CON_GLOBALSOUND,        // 92
697
    CON_LOTSOFGLASS,        // 93
698
    CON_IFGOTWEAPONCE,      // 94
699
    CON_GETLASTPAL,         // 95
700
    CON_PKICK,              // 96
701
    CON_MIKESND,            // 97
702
    CON_USERACTOR,          // 98
703
    CON_SIZEAT,             // 99
704
    CON_ADDSTRENGTH,        // 100
705
    CON_CSTATOR,            // 101
706
    CON_MAIL,               // 102
707
    CON_PAPER,              // 103
708
    CON_TOSSWEAPON,         // 104
709
    CON_SLEEPTIME,          // 105
710
    CON_NULLOP,             // 106
711
    CON_DEFINEVOLUMENAME,   // 107
712
    CON_DEFINESKILLNAME,    // 108
713
    CON_IFNOSOUNDS,         // 109
714
    CON_CLIPDIST,           // 110
715
    CON_IFANGDIFFL,         // 111
716
    CON_GAMEVAR,            // 112
717
    CON_IFVARL,             // 113
718
    CON_IFVARG,             // 114
719
    CON_SETVARVAR,          // 115
720
    CON_SETVAR,             // 116
721
    CON_ADDVARVAR,          // 117
722
    CON_ADDVAR,             // 118
723
    CON_IFVARVARL,          // 119
724
    CON_IFVARVARG,          // 120
725
    CON_ADDLOGVAR,          // 121
726
    CON_ADDLOG,             // 122
727
    CON_ONEVENT,            // 123
728
    CON_ENDEVENT,           // 124
729
    CON_IFVARE,             // 125
730
    CON_IFVARVARE,          // 126
731
    CON_SPGETLOTAG,         // 127
732
    CON_SPGETHITAG,         // 128
733
    CON_SECTGETLOTAG,       // 129
734
    CON_SECTGETHITAG,       // 130
735
    CON_IFSOUND,            // 131
736
    CON_GETTEXTUREFLOOR,    // 132
737
    CON_GETTEXTURECEILING,  // 133
738
    CON_INITTIMER,          // 134
739
    CON_STARTTRACK,         // 135
740
    CON_RANDVAR,            // 136
741
    CON_ENHANCED,           // 137
742
    CON_GETANGLETOTARGET,   // 138
743
    CON_GETACTORANGLE,      // 139
744
    CON_SETACTORANGLE,      // 140
745
    CON_MULVAR,             // 141
746
    CON_MULVARVAR,          // 142
747
    CON_DIVVAR,             // 143
748
    CON_DIVVARVAR,          // 144
749
    CON_MODVAR,             // 145
750
    CON_MODVARVAR,          // 146
751
    CON_ANDVAR,             // 147
752
    CON_ANDVARVAR,          // 148
753
    CON_ORVAR,              // 149
754
    CON_ORVARVAR,           // 150
755
    CON_GETPLAYERANGLE,     // 151
756
    CON_SETPLAYERANGLE,     // 152
757
    CON_LOCKPLAYER,         // 153
758
    CON_SETSECTOR,          // 154
759
    CON_GETSECTOR,          // 155
760
    CON_SETACTOR,           // 156
761
    CON_GETACTOR,           // 157
762
    CON_SETWALL,            // 158
763
    CON_GETWALL,            // 159
764
    CON_FINDNEARACTOR,      // 160
765
    CON_FINDNEARACTORVAR,   // 161
766
    CON_SETACTORVAR,        // 162
767
    CON_GETACTORVAR,        // 163
768
    CON_ESPAWN,             // 164
769
    CON_GETPLAYER,          // 165
770
    CON_SETPLAYER,          // 166
771
    CON_SQRT,               // 167
772
    CON_EVENTLOADACTOR,     // 168
773
    CON_ESPAWNVAR,          // 169
774
    CON_GETUSERDEF,         // 170
775
    CON_SETUSERDEF,         // 171
776
    CON_SUBVARVAR,          // 172
777
    CON_SUBVAR,             // 173
778
    CON_IFVARN,             // 174
779
    CON_IFVARVARN,          // 175
780
    CON_IFVARAND,           // 176
781
    CON_IFVARVARAND,        // 177
782
    CON_MYOS,               // 178
783
    CON_MYOSPAL,            // 179
784
    CON_DISPLAYRAND,        // 180
785
    CON_SIN,                // 181
786
    CON_XORVARVAR,          // 182
787
    CON_XORVAR,             // 183
788
    CON_RANDVARVAR,         // 184
789
    CON_MYOSX,              // 185
790
    CON_MYOSPALX,           // 186
791
    CON_GMAXAMMO,           // 187
792
    CON_SMAXAMMO,           // 188
793
    CON_STARTLEVEL,         // 189
794
    CON_ESHOOT,             // 190
795
    CON_QSPAWN,             // 191
796
    CON_ROTATESPRITE,       // 192
797
    CON_DEFINEPROJECTILE,   // 193
798
    CON_SPRITESHADOW,       // 194
799
    CON_COS,                // 195
800
    CON_ESHOOTVAR,          // 196
801
    CON_FINDNEARACTOR3D,    // 197
802
    CON_FINDNEARACTOR3DVAR, // 198
803
    CON_FLASH,              // 199
804
    CON_QSPAWNVAR,          // 200
805
    CON_EQSPAWN,            // 201
806
    CON_EQSPAWNVAR,         // 202
807
    CON_MINITEXT,           // 203
808
    CON_GAMETEXT,           // 204
809
    CON_DIGITALNUMBER,      // 205
810
    CON_ADDWEAPONVAR,       // 206
811
    CON_SETPROJECTILE,      // 207
812
    CON_ANGOFF,             // 208
813
    CON_UPDATESECTOR,       // 209
814
    CON_INSERTSPRITEQ,      // 210
815
    CON_ANGOFFVAR,          // 211
816
    CON_WHILEVARN,          // 212
817
    CON_SWITCH,             // 213
818
    CON_CASE,               // 214
819
    CON_DEFAULT,            // 215
820
    CON_ENDSWITCH,          // 216
821
    CON_SHOOTVAR,           // 217
822
    CON_SOUNDVAR,           // 218
823
    CON_FINDPLAYER,         // 219
824
    CON_FINDOTHERPLAYER,    // 220
825
    CON_ACTIVATEBYSECTOR,   // 221
826
    CON_OPERATESECTORS,     // 222
827
    CON_OPERATERESPAWNS,    // 223
828
    CON_OPERATEACTIVATORS,  // 224
829
    CON_OPERATEMASTERSWITCHES,  // 225
830
    CON_CHECKACTIVATORMOTION,   // 226
831
    CON_ZSHOOT,             // 227
832
    CON_DIST,               // 228
833
    CON_LDIST,              // 229
834
    CON_SHIFTVARL,          // 230
835
    CON_SHIFTVARR,          // 231
836
    CON_SPRITENVG,          // 232
837
    CON_GETANGLE,           // 233
838
    CON_WHILEVARVARN,       // 234
839
    CON_HITSCAN,            // 235
840
    CON_TIME,               // 236
841
    CON_GETPLAYERVAR,       // 237
842
    CON_SETPLAYERVAR,       // 238
843
    CON_MULSCALE,           // 239
844
    CON_SETASPECT,          // 240
251 terminx 845
    CON_EZSHOOT,            // 241
5 Plagman 846
    CON_SPRITENOSHADE,      // 242
847
    CON_MOVESPRITE,         // 243
848
    CON_CHECKAVAILWEAPON,   // 244
849
    CON_SOUNDONCEVAR,       // 245
850
    CON_UPDATESECTORZ,      // 246
851
    CON_STOPALLSOUNDS,      // 247
852
    CON_SSP,                // 248
853
    CON_STOPSOUNDVAR,       // 249
854
    CON_DISPLAYRANDVAR,     // 250
855
    CON_DISPLAYRANDVARVAR,  // 251
856
    CON_CHECKAVAILINVEN,    // 252
857
    CON_GLOBALSOUNDVAR,     // 253
858
    CON_GUNIQHUDID,         // 254
859
    CON_GETPROJECTILE,      // 255
860
    CON_GETTHISPROJECTILE,  // 256
861
    CON_SETTHISPROJECTILE,  // 257
862
    CON_DEFINECHEAT,        // 258
863
    CON_CHEATKEYS,          // 259
864
    CON_USERQUOTE,          // 260
865
    CON_PRECACHE,           // 261
121 terminx 866
    CON_DEFINEGAMEFUNCNAME, // 262
5 Plagman 867
    CON_REDEFINEQUOTE,      // 263
290 terminx 868
    CON_QSPRINTF,           // 264
5 Plagman 869
    CON_GETPNAME,           // 265
870
    CON_QSTRCAT,            // 266
871
    CON_QSTRCPY,            // 267
872
    CON_SETSPRITE,          // 268
873
    CON_ROTATEPOINT,        // 269
874
    CON_DRAGPOINT,          // 270
875
    CON_GETZRANGE,          // 271
876
    CON_CHANGESPRITESTAT,   // 272
877
    CON_GETCEILZOFSLOPE,    // 273
878
    CON_GETFLORZOFSLOPE,    // 274
879
    CON_NEARTAG,            // 275
880
    CON_DEFINEGAMETYPE,     // 276
881
    CON_CHANGESPRITESECT,   // 277
882
    CON_SPRITEFLAGS,        // 278
883
    CON_SAVEGAMEVAR,        // 279
884
    CON_READGAMEVAR,        // 280
885
    CON_FINDNEARSPRITE,     // 281
886
    CON_FINDNEARSPRITEVAR,  // 282
887
    CON_FINDNEARSPRITE3D,   // 283
888
    CON_FINDNEARSPRITE3DVAR,// 284
889
    CON_DYNAMICREMAP,       // 285
890
    CON_SETINPUT,           // 286
891
    CON_GETINPUT,           // 287
955 hnt_ts 892
    CON_SAVE,               // 288
97 terminx 893
    CON_CANSEE,             // 289
106 terminx 894
    CON_CANSEESPR,          // 290
169 terminx 895
    CON_FINDNEARACTORZ,     // 291
896
    CON_FINDNEARACTORZVAR,  // 292
897
    CON_FINDNEARSPRITEZ,    // 293
898
    CON_FINDNEARSPRITEZVAR, // 294
955 hnt_ts 899
    CON_ZSHOOTVAR,          // 295
900
    CON_EZSHOOTVAR,         // 296
901
    CON_GETCURRADDRESS,     // 297
902
    CON_JUMP,               // 298
903
    CON_QSTRLEN,            // 299
329 terminx 904
    CON_GETINCANGLE,        // 300
444 terminx 905
    CON_QUAKE,              // 301
484 terminx 906
    CON_SHOWVIEW,           // 302
558 terminx 907
    CON_HEADSPRITESTAT,     // 303
908
    CON_PREVSPRITESTAT,     // 304
909
    CON_NEXTSPRITESTAT,     // 305
910
    CON_HEADSPRITESECT,     // 306
911
    CON_PREVSPRITESECT,     // 307
912
    CON_NEXTSPRITESECT,     // 308
587 terminx 913
    CON_GETKEYNAME,         // 309
914
    CON_QSUBSTR,            // 310
915
    CON_GAMETEXTZ,          // 311
916
    CON_DIGITALNUMBERZ,     // 312
917
    CON_SPRITENOPAL,        // 313
617 terminx 918
    CON_HITRADIUSVAR,       // 314
642 terminx 919
    CON_ROTATESPRITE16,     // 315
676 terminx 920
    CON_GAMEARRAY,          // 316
921
    CON_SETARRAY,           // 317
693 terminx 922
    CON_RESIZEARRAY,        // 318
923
    CON_WRITEARRAYTOFILE,   // 319
924
    CON_READARRAYFROMFILE,  // 320
955 hnt_ts 925
    CON_STARTTRACKVAR,      // 321
926
    CON_QGETSYSSTR,         // 322
927
    CON_GETTICKS,           // 323
856 terminx 928
    CON_GETTSPR,            // 324
929
    CON_SETTSPR,            // 325
859 terminx 930
    CON_SAVEMAPSTATE,       // 326
931
    CON_LOADMAPSTATE,       // 327
932
    CON_CLEARMAPSTATE,      // 328
874 terminx 933
    CON_SCRIPTSIZE,         // 329
987 terminx 934
    CON_SETGAMENAME,        // 330
903 hnt_ts 935
    CON_CMENU,              // 331
958 hnt_ts 936
    CON_GETTIMEDATE,        // 332 
964 hnt_ts 937
    CON_ACTIVATECHEAT,      // 333
980 hnt_ts 938
    CON_SETGAMEPALETTE,     // 334
984 terminx 939
    CON_SETDEFNAME,         // 335
986 terminx 940
    CON_SETCFGNAME,         // 336
1060 hnt_ts 941
    CON_IFVAROR,            // 337
942
    CON_IFVARVAROR,         // 338
943
    CON_IFVARXOR,           // 339
944
    CON_IFVARVARXOR,        // 340
945
    CON_IFVAREITHER,        // 341
946
    CON_IFVARVAREITHER,     // 342
1068 terminx 947
    CON_GETARRAYSIZE,       // 343
948
    CON_SAVENN,             // 344
1228 terminx 949
    CON_COPY,               // 345
1436 terminx 950
    CON_INV,                // 346
1457 terminx 951
    CON_SECTOROFWALL,       // 347
952
    CON_QSTRNCAT,           // 348
1461 terminx 953
    CON_IFACTORSOUND,       // 349
954
    CON_STOPACTORSOUND,     // 350
1673 terminx 955
    CON_IFCLIENT,           // 351
956
    CON_IFSERVER,           // 352
1708 helixhorne 957
    CON_SECTSETINTERPOLATION, // 353
958
    CON_SECTCLEARINTERPOLATION, // 354
1909 terminx 959
    CON_CLIPMOVE,           // 355
960
    CON_LINEINTERSECT,      // 356
961
    CON_RAYINTERSECT,       // 357
962
    CON_CALCHYPOTENUSE,     // 358
963
    CON_CLIPMOVENOSLIDE,    // 359
964
    CON_INCLUDEDEFAULT,     // 360
2419 hendricks2 965
    CON_SETACTORSOUNDPITCH, // 361
966
    CON_ECHO,               // 362
2573 helixhorne 967
    CON_SHOWVIEWUNBIASED,   // 363
3610 hendricks2 968
    CON_ROTATESPRITEA,      // 364
3803 terminx 969
    CON_SHADETO,            // 365
970
    CON_ENDOFLEVEL,         // 366
971
    CON_IFPLAYERSL,         // 367
972
    CON_ACTIVATE,           // 368
3833 hendricks2 973
    CON_QSTRDIM,            // 369
974
    CON_SCREENTEXT,         // 370
3834 hendricks2 975
    CON_DYNAMICSOUNDREMAP,  // 371
3912 helixhorne 976
    CON_SCREENSOUND,        // 372
4928 hendricks2 977
    CON_GETMUSICPOSITION,   // 373
978
    CON_SETMUSICPOSITION,   // 374
1025 terminx 979
    CON_END
5 Plagman 980
};
3945 helixhorne 981
// KEEPINSYNC with the keyword list in lunatic/con_lang.lua
1188 terminx 982
#endif
4766 hendricks2 983
 
984
#ifdef __cplusplus
985
}
986
#endif
987
 
4747 terminx 988
#endif // gamedef_h_