1 | <?lua |
---|
2 | include("overlay/hudtemplates3.oxo") |
---|
3 | include("overlay/stats.oxo") |
---|
4 | include("levels/templates/spaceship_assff.oxt") |
---|
5 | include("levels/templates/spaceship_H2.oxt") |
---|
6 | include("levels/templates/spaceship_pirate.oxt") |
---|
7 | ?> |
---|
8 | |
---|
9 | <Level |
---|
10 | name = "Presentation09" |
---|
11 | description = "presentation level for Orxonox Convention X" |
---|
12 | gametype = TeamDeathmatch |
---|
13 | > |
---|
14 | <Scene |
---|
15 | ambientlight = "0.5, 0.5, 0.5" |
---|
16 | skybox = "Orxonox/skypanoramagen2" |
---|
17 | > |
---|
18 | <Light type=directional position="0,0,0" direction="0.683, 0.289, 0.670" diffuse="1.0, 1.0, 1.0, 1.0" specular="1.0, 1.0, 1.0, 1.0" /> |
---|
19 | |
---|
20 | <SpawnPoint position="-3800, 2500, 1500" direction="-0.683, -0.289, -0.670" spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
21 | |
---|
22 | <SpaceShip position="-3900,3000,1000"> |
---|
23 | <templates> |
---|
24 | <Template link=spaceshipHtwo/> |
---|
25 | </templates> |
---|
26 | <controller> |
---|
27 | <WaypointPatrolController alertnessradius=100 team=0> |
---|
28 | <waypoints> |
---|
29 | <StaticEntity position="-3850,2800,1450" /> |
---|
30 | </waypoints> |
---|
31 | </WaypointPatrolController> |
---|
32 | </controller> |
---|
33 | </SpaceShip> |
---|
34 | |
---|
35 | <SpaceShip position="-4100,2600,1600"> |
---|
36 | <templates> |
---|
37 | <Template link=spaceshipHtwo/> |
---|
38 | </templates> |
---|
39 | <controller> |
---|
40 | <WaypointPatrolController alertnessradius=100 team=0> |
---|
41 | <waypoints> |
---|
42 | <StaticEntity position="-3850,2800,1450" /> |
---|
43 | </waypoints> |
---|
44 | </WaypointPatrolController> |
---|
45 | </controller> |
---|
46 | </SpaceShip> |
---|
47 | |
---|
48 | <SpaceShip position="-4000,2500,1500"> |
---|
49 | <templates> |
---|
50 | <Template link=spaceshipHtwo/> |
---|
51 | </templates> |
---|
52 | <controller> |
---|
53 | <WaypointPatrolController alertnessradius=100 team=0> |
---|
54 | <waypoints> |
---|
55 | <StaticEntity position="-3850,2800,1450" /> |
---|
56 | </waypoints> |
---|
57 | </WaypointPatrolController> |
---|
58 | </controller> |
---|
59 | </SpaceShip> |
---|
60 | |
---|
61 | <SpaceShip position="-4100,2700,1500"> |
---|
62 | <templates> |
---|
63 | <Template link=spaceshipHtwo/> |
---|
64 | </templates> |
---|
65 | <controller> |
---|
66 | <WaypointPatrolController alertnessradius=100 team=0 /> |
---|
67 | </controller> |
---|
68 | </SpaceShip> |
---|
69 | |
---|
70 | <SpaceShip position="-4150,2750,1550"> |
---|
71 | <templates> |
---|
72 | <Template link=spaceshipHtwo/> |
---|
73 | </templates> |
---|
74 | <controller> |
---|
75 | <WaypointPatrolController alertnessradius=100 team=0 /> |
---|
76 | </controller> |
---|
77 | </SpaceShip> |
---|
78 | |
---|
79 | <Billboard position="-2500, 2400, 1500" material="Examples/Flare" /> |
---|
80 | <EventDispatcher> |
---|
81 | <targets> |
---|
82 | <EventTarget name=pirates /> |
---|
83 | </targets> |
---|
84 | <events> |
---|
85 | <activity> |
---|
86 | <DistanceTrigger position="-2500, 2400, 1500" distance=250 target="SpaceShip" stayactive=true /> |
---|
87 | </activity> |
---|
88 | </events> |
---|
89 | </EventDispatcher> |
---|
90 | |
---|
91 | <?lua |
---|
92 | for i = 1, 10, 1 |
---|
93 | do |
---|
94 | ?> |
---|
95 | <SpaceShip position="<?lua print(5000 + math.random() * 4000 - 2000) ?>,<?lua print(0 + math.random() * 2000 - 1000) ?>,<?lua print(math.random() * 2000 - 1000) ?>"> |
---|
96 | <templates> |
---|
97 | <Template link=spaceshippirate /> |
---|
98 | </templates> |
---|
99 | <controller> |
---|
100 | <WaypointPatrolController name=pirates alertnessradius=1000 team=1 active=false> |
---|
101 | <waypoints> |
---|
102 | <StaticEntity position="3100, 2000, 1500" /> |
---|
103 | </waypoints> |
---|
104 | </WaypointPatrolController> |
---|
105 | </controller> |
---|
106 | </SpaceShip> |
---|
107 | <?lua |
---|
108 | end |
---|
109 | ?> |
---|
110 | |
---|
111 | <?lua |
---|
112 | for i = 1, 12, 1 |
---|
113 | do |
---|
114 | ?> |
---|
115 | <SpaceShip position="<?lua print(2800 + math.random() * 2000 - 1000) ?>,<?lua print(2500+ math.random() * 1000 - 500) ?>,<?lua print(2500 + math.random() * 1000 - 500) ?>" > |
---|
116 | <templates> |
---|
117 | <Template link=spaceshipassff /> |
---|
118 | </templates> |
---|
119 | <controller> |
---|
120 | <WaypointPatrolController alertnessradius=1000 team=0> |
---|
121 | <waypoints> |
---|
122 | <StaticEntity position="<?lua print(2800 + math.random() * 1000 - 500) ?>,<?lua print(2500 + math.random() * 1000 - 500) ?>,<?lua print(1500 + math.random() * 1000 - 500) ?>" /> |
---|
123 | </waypoints> |
---|
124 | </WaypointPatrolController> |
---|
125 | </controller> |
---|
126 | </SpaceShip> |
---|
127 | <?lua |
---|
128 | end |
---|
129 | ?> |
---|
130 | |
---|
131 | <Billboard position="2300, 4400, 2500" material="Examples/Flare" /> |
---|
132 | <EventDispatcher> |
---|
133 | <targets> |
---|
134 | <EventTarget name=attacker /> |
---|
135 | </targets> |
---|
136 | <events> |
---|
137 | <activity> |
---|
138 | <DistanceTrigger position="2300, 4400, 2500" distance=50 target="SpaceShip" stayactive=true /> |
---|
139 | </activity> |
---|
140 | </events> |
---|
141 | </EventDispatcher> |
---|
142 | |
---|
143 | <?lua |
---|
144 | for i = 1, 12, 1 |
---|
145 | do |
---|
146 | ?> |
---|
147 | <SpaceShip position="<?lua print(2500 + math.random() * 500 - 250) ?>,<?lua print(4800 + math.random() * 500 - 250) ?>,<?lua print(2500 + math.random() * 500 - 250) ?>" > |
---|
148 | <templates> |
---|
149 | <Template link=spaceshipassff /> |
---|
150 | </templates> |
---|
151 | <controller> |
---|
152 | <WaypointPatrolController name=attacker alertnessradius=1000 team=0 active=false> |
---|
153 | <waypoints> |
---|
154 | <StaticEntity position="<?lua print(2800 + math.random() * 500 - 250) ?>,<?lua print(2500 + math.random() * 500 - 250) ?>,<?lua print(1500 + math.random() * 500 - 250) ?>" /> |
---|
155 | <StaticEntity position="<?lua print(5000 + math.random() * 500 - 250) ?>,<?lua print(0 + math.random() * 500 - 250) ?>,<?lua print(0 + math.random() * 500 - 250) ?>" /> |
---|
156 | <StaticEntity position="<?lua print(7500 + math.random() * 500 - 250) ?>,<?lua print(-2500 + math.random() * 500 - 250) ?>,<?lua print(-1500 + math.random() * 500 - 250) ?>" /> |
---|
157 | </waypoints> |
---|
158 | </WaypointPatrolController> |
---|
159 | </controller> |
---|
160 | </SpaceShip> |
---|
161 | <?lua |
---|
162 | end |
---|
163 | ?> |
---|
164 | |
---|
165 | <StaticEntity position="2800, 2500, 2500"> |
---|
166 | <attached> |
---|
167 | <CheckPoint /> |
---|
168 | <Model position="400, 0, 0" scale="40" mesh="DuBall2.mesh"/> |
---|
169 | <Model position="-400, 0, 0" scale="40" mesh="DuBall1.mesh"/> |
---|
170 | </attached> |
---|
171 | </StaticEntity> |
---|
172 | <!-- |
---|
173 | <Destroyer position="6500, -2000, -1000" collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=500> |
---|
174 | <attached> |
---|
175 | <CheckPoint /> |
---|
176 | <Model position="0,0,0" scale="5" mesh="Carrier.mesh"/> |
---|
177 | <Backlight |
---|
178 | mainstate=activity |
---|
179 | active=false |
---|
180 | scale=0.4 |
---|
181 | name=bltest |
---|
182 | position=" 7.6, 0, 6" |
---|
183 | colour="0.2, 0.65, 1.0, 1.0" |
---|
184 | width=15 |
---|
185 | length=1500 |
---|
186 | lifetime=2 |
---|
187 | elements=50 |
---|
188 | trailmaterial="Trail/backlighttrail" |
---|
189 | turnontime=1 |
---|
190 | turnofftime=1 |
---|
191 | material="Flares/ThrusterFlare1" |
---|
192 | /> |
---|
193 | </attached> |
---|
194 | <collisionShapes> |
---|
195 | <BoxCollisionShape position="70,0,-25" halfExtents="150, 50, 25" /> |
---|
196 | <BoxCollisionShape position="95,75,-16" halfExtents="70, 10, 12" /> |
---|
197 | <BoxCollisionShape position="95,-75,-16" halfExtents="70, 10, 12" /> |
---|
198 | <BoxCollisionShape position="77,47,30" halfExtents="110, 2, 30" /> |
---|
199 | <BoxCollisionShape position="77,-47,30" halfExtents="110, 2, 30" /> |
---|
200 | <BoxCollisionShape position="77,0,50" halfExtents="110, 45, 6" /> |
---|
201 | <BoxCollisionShape position="167,0,70" halfExtents="17, 20, 20" /> |
---|
202 | </collisionShapes> |
---|
203 | </Destroyer> |
---|
204 | --> |
---|
205 | <Destroyer |
---|
206 | position = "6500,-2000,-1000" |
---|
207 | collisionType = dynamic |
---|
208 | mass = 100000 |
---|
209 | angularDamping = 0.9999999 |
---|
210 | health = 1000 |
---|
211 | maxhealth = 1000 |
---|
212 | initialhealth = 1000 |
---|
213 | > |
---|
214 | <controller> |
---|
215 | <WaypointPatrolController team=1 /> |
---|
216 | </controller> |
---|
217 | <attached> |
---|
218 | <Model mesh="Carrier.mesh" scale="5" /> |
---|
219 | <Backlight |
---|
220 | mainstate=activity |
---|
221 | active=false |
---|
222 | scale=0.4 |
---|
223 | name=bltest |
---|
224 | position=" 7.6, 0, 6" |
---|
225 | colour="0.2, 0.65, 1.0, 1.0" |
---|
226 | width=15 |
---|
227 | length=1500 |
---|
228 | lifetime=2 |
---|
229 | elements=50 |
---|
230 | trailmaterial="Trail/backlighttrail" |
---|
231 | turnontime=1 |
---|
232 | turnofftime=1 |
---|
233 | material="Flares/ThrusterFlare1" |
---|
234 | /> |
---|
235 | <?lua for i=0,8,1 do ?> |
---|
236 | <BlinkingBillboard |
---|
237 | position="<?lua print(200-270/8*i)?> ,15,2" |
---|
238 | material="Examples/Flare" |
---|
239 | colour="1.0, 0.5, 0.3" |
---|
240 | phase=<?lua print(-360/8*i)?> |
---|
241 | amplitude=0.1 |
---|
242 | frequency=0.5 |
---|
243 | quadratic=1 |
---|
244 | /> |
---|
245 | |
---|
246 | <BlinkingBillboard |
---|
247 | position="<?lua print(200-270/8*i)?>,-15,2" |
---|
248 | material="Examples/Flare" |
---|
249 | colour="1.0, 0.5, 0.3" |
---|
250 | phase=<?lua print(-360/8*i)?> |
---|
251 | amplitude=0.1 |
---|
252 | frequency=0.5 |
---|
253 | quadratic=1 |
---|
254 | /> |
---|
255 | <?lua end ?> |
---|
256 | |
---|
257 | <Backlight |
---|
258 | scale=1 |
---|
259 | position=" 169, 75, -15" |
---|
260 | colour="1, 0.85, 0.5, 0.5" |
---|
261 | width=40 |
---|
262 | length=1000 |
---|
263 | lifetime=5 |
---|
264 | elements=15 |
---|
265 | trailmaterial="Trail/backlighttrail" |
---|
266 | material="Examples/Flare" |
---|
267 | /> |
---|
268 | <Backlight |
---|
269 | scale=1 |
---|
270 | position=" 169, -75, -15" |
---|
271 | colour="1, 0.85, 0.5, 0.5" |
---|
272 | width=40 |
---|
273 | length=1000 |
---|
274 | lifetime=5 |
---|
275 | elements=15 |
---|
276 | trailmaterial="Trail/backlighttrail" |
---|
277 | material="Examples/Flare" /> |
---|
278 | </attached> |
---|
279 | <collisionShapes> |
---|
280 | <BoxCollisionShape position="70,0,-25" halfExtents="150, 50, 25" /> |
---|
281 | <BoxCollisionShape position="95,75,-16" halfExtents="70, 10, 12" /> |
---|
282 | <BoxCollisionShape position="95,-75,-16" halfExtents="70, 10, 12" /> |
---|
283 | <BoxCollisionShape position="77,47,30" halfExtents="110, 2, 30" /> |
---|
284 | <BoxCollisionShape position="77,-47,30" halfExtents="110, 2, 30" /> |
---|
285 | <BoxCollisionShape position="77,0,50" halfExtents="110, 45, 6" /> |
---|
286 | <BoxCollisionShape position="167,0,70" halfExtents="17, 20, 20" /> |
---|
287 | </collisionShapes> |
---|
288 | </Destroyer> |
---|
289 | |
---|
290 | <?lua |
---|
291 | for i = 1, 10, 1 |
---|
292 | do |
---|
293 | ?> |
---|
294 | <SpaceShip position="<?lua print(6200 + math.random() * 2000 - 1000) ?>,<?lua print(-1500 + math.random() * 1000 - 500) ?>,<?lua print(-700 + math.random() * 1000 - 500) ?>" > |
---|
295 | <templates> |
---|
296 | <Template link=spaceshippirate /> |
---|
297 | </templates> |
---|
298 | <controller> |
---|
299 | <WaypointPatrolController alertnessradius=1000 team=1> |
---|
300 | <waypoints> |
---|
301 | <StaticEntity position="<?lua print(6000 + math.random() * 1000 - 500) ?>,<?lua print(-2000 + math.random() * 1000 - 500) ?>,<?lua print(-1000 + math.random() * 1000 - 500) ?>" /> |
---|
302 | </waypoints> |
---|
303 | </WaypointPatrolController> |
---|
304 | </controller> |
---|
305 | </SpaceShip> |
---|
306 | <?lua |
---|
307 | end |
---|
308 | ?> |
---|
309 | |
---|
310 | <?lua |
---|
311 | for i = 1, 200, 1 |
---|
312 | do |
---|
313 | x = math.random() * 100 + (i-70) * 100 |
---|
314 | y = math.random() * 3000 - 1500 |
---|
315 | z = math.random() * 3000 - 1500 + (i-100) * 10 |
---|
316 | s = math.random() * 60 + 30 |
---|
317 | ?> |
---|
318 | |
---|
319 | <MovableEntity position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 - 15) ?>"> |
---|
320 | <attached> |
---|
321 | <Model position="0,0,0" scale=<?lua print(s) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" /> |
---|
322 | </attached> |
---|
323 | </MovableEntity> |
---|
324 | <?lua |
---|
325 | end |
---|
326 | ?> |
---|
327 | |
---|
328 | <?lua |
---|
329 | elements = {"BodyDebris1.mesh", "CockpitDebris.mesh", "LightningGun.mesh", "WingDebris1.mesh", "WingDebris2.mesh", "satellitedish.mesh", "Thruster.mesh"} |
---|
330 | sizes = {4, 4, 4, 4, 4, 10, 20} |
---|
331 | elements.length = function() |
---|
332 | return table.getn(elements) |
---|
333 | end |
---|
334 | for i = 1, 150, 1 |
---|
335 | do |
---|
336 | x = math.random() * 750 - 4500 |
---|
337 | y = math.random() * 1000 + 2000 |
---|
338 | z = math.random() * 500 + 1000 |
---|
339 | e = math.floor(math.random()*elements.length()+1) |
---|
340 | ?> |
---|
341 | |
---|
342 | <MovableEntity position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 - 15) ?>"> |
---|
343 | <attached> |
---|
344 | <Model position="0,0,0" scale="<?lua print(sizes[e]) ?>" mesh="<?lua print( elements[e]) ?>" /> |
---|
345 | </attached> |
---|
346 | </MovableEntity> |
---|
347 | <?lua |
---|
348 | end |
---|
349 | ?> |
---|
350 | |
---|
351 | </Scene> |
---|
352 | </Level> |
---|