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