1 | <LevelInfo |
---|
2 | name = "Presentation X 1st" |
---|
3 | description = "1st Presentation level for Orxonox Convention X" |
---|
4 | tags = "presentation" |
---|
5 | screenshot = "presentationx1st.png" |
---|
6 | /> |
---|
7 | |
---|
8 | <?lua |
---|
9 | include("HUDTemplates3.oxo") |
---|
10 | include("stats.oxo") |
---|
11 | include("templates/spaceshipAssff.oxt") |
---|
12 | include("templates/spaceshipH2.oxt") |
---|
13 | include("templates/spaceshipPirate.oxt") |
---|
14 | include("templates/pickupRepresentationTemplates.oxt") |
---|
15 | include("templates/lodInformation.oxt") |
---|
16 | ?> |
---|
17 | |
---|
18 | <Level |
---|
19 | gametype = "TeamDeathmatch" |
---|
20 | hasPhysics = true |
---|
21 | > |
---|
22 | <templates> |
---|
23 | <Template link=lodtemplate_default /> |
---|
24 | </templates> |
---|
25 | <?lua include("includes/notifications.oxi") ?> |
---|
26 | |
---|
27 | <Scene |
---|
28 | ambientlight = "0.6, 0.4, 0.4" |
---|
29 | skybox = "Orxonox/skyBoxSomeNebula" |
---|
30 | > |
---|
31 | |
---|
32 | <?lua |
---|
33 | include("includes/pickups.oxi") |
---|
34 | ?> |
---|
35 | |
---|
36 | <Light type=directional position="0,0,0" direction="0.683, 0.289, 0.670" diffuse="0.8, 0.5, 0.5, 1.0" specular="0.8, 0.4, 0.4, 1.0" /> |
---|
37 | |
---|
38 | <SpawnPoint position="-3800, 2500, 1500" direction="-0.683, -0.289, -0.670" spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
39 | |
---|
40 | <SpaceShip position="-3900,3000,1000"> |
---|
41 | <templates> |
---|
42 | <Template link=spaceshipHtwo/> |
---|
43 | </templates> |
---|
44 | <controller> |
---|
45 | <WaypointPatrolController alertnessradius=100 team=0> |
---|
46 | <waypoints> |
---|
47 | <StaticEntity position="-3850,2800,1450" /> |
---|
48 | </waypoints> |
---|
49 | </WaypointPatrolController> |
---|
50 | </controller> |
---|
51 | </SpaceShip> |
---|
52 | |
---|
53 | <SpaceShip position="-4100,2600,1600"> |
---|
54 | <templates> |
---|
55 | <Template link=spaceshipHtwo/> |
---|
56 | </templates> |
---|
57 | <controller> |
---|
58 | <WaypointPatrolController alertnessradius=100 team=0> |
---|
59 | <waypoints> |
---|
60 | <StaticEntity position="-3850,2800,1450" /> |
---|
61 | </waypoints> |
---|
62 | </WaypointPatrolController> |
---|
63 | </controller> |
---|
64 | </SpaceShip> |
---|
65 | |
---|
66 | <SpaceShip position="-4000,2500,1500"> |
---|
67 | <templates> |
---|
68 | <Template link=spaceshipHtwo/> |
---|
69 | </templates> |
---|
70 | <controller> |
---|
71 | <WaypointPatrolController alertnessradius=100 team=0> |
---|
72 | <waypoints> |
---|
73 | <StaticEntity position="-3850,2800,1450" /> |
---|
74 | </waypoints> |
---|
75 | </WaypointPatrolController> |
---|
76 | </controller> |
---|
77 | </SpaceShip> |
---|
78 | |
---|
79 | <SpaceShip position="-4100,2700,1500"> |
---|
80 | <templates> |
---|
81 | <Template link=spaceshipHtwo/> |
---|
82 | </templates> |
---|
83 | <controller> |
---|
84 | <WaypointPatrolController alertnessradius=100 team=0 /> |
---|
85 | </controller> |
---|
86 | </SpaceShip> |
---|
87 | |
---|
88 | <SpaceShip position="-4150,2750,1550"> |
---|
89 | <templates> |
---|
90 | <Template link=spaceshipHtwo/> |
---|
91 | </templates> |
---|
92 | <controller> |
---|
93 | <WaypointPatrolController alertnessradius=100 team=0 /> |
---|
94 | </controller> |
---|
95 | </SpaceShip> |
---|
96 | |
---|
97 | <Billboard material="Test/Fog" position="-3800, 2500, 1500" alpha="0.1" color="1, 1, 1, 0.1" scale="0.5" /> |
---|
98 | |
---|
99 | <PickupSpawner position="-3800, 2500, 1500" respawnTime="60" triggerDistance="20" maxSpawnedItems="5"> |
---|
100 | <pickup> |
---|
101 | <SpeedPickup template=smalljumppickup /> |
---|
102 | </pickup> |
---|
103 | </PickupSpawner> |
---|
104 | |
---|
105 | <!-- PickupRepresentation for the pickup below, since it is not a standard pickup provided by pickups.oxi --> |
---|
106 | <PickupRepresentation |
---|
107 | pickupName = "Medium Health Pack" |
---|
108 | pickupDescription = "Once used adds a medium amout of health to the ship." |
---|
109 | spawnerTemplate = "mediumhealthpickupRepresentation" |
---|
110 | inventoryRepresentation = "MediumHealth" |
---|
111 | > |
---|
112 | <pickup> |
---|
113 | <HealthPickup health=100 activationType="onUse" durationType="once" /> |
---|
114 | </pickup> |
---|
115 | </PickupRepresentation> |
---|
116 | |
---|
117 | <PickupSpawner position="-4150,2750,1550" respawnTime="60" triggerDistance="20" maxSpawnedItems="5"> |
---|
118 | <pickup> |
---|
119 | <HealthPickup health=100 activationType=onUse durationType=once /> |
---|
120 | </pickup> |
---|
121 | </PickupSpawner> |
---|
122 | |
---|
123 | <PickupSpawner position="2300, 4300, 2400" respawnTime="5" triggerDistance="20"> |
---|
124 | <pickup> |
---|
125 | <HealthPickup template=mediumhealthpickup /> |
---|
126 | </pickup> |
---|
127 | </PickupSpawner> |
---|
128 | |
---|
129 | <Billboard position="-2500, 2400, 1500" material="Examples/Flare" /> |
---|
130 | <EventDispatcher> |
---|
131 | <targets> |
---|
132 | <EventTarget target=pirates /> |
---|
133 | </targets> |
---|
134 | <events> |
---|
135 | <activity> |
---|
136 | <DistanceTrigger position="-2500, 2400, 1500" distance=250 target="SpaceShip" stayactive=true /> |
---|
137 | </activity> |
---|
138 | </events> |
---|
139 | </EventDispatcher> |
---|
140 | |
---|
141 | <?lua |
---|
142 | for i = 1, 10, 1 do |
---|
143 | ?> |
---|
144 | <SpaceShip position="<?lua print(5000 + math.random() * 4000 - 2000) ?>,<?lua print(0 + math.random() * 2000 - 1000) ?>,<?lua print(math.random() * 2000 - 1000) ?>"> |
---|
145 | <templates> |
---|
146 | <Template link=spaceshippirate /> |
---|
147 | </templates> |
---|
148 | <controller> |
---|
149 | <WaypointPatrolController name=pirates alertnessradius=1000 team=1 active=false> |
---|
150 | <waypoints> |
---|
151 | <StaticEntity position="3100, 2000, 1500" /> |
---|
152 | </waypoints> |
---|
153 | </WaypointPatrolController> |
---|
154 | </controller> |
---|
155 | </SpaceShip> |
---|
156 | <?lua end ?> |
---|
157 | |
---|
158 | <?lua |
---|
159 | for i = 1, 12, 1 do |
---|
160 | ?> |
---|
161 | <SpaceShip position="<?lua print(2800 + math.random() * 2000 - 1000) ?>,<?lua print(2500+ math.random() * 1000 - 500) ?>,<?lua print(2500 + math.random() * 1000 - 500) ?>" > |
---|
162 | <templates> |
---|
163 | <Template link=spaceshipassff /> |
---|
164 | </templates> |
---|
165 | <controller> |
---|
166 | <WaypointPatrolController alertnessradius=1000 team=0> |
---|
167 | <waypoints> |
---|
168 | <StaticEntity position="<?lua print(2800 + math.random() * 1000 - 500) ?>,<?lua print(2500 + math.random() * 1000 - 500) ?>,<?lua print(1500 + math.random() * 1000 - 500) ?>" /> |
---|
169 | </waypoints> |
---|
170 | </WaypointPatrolController> |
---|
171 | </controller> |
---|
172 | </SpaceShip> |
---|
173 | <?lua end ?> |
---|
174 | |
---|
175 | <Billboard position="2300, 4400, 2500" material="Examples/Flare" /> |
---|
176 | <EventDispatcher> |
---|
177 | <targets> |
---|
178 | <EventTarget target=attacker /> |
---|
179 | </targets> |
---|
180 | <events> |
---|
181 | <activity> |
---|
182 | <DistanceTrigger position="2300, 4400, 2500" distance=50 target="SpaceShip" stayactive=true /> |
---|
183 | </activity> |
---|
184 | </events> |
---|
185 | </EventDispatcher> |
---|
186 | |
---|
187 | <?lua |
---|
188 | for i = 1, 12, 1 do |
---|
189 | ?> |
---|
190 | <SpaceShip position="<?lua print(2500 + math.random() * 500 - 250) ?>,<?lua print(4800 + math.random() * 500 - 250) ?>,<?lua print(2500 + math.random() * 500 - 250) ?>" > |
---|
191 | <templates> |
---|
192 | <Template link=spaceshipassff /> |
---|
193 | </templates> |
---|
194 | <controller> |
---|
195 | <WaypointPatrolController name=attacker alertnessradius="<?lua print(math.random() * 2000) ?>" team=0 active=false> |
---|
196 | <waypoints> |
---|
197 | <StaticEntity position="<?lua print(2800 + math.random() * 500 - 250) ?>,<?lua print(2500 + math.random() * 500 - 250) ?>,<?lua print(1500 + math.random() * 500 - 250) ?>" /> |
---|
198 | <StaticEntity position="<?lua print(5000 + math.random() * 500 - 250) ?>,<?lua print(0 + math.random() * 500 - 250) ?>,<?lua print(0 + math.random() * 500 - 250) ?>" /> |
---|
199 | <StaticEntity position="<?lua print(7500 + math.random() * 500 - 250) ?>,<?lua print(-2500 + math.random() * 500 - 250) ?>,<?lua print(-1500 + math.random() * 500 - 250) ?>" /> |
---|
200 | </waypoints> |
---|
201 | </WaypointPatrolController> |
---|
202 | </controller> |
---|
203 | </SpaceShip> |
---|
204 | <?lua end ?> |
---|
205 | |
---|
206 | <StaticEntity position="2800, 2500, 2500"> |
---|
207 | <attached> |
---|
208 | <CheckPoint /> |
---|
209 | <Model position="400, 0, 0" scale="40" mesh="DuBall2.mesh"/> |
---|
210 | <Model position="-400, 0, 0" scale="40" mesh="DuBall1.mesh"/> |
---|
211 | </attached> |
---|
212 | </StaticEntity> |
---|
213 | |
---|
214 | <!-- |
---|
215 | <Destroyer position="6500, -2000, -1000" collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=500> |
---|
216 | <attached> |
---|
217 | <CheckPoint /> |
---|
218 | <Model position="0,0,0" scale="5" mesh="Carrier.mesh"/> |
---|
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 | </attached> |
---|
236 | <collisionShapes> |
---|
237 | <BoxCollisionShape position="70,0,-25" halfExtents="150, 50, 25" /> |
---|
238 | <BoxCollisionShape position="95,75,-16" halfExtents="70, 10, 12" /> |
---|
239 | <BoxCollisionShape position="95,-75,-16" halfExtents="70, 10, 12" /> |
---|
240 | <BoxCollisionShape position="77,47,30" halfExtents="110, 2, 30" /> |
---|
241 | <BoxCollisionShape position="77,-47,30" halfExtents="110, 2, 30" /> |
---|
242 | <BoxCollisionShape position="77,0,50" halfExtents="110, 45, 6" /> |
---|
243 | <BoxCollisionShape position="167,0,70" halfExtents="17, 20, 20" /> |
---|
244 | </collisionShapes> |
---|
245 | </Destroyer> |
---|
246 | --> |
---|
247 | |
---|
248 | <Destroyer |
---|
249 | position = "6500,-2000,-1000" |
---|
250 | collisionType = dynamic |
---|
251 | mass = 100000 |
---|
252 | angularDamping = 0.9999999 |
---|
253 | health = 1000 |
---|
254 | maxhealth = 1000 |
---|
255 | initialhealth = 1000 |
---|
256 | > |
---|
257 | <controller> |
---|
258 | <WaypointPatrolController team=1 /> |
---|
259 | </controller> |
---|
260 | <attached> |
---|
261 | <Model mesh="Carrier.mesh" scale="5" /> |
---|
262 | <Backlight |
---|
263 | mainstate=activity |
---|
264 | active=false |
---|
265 | scale=0.4 |
---|
266 | name=bltest |
---|
267 | position=" 7.6, 0, 6" |
---|
268 | colour="0.2, 0.65, 1.0, 1.0" |
---|
269 | width=15 |
---|
270 | length=1500 |
---|
271 | lifetime=2 |
---|
272 | elements=50 |
---|
273 | trailmaterial="Trail/backlighttrail" |
---|
274 | turnontime=1 |
---|
275 | turnofftime=1 |
---|
276 | material="Flares/ThrusterFlare1" |
---|
277 | /> |
---|
278 | |
---|
279 | <?lua |
---|
280 | for i=0,8,1 do |
---|
281 | ?> |
---|
282 | <BlinkingBillboard |
---|
283 | position="<?lua print(200-270/8*i)?> ,15,2" |
---|
284 | material="Examples/Flare" |
---|
285 | colour="1.0, 0.5, 0.3" |
---|
286 | phase="<?lua print(-360/8*i)?>" |
---|
287 | amplitude=0.1 |
---|
288 | frequency=0.5 |
---|
289 | quadratic=1 |
---|
290 | /> |
---|
291 | |
---|
292 | <BlinkingBillboard |
---|
293 | position="<?lua print(200-270/8*i)?>,-15,2" |
---|
294 | material="Examples/Flare" |
---|
295 | colour="1.0, 0.5, 0.3" |
---|
296 | phase="<?lua print(-360/8*i)?>" |
---|
297 | amplitude=0.1 |
---|
298 | frequency=0.5 |
---|
299 | quadratic=1 |
---|
300 | /> |
---|
301 | <?lua end ?> |
---|
302 | |
---|
303 | <Backlight |
---|
304 | scale=1 |
---|
305 | position=" 169, 75, -15" |
---|
306 | colour="1, 0.85, 0.5, 0.5" |
---|
307 | width=40 |
---|
308 | length=1000 |
---|
309 | lifetime=5 |
---|
310 | elements=15 |
---|
311 | trailmaterial="Trail/backlighttrail" |
---|
312 | material="Examples/Flare" |
---|
313 | /> |
---|
314 | <Backlight |
---|
315 | scale=1 |
---|
316 | position=" 169, -75, -15" |
---|
317 | colour="1, 0.85, 0.5, 0.5" |
---|
318 | width=40 |
---|
319 | length=1000 |
---|
320 | lifetime=5 |
---|
321 | elements=15 |
---|
322 | trailmaterial="Trail/backlighttrail" |
---|
323 | material="Examples/Flare" |
---|
324 | /> |
---|
325 | </attached> |
---|
326 | <collisionShapes> |
---|
327 | <BoxCollisionShape position="70,0,-25" halfExtents="150, 50, 25" /> |
---|
328 | <BoxCollisionShape position="95,75,-16" halfExtents="70, 10, 12" /> |
---|
329 | <BoxCollisionShape position="95,-75,-16" halfExtents="70, 10, 12" /> |
---|
330 | <BoxCollisionShape position="77,47,30" halfExtents="110, 2, 30" /> |
---|
331 | <BoxCollisionShape position="77,-47,30" halfExtents="110, 2, 30" /> |
---|
332 | <BoxCollisionShape position="77,0,50" halfExtents="110, 45, 6" /> |
---|
333 | <BoxCollisionShape position="167,0,70" halfExtents="17, 20, 20" /> |
---|
334 | </collisionShapes> |
---|
335 | </Destroyer> |
---|
336 | |
---|
337 | <?lua |
---|
338 | for i = 1, 10, 1 do |
---|
339 | ?> |
---|
340 | <SpaceShip position="<?lua print(6200 + math.random() * 2000 - 1000) ?>,<?lua print(-1500 + math.random() * 1000 - 500) ?>,<?lua print(-700 + math.random() * 1000 - 500) ?>" > |
---|
341 | <templates> |
---|
342 | <Template link=spaceshippirate /> |
---|
343 | </templates> |
---|
344 | <controller> |
---|
345 | <WaypointPatrolController alertnessradius=1000 team=1> |
---|
346 | <waypoints> |
---|
347 | <StaticEntity position="<?lua print(6000 + math.random() * 1000 - 500) ?>,<?lua print(-2000 + math.random() * 1000 - 500) ?>,<?lua print(-1000 + math.random() * 1000 - 500) ?>" /> |
---|
348 | </waypoints> |
---|
349 | </WaypointPatrolController> |
---|
350 | </controller> |
---|
351 | </SpaceShip> |
---|
352 | <?lua end ?> |
---|
353 | |
---|
354 | <?lua |
---|
355 | elements = {"asteroid_ice.mesh", "asteroid_UV.mesh", "ast1.mesh", "ast2.mesh", "ast3.mesh", "ast4.mesh", "ast5.mesh", "ast6.mesh"} |
---|
356 | |
---|
357 | elements.length = function() |
---|
358 | return table.getn(elements) |
---|
359 | end |
---|
360 | |
---|
361 | for i = 1, 100, 1 do |
---|
362 | x = math.random() * 100 + (i) * 100 |
---|
363 | y = math.random() * 3000 - 1500 |
---|
364 | z = math.random() * 3000 - 1500 + (i-100) * 10 |
---|
365 | s = math.random() * 60 + 30 |
---|
366 | e = math.floor(math.random()*elements.length()+1) |
---|
367 | ?> |
---|
368 | <MovableEntity mass=90000 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() * 100 - 15) ?>"> |
---|
369 | <attached> |
---|
370 | <Model position="0,0,0" scale="<?lua print(s) ?>" mesh="<?lua print(elements[e])?>" /> |
---|
371 | </attached> |
---|
372 | </MovableEntity> |
---|
373 | <?lua end ?> |
---|
374 | |
---|
375 | <?lua |
---|
376 | for i = 1, 100, 1 do |
---|
377 | x = math.random() * 200 + i*200 |
---|
378 | y = math.random() * 3000 - 1500 |
---|
379 | z = math.random() * 3000 - 1500 + (i-100) * 10 |
---|
380 | s = math.random() * 60 + 30 |
---|
381 | ?> |
---|
382 | <ParticleSpawner position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" source="Orxonox/Steam" lifetime=3.0 loop=1 /> |
---|
383 | <!-- Billboard material="Test/Fog" position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" color="1, 1, 1, 0.01" scale="20" /--> |
---|
384 | <?lua end ?> |
---|
385 | |
---|
386 | <?lua |
---|
387 | elements = {"BodyDebris1.mesh", "CockpitDebris.mesh", "LightningGun.mesh", "WingDebris1.mesh", "WingDebris2.mesh", "satellitedish.mesh", "Thruster.mesh"} |
---|
388 | sizes = {4, 4, 4, 4, 4, 10, 20} |
---|
389 | |
---|
390 | elements.length = function() |
---|
391 | return table.getn(elements) |
---|
392 | end |
---|
393 | |
---|
394 | for i = 1, 150, 1 do |
---|
395 | x = math.random() * 750 - 4500 |
---|
396 | y = math.random() * 1000 + 2000 |
---|
397 | z = math.random() * 500 + 1000 |
---|
398 | e = math.floor(math.random()*elements.length()+1) |
---|
399 | ?> |
---|
400 | <MovableEntity mass=90000 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) ?>"> |
---|
401 | <attached> |
---|
402 | <Model position="0,0,0" scale="<?lua print(sizes[e]) ?>" mesh="<?lua print( elements[e]) ?>" /> |
---|
403 | </attached> |
---|
404 | </MovableEntity> |
---|
405 | <?lua end ?> |
---|
406 | |
---|
407 | <!-- |
---|
408 | <Planet position="1000,0,0" mass=900000 scale=1000 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="1,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f /> |
---|
409 | --> |
---|
410 | |
---|
411 | </Scene> |
---|
412 | </Level> |
---|