-
Notifications
You must be signed in to change notification settings - Fork 10
/
boom.wl
130 lines (108 loc) · 2.24 KB
/
boom.wl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
/*
* boom.wl: Test of (some) Boom generalised linedef types
* part of WadC
*
* Copyright © 2016 Jonathan Dowland <[email protected]>
*
* Distributed under the terms of the GNU GPL Version 2
* See file LICENSE.txt
*
* Untested: locked doors, stairs and crushers, and various flag combinations
*/
#"standard.h"
#"boom.h"
#"sectors.h"
main {
pushpop (movestep(64,64) thing)
mid("SW1BRIK")
-- generalised lifts
linetype(genlift(
trigger_sr,
0, -- target
lift_delay_1s,
0, -- no monster
speed_turbo),
$genlift)
straight(64)
-- generalised floor
linetype(genfloor(
trigger_sr,
speed_turbo,
0, -- model XXX ?
0, -- down/up
1, -- target
2, -- change txtonly
0, -- crush no
), $genfloor)
straight(64)
-- generalised ceiling
linetype(genceiling(
trigger_sr,
0, -- speed (slow)
0, -- model ?
1, -- direction up
0, -- target
2, -- change txtonly
0, -- crush no
), $genceiling)
straight(64)
-- generalised door
linetype(gendoor(
trigger_sr,
0, -- speed
0, -- kind
0, -- monster
0, -- delay
), $gendoor)
straight(64)
linetype(0,0) mid("BRICK7")
straight(128)
right(64) top("BIGDOOR1") straight(128) top("BRICK7") straight(64)
linetype(enable_wind, $wind1) right(512) linetype(0,0)
linetype(enable_friction, $friction1) right(256) linetype(0,0)
right(128) rightsector(0, 160, 160)
sectortype(0,$genlift)
movestep(-64, 128)
ibox(128, 160, 160, 64, 64)
popsector
sectortype(0, $genfloor)
move(128)
ibox(128, 160, 160, 64, 64)
popsector
sectortype(0, $genceiling)
ceil("LAVA1")
move(128)
ibox(0, 64, 160, 64, 64)
sectortype(0, $gendoor)
ceil("FLAT23")
movestep(192,-64)
box(0, 0, 160, 16, 128)
ceil("RROCK10")
sectortype(0,0)
movestep(16, -64)
box(0, 160, 160, 256,512)
/*
* generalised floors
*/
movestep(112,64)
sectortype(gen_sector(
light_flicker,
damage_10pers,
0, 0, 0),
0)
ibox(24, 160, 160, 64, 64)
movestep(0,128) popsector
-- slippy sector
sectortype(gen_sector(
light_oscillate, 0,
0, 1 /* friction */, 0),
$friction1)
ibox(16, 160, 255, 64, 64)
movestep(-64,128) popsector
-- windy sector
sectortype(gen_sector(
0, 0,
0, 0, 1 /* wind */),
$wind1)
ibox(-16, 160, 160, 128, 128)
}