Subversion Repositories eduke32

Rev

Rev 3007 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3007 Rev 3008
Line 345... Line 345...
345
    return clamp((totalclk-ototalclk)*(65536/TICSPERFRAME), 0, 65536);
345
    return clamp((totalclk-ototalclk)*(65536/TICSPERFRAME), 0, 65536);
346
}
346
}
347
347
348
// sector effector lotags
348
// sector effector lotags
349
enum {
349
enum {
-
 
350
    SE_0_ROTATING_SECTOR = 0,
-
 
351
    SE_1_PIVOT = 1,
-
 
352
    SE_2_EARTHQUAKE = 2,
-
 
353
    SE_3_RANDOM_LIGHTS_AFTER_SHOT_OUT = 3,
-
 
354
    SE_4_RANDOM_LIGHTS = 4,
-
 
355
    SE_5 = 5,
-
 
356
    SE_6_SUBWAY = 6,
-
 
357
    // ^^ potentially incomplete substitution in code
-
 
358
    // vv almost surely complete substitution
-
 
359
    SE_7_TELEPORT = 7,
-
 
360
    SE_8_UP_OPEN_DOOR_LIGHTS = 8,
-
 
361
    SE_9_DOWN_OPEN_DOOR_LIGHTS = 9,
-
 
362
    SE_10_DOOR_AUTO_CLOSE = 10,
-
 
363
    SE_11_SWINGING_DOOR = 11,
-
 
364
    SE_12_LIGHT_SWITCH = 12,
-
 
365
    SE_13_EXPLOSIVE = 13,
-
 
366
    SE_14_SUBWAY_CAR = 14,
-
 
367
    SE_15_SLIDING_DOOR = 15,
350
    SE_16_REACTOR = 16,
368
    SE_16_REACTOR = 16,
351
    SE_17_WARP_ELEVATOR = 17,
369
    SE_17_WARP_ELEVATOR = 17,
-
 
370
    SE_18_INCREMENTAL_SECTOR_RISE_FALL = 18,
-
 
371
    SE_19_EXPLOSION_LOWERS_CEILING = 19,
-
 
372
    SE_20_STRETCH_BRIDGE = 20,
352
    SE_21_DROP_FLOOR = 21,
373
    SE_21_DROP_FLOOR = 21,
-
 
374
    SE_22_TEETH_DOOR = 22,
-
 
375
    SE_23_ONE_WAY_TELEPORT = 23,
353
    SE_24_CONVEYOR = 24,
376
    SE_24_CONVEYOR = 24,
354
    SE_25_PISTON = 25,
377
    SE_25_PISTON = 25,
355
    SE_26 = 26,
378
    SE_26 = 26,
356
    SE_27_DEMO_CAM = 27,
379
    SE_27_DEMO_CAM = 27,
357
    SE_28_LIGHTNING = 28,
380
    SE_28_LIGHTNING = 28,
358
    SE_29_WAVES = 29,
381
    SE_29_WAVES = 29,
359
    SE_30_TWO_WAY_TRAIN = 30,
382
    SE_30_TWO_WAY_TRAIN = 30,
360
    SE_31_FLOOR_RISE_FALL = 31,
383
    SE_31_FLOOR_RISE_FALL = 31,
361
    SE_32_CEILING_RISE_FALL = 32,
384
    SE_32_CEILING_RISE_FALL = 32,
362
    SE_33_QUAKE_DEBRIS = 33,
385
    SE_33_QUAKE_DEBRIS = 33,
-
 
386
    SE_34 = 34,  // XXX
-
 
387
    SE_35 = 35,  // XXX
363
    SE_36_PROJ_SHOOTER = 36,
388
    SE_36_PROJ_SHOOTER = 36,
364
};
389
};
365
390
366
// sector lotags
391
// sector lotags
367
enum {
392
enum {
-
 
393
    // left: ST 1 and 2
-
 
394
    ST_9_SLIDING_ST_DOOR = 9,
368
    ST_15_WARP_ELEVATOR = 15,
395
    ST_15_WARP_ELEVATOR = 15,
-
 
396
    ST_16_PLATFORM_DOWN = 16,
-
 
397
    ST_17_PLATFORM_UP = 17,
-
 
398
    ST_18_ELEVATOR_DOWN = 18,
-
 
399
    ST_19_ELEVATOR_UP = 19,
369
    ST_20_CEILING_DOOR = 20,
400
    ST_20_CEILING_DOOR = 20,
370
    ST_21_FLOOR_DOOR = 21,
401
    ST_21_FLOOR_DOOR = 21,
371
    ST_22_SPLITTING_DOOR = 22,
402
    ST_22_SPLITTING_DOOR = 22,
-
 
403
    ST_23_SWINGING_DOOR = 23,
-
 
404
    ST_25_SLIDING_DOOR = 25,
372
    ST_26_SPLITTING_ST_DOOR = 26,
405
    ST_26_SPLITTING_ST_DOOR = 26,
-
 
406
    ST_27_STRETCH_BRIDGE = 27,
373
    ST_28_DROP_FLOOR = 28,
407
    ST_28_DROP_FLOOR = 28,
374
    ST_29_TEETH_DOOR = 29,
408
    ST_29_TEETH_DOOR = 29,
375
    ST_30_ROTATE_RISE_BRIDGE = 30,
409
    ST_30_ROTATE_RISE_BRIDGE = 30,
376
    ST_31_TWO_WAY_TRAIN = 31,
410
    ST_31_TWO_WAY_TRAIN = 31,
-
 
411
    // left: ST 32767, 65534, 65535
377
};
412
};
378
413
379
// Cheats
414
// Cheats
380
// KEEPINSYNC game.c: char CheatStrings[][]
415
// KEEPINSYNC game.c: char CheatStrings[][]
381
enum cheatindex_t
416
enum cheatindex_t