1 | <!-- --> |
---|
2 | |
---|
3 | <!--Basic-----------------------------------------------------------------------------------------------------------------------------------------------------------------------> |
---|
4 | <!--Basic Infos--> |
---|
5 | |
---|
6 | <LevelInfo |
---|
7 | name = "Escape the bastards" |
---|
8 | description = "You destroyed their Base, you accomplished the mission. Now get out of there, and get rid of the haunters" |
---|
9 | tags = "mission" |
---|
10 | screenshot = "emptylevel.png" |
---|
11 | /> |
---|
12 | |
---|
13 | <?lua |
---|
14 | include("stats.oxo") |
---|
15 | include("HUDTemplates3.oxo") |
---|
16 | include("templates/lodInformation.oxt") |
---|
17 | ?> |
---|
18 | |
---|
19 | <?lua |
---|
20 | include("templates/pickupRepresentationTemplates.oxt") |
---|
21 | include("templates/spaceshipAssff.oxt") |
---|
22 | include("templates/spaceshipPirate.oxt") |
---|
23 | include("templates/spaceshipEscort.oxt") |
---|
24 | include("templates/spaceshipCollateralDamage.oxt") |
---|
25 | ?> |
---|
26 | |
---|
27 | <NotificationQueueCEGUI |
---|
28 | name="narrative" |
---|
29 | targets="simpleNotification" |
---|
30 | size=3 |
---|
31 | displayTime=4 |
---|
32 | position="0.2, 0, 0.1, 0" |
---|
33 | fontSize="23" |
---|
34 | fontColor="0, 0.5, 1, 0.9" |
---|
35 | alignment="HorzCentred" |
---|
36 | displaySize="0.6, 0, 0, 0" |
---|
37 | /> |
---|
38 | |
---|
39 | <Level |
---|
40 | name = "Escape the bastards" |
---|
41 | description = "You destroyed their Base, you accomplished the mission. Now get out of there, and get rid of the haunters" |
---|
42 | gametype=Mission |
---|
43 | > |
---|
44 | <templates> |
---|
45 | <Template link=lodtemplate_default /> |
---|
46 | </templates> |
---|
47 | <?lua include("includes/notifications.oxi") ?> |
---|
48 | |
---|
49 | <Scene |
---|
50 | ambientlight = "0.8, 0.8, 0.8" |
---|
51 | skybox = "Orxonox/skyBoxMoreNebula" |
---|
52 | > |
---|
53 | |
---|
54 | <?lua |
---|
55 | include("includes/pickups.oxi") |
---|
56 | ?> |
---|
57 | |
---|
58 | <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0"/> |
---|
59 | |
---|
60 | |
---|
61 | |
---|
62 | <!-- SpawnPoint team=0 position="-1000,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff / --> |
---|
63 | |
---|
64 | <!-- Pickups --> |
---|
65 | |
---|
66 | <PickupSpawner pickup=dronepickup position="-5000,300,-209" triggerDistance="10" respawnTime="30" maxSpawnedItems="10" /> |
---|
67 | <PickupSpawner pickup=hugespeedpickup position="-800,0,0" triggerDistance="10" respawnTime="10" maxSpawnedItems="99" /> |
---|
68 | |
---|
69 | <!-- |
---|
70 | <PickupSpawner pickup=crazyhealthpickup position="2200,1000,-600" triggerDistance="10" respawnTime="10" maxSpawnedItems="99" active=false> |
---|
71 | <events> |
---|
72 | <activity> |
---|
73 | <EventListener event="reachedally" /> |
---|
74 | </activity> |
---|
75 | </events> |
---|
76 | </PickupSpawner> |
---|
77 | <PickupSpawner pickup=hugespeedpickup position="2200,1000,-600" triggerDistance="10" respawnTime="10" maxSpawnedItems="99" active=false> |
---|
78 | <events> |
---|
79 | <activity> |
---|
80 | <EventListener event="reachedally" /> |
---|
81 | </activity> |
---|
82 | </events> |
---|
83 | </PickupSpawner> |
---|
84 | --> |
---|
85 | |
---|
86 | <!-- Pickups heal the box, so one cant destroy the box --> |
---|
87 | |
---|
88 | <!-- Pickups END --> |
---|
89 | <!--Basic Infos end--> |
---|
90 | |
---|
91 | <!--Story-----------------------------------------------------------------------------------------------------------------------------------------------------------------------> |
---|
92 | |
---|
93 | |
---|
94 | <!--Quests (Fly to the Ally)--> |
---|
95 | <EventMultiTrigger name=spawntrigger> |
---|
96 | <events> |
---|
97 | <trigger> |
---|
98 | <TeamSpawnPoint team=0 position="-8050,0,0" direction="1,0.3,0.2" spawnclass=SpaceShip pawndesign=spaceshipcollateraldamage>> |
---|
99 | <EventTrigger invert=true> |
---|
100 | <events> |
---|
101 | <trigger> |
---|
102 | <EventListener event="missionfinish" /> |
---|
103 | </trigger> |
---|
104 | </events> |
---|
105 | </EventTrigger> |
---|
106 | </TeamSpawnPoint> |
---|
107 | </trigger> |
---|
108 | </events> |
---|
109 | </EventMultiTrigger> |
---|
110 | |
---|
111 | <QuestEffectBeacon times=1> |
---|
112 | <effects> |
---|
113 | <AddQuest questId="Helpisontheway.1" /> |
---|
114 | </effects> |
---|
115 | <events> |
---|
116 | <execute> |
---|
117 | <EventListener event=spawntrigger /> |
---|
118 | </execute> |
---|
119 | </events> |
---|
120 | </QuestEffectBeacon> |
---|
121 | |
---|
122 | <QuestEffectBeacon times=1> |
---|
123 | <effects> |
---|
124 | <CompleteQuest questId="Helpisontheway.1" /> |
---|
125 | </effects> |
---|
126 | <events> |
---|
127 | <execute> |
---|
128 | <EventListener event="missionfinish" /> |
---|
129 | </execute> |
---|
130 | </events> |
---|
131 | </QuestEffectBeacon> |
---|
132 | |
---|
133 | |
---|
134 | <QuestEffectBeacon times=1 > |
---|
135 | <effects> |
---|
136 | <CompleteQuest questId="defend.2" /> |
---|
137 | </effects> |
---|
138 | <events> |
---|
139 | <execute> |
---|
140 | <EventListener event="Boxdestroyed" /> |
---|
141 | </execute> |
---|
142 | </events> |
---|
143 | </QuestEffectBeacon> |
---|
144 | |
---|
145 | <QuestEffectBeacon times=1 > |
---|
146 | <effects> |
---|
147 | <CompleteQuest questId="leave.3" /> |
---|
148 | </effects> |
---|
149 | <events> |
---|
150 | <execute> |
---|
151 | <EventListener event="reachedhomeplanet" /> |
---|
152 | </execute> |
---|
153 | </events> |
---|
154 | </QuestEffectBeacon> |
---|
155 | |
---|
156 | |
---|
157 | |
---|
158 | <DistanceTrigger name="missionfinish" position="-120,0,0" target="Pawn" distance=60 stayActive="true" delay=1> |
---|
159 | </DistanceTrigger> |
---|
160 | <DistanceTrigger name="reachedally" position="-120,0,0" target="Pawn" distance=60 stayActive="true" delay=2> |
---|
161 | </DistanceTrigger> |
---|
162 | <DistanceTrigger name="reachedhomeplanet" position="8000,7500,-1990" target="Pawn" distance=60 stayActive="true" delay=2> |
---|
163 | </DistanceTrigger> |
---|
164 | |
---|
165 | |
---|
166 | |
---|
167 | <EventTrigger name="boxtrigger" activations="1" stayactive="true" delay=0.1> |
---|
168 | <events> |
---|
169 | <trigger> |
---|
170 | <EventListener event="box" /> |
---|
171 | </trigger> |
---|
172 | </events> |
---|
173 | </EventTrigger> |
---|
174 | |
---|
175 | |
---|
176 | <!-- Billboard Allyplanet --> |
---|
177 | |
---|
178 | <BlinkingBillboard position="-120,0,0" frequency=0.4 amplitude=3 material="Flares/lensflare" colour="1,1,0.05"> |
---|
179 | <events> |
---|
180 | <visibility> |
---|
181 | <EventTrigger invert=true> |
---|
182 | <events> |
---|
183 | <trigger> |
---|
184 | <EventListener event="missionfinish" /> |
---|
185 | </trigger> |
---|
186 | </events> |
---|
187 | </EventTrigger> |
---|
188 | </visibility> |
---|
189 | </events> |
---|
190 | </BlinkingBillboard> |
---|
191 | |
---|
192 | <Billboard position="-120,0,0" amplitude=1 material="Flares/lensflare" colour="0,0.8,0.1"> |
---|
193 | <events> |
---|
194 | <visibility> |
---|
195 | <EventTrigger> |
---|
196 | <events> |
---|
197 | <trigger> |
---|
198 | <EventListener event="missionfinish" /> |
---|
199 | </trigger> |
---|
200 | </events> |
---|
201 | </EventTrigger> |
---|
202 | </visibility> |
---|
203 | </events> |
---|
204 | </Billboard> |
---|
205 | |
---|
206 | <!-- Billboard Allyplanet END--> |
---|
207 | |
---|
208 | |
---|
209 | <!-- Box with Pickups --> |
---|
210 | <Pawn team=1 health=30 position="2200,1000,-600" direction="0,-1,0" collisionType=dynamic mass=100000 name=box radarname = "Something" > |
---|
211 | <events> |
---|
212 | <visibility> |
---|
213 | <EventListener event="target3" /> |
---|
214 | </visibility> |
---|
215 | </events> |
---|
216 | <attached> |
---|
217 | <Model position="0,0,0" mesh="crate.mesh" scale3D="5,5,5" /> |
---|
218 | </attached> |
---|
219 | <collisionShapes> |
---|
220 | <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" /> |
---|
221 | </collisionShapes> |
---|
222 | </Pawn> |
---|
223 | |
---|
224 | <Billboard position="2200,1000,-600" amplitude=1 material="Flares/lensflare" colour="0,0.8,0.1"> |
---|
225 | <events> |
---|
226 | <visibility> |
---|
227 | <EventTrigger> |
---|
228 | <events> |
---|
229 | <trigger> |
---|
230 | <EventListener event="boxtrigger" /> |
---|
231 | </trigger> |
---|
232 | </events> |
---|
233 | </EventTrigger> |
---|
234 | </visibility> |
---|
235 | </events> |
---|
236 | </Billboard> |
---|
237 | <!-- Box with Pickups END --> |
---|
238 | |
---|
239 | <!-- Billboard Homeplanet --> |
---|
240 | |
---|
241 | <BlinkingBillboard position="8000,7500,-1990" frequency=0.4 amplitude=3 material="Flares/lensflare" colour="1,1,0.05"> |
---|
242 | <events> |
---|
243 | <visibility> |
---|
244 | <EventTrigger invert=true> |
---|
245 | <events> |
---|
246 | <trigger> |
---|
247 | <EventListener event="reachedhomeplanet" /> |
---|
248 | </trigger> |
---|
249 | </events> |
---|
250 | </EventTrigger> |
---|
251 | </visibility> |
---|
252 | </events> |
---|
253 | </BlinkingBillboard> |
---|
254 | |
---|
255 | <Billboard position="8000,7500,-1990" amplitude=1 material="Flares/lensflare" colour="0,0.8,0.1"> |
---|
256 | <events> |
---|
257 | <visibility> |
---|
258 | <EventTrigger> |
---|
259 | <events> |
---|
260 | <trigger> |
---|
261 | <EventListener event="reachedhomeplanet" /> |
---|
262 | </trigger> |
---|
263 | </events> |
---|
264 | </EventTrigger> |
---|
265 | </visibility> |
---|
266 | </events> |
---|
267 | </Billboard> |
---|
268 | |
---|
269 | <!-- Billboard Homeplanet END--> |
---|
270 | |
---|
271 | |
---|
272 | <!--Quests (Fly to the Ally) END--> |
---|
273 | |
---|
274 | <!--Quests (Fight Enemies)--> |
---|
275 | |
---|
276 | |
---|
277 | <SpaceShip position="1000,0,0" lookat="0,0,1" name="attacker" radarname="Fighter1" visible="true"> |
---|
278 | <events> |
---|
279 | <visibility> |
---|
280 | <EventListener event="missionfinish" /> |
---|
281 | </visibility> |
---|
282 | </events> |
---|
283 | |
---|
284 | <templates> |
---|
285 | <Template link=spaceshippirate /> |
---|
286 | </templates> |
---|
287 | <controller> |
---|
288 | <WaypointPatrolController alertnessradius=750 team=1 active=false> |
---|
289 | <waypoints> |
---|
290 | <Model mesh="cube.mesh" scale=10 position="1000,0,0"/> |
---|
291 | <Model mesh="cube.mesh" scale=10 position="500,500,0"/> |
---|
292 | <Model mesh="cube.mesh" scale=10 position="0,1000,0"/> |
---|
293 | <Model mesh="cube.mesh" scale=10 position="-500,500,0"/> |
---|
294 | <Model mesh="cube.mesh" scale=10 position="-1000,0,0"/> |
---|
295 | <Model mesh="cube.mesh" scale=10 position="-500,-500,0"/> |
---|
296 | <Model mesh="cube.mesh" scale=10 position="0,-1000,0"/> |
---|
297 | <Model mesh="cube.mesh" scale=10 position="500,-500,0"/> |
---|
298 | </waypoints> |
---|
299 | <events> |
---|
300 | <activity> |
---|
301 | <EventListener event="reachedally" /> |
---|
302 | </activity> |
---|
303 | </events> |
---|
304 | </WaypointPatrolController> |
---|
305 | </controller> |
---|
306 | </SpaceShip> |
---|
307 | |
---|
308 | <SpaceShip position="0,1000,0" lookat="1,0,0" name="attacker" radarname="Fighter2" visible="true"> |
---|
309 | <events> |
---|
310 | <visibility> |
---|
311 | <EventListener event="missionfinish" /> |
---|
312 | </visibility> |
---|
313 | </events> |
---|
314 | <templates> |
---|
315 | <Template link=spaceshippirate /> |
---|
316 | </templates> |
---|
317 | <controller> |
---|
318 | <WaypointPatrolController alertnessradius=750 team=1 active=false> |
---|
319 | <waypoints> |
---|
320 | <Model mesh="cube.mesh" scale=10 position="0,1000,0"/> |
---|
321 | <Model mesh="cube.mesh" scale=10 position="0,500,500"/> |
---|
322 | <Model mesh="cube.mesh" scale=10 position="0,0,1000"/> |
---|
323 | <Model mesh="cube.mesh" scale=10 position="0,-500,500"/> |
---|
324 | <Model mesh="cube.mesh" scale=10 position="0,-1000,0"/> |
---|
325 | <Model mesh="cube.mesh" scale=10 position="0,-500,-500"/> |
---|
326 | <Model mesh="cube.mesh" scale=10 position="0,0,-1000"/> |
---|
327 | <Model mesh="cube.mesh" scale=10 position="0,500,-500"/> |
---|
328 | </waypoints> |
---|
329 | <events> |
---|
330 | <activity> |
---|
331 | <EventListener event="reachedally" /> |
---|
332 | </activity> |
---|
333 | </events> |
---|
334 | </WaypointPatrolController> |
---|
335 | </controller> |
---|
336 | </SpaceShip> |
---|
337 | |
---|
338 | <SpaceShip position="0,0,1000" lookat="0,1,0" name="attacker" radarname="Fighter3" visible="true"> |
---|
339 | <events> |
---|
340 | <visibility> |
---|
341 | <EventListener event="missionfinish" /> |
---|
342 | </visibility> |
---|
343 | </events> |
---|
344 | <templates> |
---|
345 | <Template link=spaceshippirate /> |
---|
346 | </templates> |
---|
347 | <controller> |
---|
348 | <WaypointPatrolController alertnessradius=750 team=1 active=false> |
---|
349 | <waypoints> |
---|
350 | <Model mesh="cube.mesh" scale=10 position="1000,0,0"/> |
---|
351 | <Model mesh="cube.mesh" scale=10 position="500,0,500"/> |
---|
352 | <Model mesh="cube.mesh" scale=10 position="0,0,1000"/> |
---|
353 | <Model mesh="cube.mesh" scale=10 position="-500,0,500"/> |
---|
354 | <Model mesh="cube.mesh" scale=10 position="-1000,0,0"/> |
---|
355 | <Model mesh="cube.mesh" scale=10 position="-500,0,-500"/> |
---|
356 | <Model mesh="cube.mesh" scale=10 position="0,0,-1000"/> |
---|
357 | <Model mesh="cube.mesh" scale=10 position="500,0,-500"/> |
---|
358 | </waypoints> |
---|
359 | <events> |
---|
360 | <activity> |
---|
361 | <EventListener event="reachedally" /> |
---|
362 | </activity> |
---|
363 | </events> |
---|
364 | </WaypointPatrolController> |
---|
365 | </controller> |
---|
366 | </SpaceShip> |
---|
367 | |
---|
368 | <!-- @Triggers: Attakers, Fight one by one --> |
---|
369 | |
---|
370 | <EventTrigger name="target3" activations="1" stayactive="true" delay=0.1> |
---|
371 | <events> |
---|
372 | <trigger> |
---|
373 | <EventListener event="attacker" /> |
---|
374 | </trigger> |
---|
375 | </events> |
---|
376 | <EventTrigger name="target2" activations="1" stayactive="true" delay=0.1> |
---|
377 | <events> |
---|
378 | <trigger> |
---|
379 | <EventListener event="attacker" /> |
---|
380 | </trigger> |
---|
381 | </events> |
---|
382 | <EventTrigger name="target1" activations="1" stayactive="true" delay=0.1> |
---|
383 | <events> |
---|
384 | <trigger> |
---|
385 | <EventListener event="attacker" /> |
---|
386 | </trigger> |
---|
387 | </events> |
---|
388 | </EventTrigger> |
---|
389 | </EventTrigger> |
---|
390 | </EventTrigger> |
---|
391 | |
---|
392 | |
---|
393 | <SimpleNotification message="Wow, That's an explosion." broadcast="true"> |
---|
394 | <events> |
---|
395 | <trigger> |
---|
396 | <EventListener event="target1" /> |
---|
397 | </trigger> |
---|
398 | </events> |
---|
399 | </SimpleNotification> |
---|
400 | |
---|
401 | <SimpleNotification message="Booom, you got him!" broadcast="true"> |
---|
402 | <events> |
---|
403 | <trigger> |
---|
404 | <EventListener event="target2" /> |
---|
405 | </trigger> |
---|
406 | </events> |
---|
407 | </SimpleNotification> |
---|
408 | |
---|
409 | |
---|
410 | <SimpleNotification message="No Mercy!! .. What's that?" broadcast="true"> |
---|
411 | <events> |
---|
412 | <trigger> |
---|
413 | <EventListener event="target3" /> |
---|
414 | </trigger> |
---|
415 | </events> |
---|
416 | </SimpleNotification> |
---|
417 | |
---|
418 | |
---|
419 | |
---|
420 | |
---|
421 | <!-- @Triggers: Attakers, Fight one by one END --> |
---|
422 | |
---|
423 | |
---|
424 | <!--Quests (Fight Enemies) END--> |
---|
425 | |
---|
426 | |
---|
427 | <!-- LocalQuests --> |
---|
428 | <LocalQuest id="Helpisontheway.1"> |
---|
429 | <QuestDescription title="Help is on the way" description="An allied pilot is cast away on a planet behind you. Fight the enemies and get him out of there. |
---|
430 | |
---|
431 | He will blink with his lamp |
---|
432 | |
---|
433 | PS: Remind the gravitation field" |
---|
434 | |
---|
435 | |
---|
436 | failmessage="Well, you sucked" completeMessage="Well done, You're a hero" /> |
---|
437 | <complete-effects> |
---|
438 | <AddQuest questId="defend.2" /> |
---|
439 | </complete-effects> |
---|
440 | </LocalQuest> |
---|
441 | |
---|
442 | |
---|
443 | <LocalQuest id="defend.2"> |
---|
444 | <QuestDescription title="Defend the Planet" description="You've picked up you're mate. He's wounded and you have to reach your base as fast as you can. Defend this place, and try to get him home. Perhaps you can find something usefull around here. |
---|
445 | |
---|
446 | Try to stay on the planet. It's easier to fight!" |
---|
447 | failmessage="Well, you sucked" completeMessage="Well done, You're a hero" /> |
---|
448 | <complete-effects> |
---|
449 | <AddQuest questId="leave.3" /> |
---|
450 | </complete-effects> |
---|
451 | </LocalQuest> |
---|
452 | |
---|
453 | |
---|
454 | |
---|
455 | <LocalQuest id="leave.3"> |
---|
456 | <QuestDescription title="Leave the Place" description="You've blown their minds. Let's go home. Follow the Big blue planet to reach your home." failmessage="" completeMessage="" /> |
---|
457 | <complete-effects> |
---|
458 | <AddQuest questId="wayhome.4" /> |
---|
459 | </complete-effects> |
---|
460 | </LocalQuest> |
---|
461 | |
---|
462 | <LocalQuest id="wayhome.4"> |
---|
463 | <QuestDescription title="Let's go home" description="You've reached your planet. The radar is broke. You have to find the Base, cause you arent able to see from the air" failmessage="" completeMessage="" /> |
---|
464 | <complete-effects> |
---|
465 | <AddQuest questId="end.5" /> |
---|
466 | </complete-effects> |
---|
467 | </LocalQuest> |
---|
468 | |
---|
469 | <!-- LocalQuests END --> |
---|
470 | |
---|
471 | <!-- Message Triggers --> |
---|
472 | <DistanceTrigger name="StartofMission" position="-8050,0,0" target="Pawn" distance=10 stayActive="true" delay=2/> |
---|
473 | <SimpleNotification message="Hi, I'm the Commander."> |
---|
474 | <events> |
---|
475 | <trigger> |
---|
476 | <EventListener event="StartofMission" /> |
---|
477 | </trigger> |
---|
478 | </events> |
---|
479 | </SimpleNotification> |
---|
480 | |
---|
481 | <DistanceTrigger name="Introduction1" position="-8050,0,0" target="Pawn" distance=30 stayActive="true" delay=6.4/> |
---|
482 | <SimpleNotification message="An allied pilot had to make a forced landing"> |
---|
483 | <events> |
---|
484 | <trigger> |
---|
485 | <EventListener event="Introduction1" /> |
---|
486 | </trigger> |
---|
487 | </events> |
---|
488 | </SimpleNotification> |
---|
489 | |
---|
490 | <DistanceTrigger name="Introduction2" position="-8050,0,0" target="Pawn" distance=30 stayActive="true" delay=10.8/> |
---|
491 | <SimpleNotification message="He needs your help. Get him out of there"> |
---|
492 | <events> |
---|
493 | <trigger> |
---|
494 | <EventListener event="Introduction2" /> |
---|
495 | </trigger> |
---|
496 | </events> |
---|
497 | </SimpleNotification> |
---|
498 | |
---|
499 | <DistanceTrigger name="PickedUpAlly" position="-2580,300,-209" target="Pawn" distance=30 stayActive="true" delay=0.1/> |
---|
500 | <SimpleNotification message="Hi .... are you an enemy?"> |
---|
501 | <events> |
---|
502 | <trigger> |
---|
503 | <EventListener event="PickedUpAlly" /> |
---|
504 | </trigger> |
---|
505 | </events> |
---|
506 | </SimpleNotification> |
---|
507 | |
---|
508 | <DistanceTrigger name="PickedUpAlly2" position="-2580,300,-209" target="Pawn" distance=30 stayActive="true" delay=4.4/> |
---|
509 | <SimpleNotification message="Shoot the enemies staying on the planet"> |
---|
510 | <events> |
---|
511 | <trigger> |
---|
512 | <EventListener event="PickedUpAlly2" /> |
---|
513 | </trigger> |
---|
514 | </events> |
---|
515 | </SimpleNotification> |
---|
516 | |
---|
517 | |
---|
518 | <SimpleNotification message="Pickups! Pick them up ;-)" broadcast="true"> |
---|
519 | <events> |
---|
520 | <trigger> |
---|
521 | <EventListener event="boxtrigger" /> |
---|
522 | </trigger> |
---|
523 | </events> |
---|
524 | </SimpleNotification> |
---|
525 | |
---|
526 | <DistanceTrigger name="Boxdestroyed" position="2200,1000,-600" target="SpaceShip" distance=30 stayActive="true" delay=0.1 /> |
---|
527 | <SimpleNotification message="Now aim the blue planet"> |
---|
528 | <events> |
---|
529 | <trigger> |
---|
530 | <EventListener event="Boxdestroyed" /> |
---|
531 | </trigger> |
---|
532 | </events> |
---|
533 | </SimpleNotification> |
---|
534 | |
---|
535 | <DistanceTrigger name="Boxdestroyed2" position="2200,1000,-600" target="SpaceShip" distance=30 stayActive="true" delay=4.4 /> |
---|
536 | <SimpleNotification message="Land near the blinking light!"> |
---|
537 | <events> |
---|
538 | <trigger> |
---|
539 | <EventListener event="Boxdestroyed2" /> |
---|
540 | </trigger> |
---|
541 | </events> |
---|
542 | </SimpleNotification> |
---|
543 | |
---|
544 | <SimpleNotification message="You're almost there"> |
---|
545 | <events> |
---|
546 | <trigger> |
---|
547 | <EventListener event="reachedhomeplanet" /> |
---|
548 | </trigger> |
---|
549 | </events> |
---|
550 | </SimpleNotification> |
---|
551 | |
---|
552 | |
---|
553 | <!-- Message Triggers END --> |
---|
554 | |
---|
555 | <!--Quests____END--> |
---|
556 | |
---|
557 | |
---|
558 | |
---|
559 | <!--Enviroment--------------------------------------------------------------------------------------------------------------------------------------------------------------------> |
---|
560 | |
---|
561 | <!--Asteroids Field--> |
---|
562 | |
---|
563 | <?lua for i=0,750,1 do |
---|
564 | x=math.random(-8000,-1000) |
---|
565 | y=math.random(-2345,2345) |
---|
566 | z=math.random(-2500,2500) |
---|
567 | scale=math.random(20,70) |
---|
568 | ?> |
---|
569 | <MovableEntity collisionType=kinematic linearDamping=0.8 angularDamping=0 mass="<?lua print(scale * 5) ?>" position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" rotationaxis="<?lua print(math.random()) ?>,<?lua print(math.random()) ?>,<?lua print(math.random()) ?>" rotationrate="<?lua print(math.random()*15) ?>"> |
---|
570 | <attached> |
---|
571 | <Model scale="<?lua print(scale) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false/> |
---|
572 | </attached> |
---|
573 | <collisionShapes> |
---|
574 | <SphereCollisionShape radius="<?lua print(scale * 3) ?>" /> |
---|
575 | </collisionShapes> |
---|
576 | </MovableEntity> |
---|
577 | <?lua end ?> |
---|
578 | |
---|
579 | <!--Asteroids Field end --> |
---|
580 | |
---|
581 | |
---|
582 | <!--Asteroids Random--> |
---|
583 | |
---|
584 | <?lua for i=0,300,1 do |
---|
585 | x=math.random(-12000,4000) |
---|
586 | y=math.random(-8000,8000) |
---|
587 | z=math.random(-8000,8000) |
---|
588 | ?> |
---|
589 | <MovableEntity collisionType=kinematic linearDamping=0.8 angularDamping=0 mass="<?lua print(scale * 5) ?>" position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" rotationaxis="<?lua print(math.random()) ?>,<?lua print(math.random()) ?>,<?lua print(math.random()) ?>" rotationrate="<?lua print(math.random()*15) ?>" > |
---|
590 | <attached> |
---|
591 | <Model scale="<?lua print(math.random(20,70)) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false/> |
---|
592 | </attached> |
---|
593 | <collisionShapes> |
---|
594 | <SphereCollisionShape radius="<?lua print(scale * 3) ?>" /> |
---|
595 | </collisionShapes> |
---|
596 | </MovableEntity> |
---|
597 | <?lua end ?> |
---|
598 | |
---|
599 | <!--Asteroids Random end--> |
---|
600 | |
---|
601 | <!--Asteroid Elipse--> |
---|
602 | <?lua |
---|
603 | max = 20 |
---|
604 | for i = 0, max, 1 |
---|
605 | do |
---|
606 | y = math.sin(i/max*6)*2000 |
---|
607 | z = math.cos(i/max*6)*2500 |
---|
608 | x = 0 |
---|
609 | ?> |
---|
610 | <?lua |
---|
611 | for k = 1, 15, 1 |
---|
612 | do |
---|
613 | j = math.random() |
---|
614 | ?> |
---|
615 | |
---|
616 | <MovableEntity |
---|
617 | position = "<?lua print(x + math.random() * 500) ?>,<?lua print(y + math.random() * 500) ?>,<?lua print(z + math.random() * 1000) ?>" |
---|
618 | collisionType = "dynamic" |
---|
619 | linearDamping = "0.5" |
---|
620 | angularDamping = "0.01" |
---|
621 | collisiondamage = "0.01" |
---|
622 | enablecollisiondamage = "true" |
---|
623 | scale="<?lua print(j * 5) ?>" > |
---|
624 | <attached> |
---|
625 | <Model position="0,0,0" scale="<?lua print(j * 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh"> |
---|
626 | <?lua if k == 5 then ?><attached> <!--asteroid fog--> |
---|
627 | <ParticleEmitter position="0,0,0" source="Orxonox/Steam" /> |
---|
628 | </attached> <?lua end ?> |
---|
629 | </Model> |
---|
630 | </attached> |
---|
631 | <collisionShapes> |
---|
632 | <SphereCollisionShape radius="<?lua print(j * 80) ?>" /> |
---|
633 | </collisionShapes> |
---|
634 | </MovableEntity> |
---|
635 | <?lua |
---|
636 | end |
---|
637 | ?> |
---|
638 | <?lua end ?> |
---|
639 | <!--Asteroid Elipse end--> |
---|
640 | |
---|
641 | <!--Planet--> |
---|
642 | <Planet position="15000,0,0" scale=1500 pitch=-90 mesh="planets/sol.mesh" atmosphere="atmosphere1" rotationaxis="8,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f /> |
---|
643 | <StaticEntity position="2600,0,0" collisionType=static> |
---|
644 | <collisionShapes> |
---|
645 | <SphereCollisionShape radius="399" /> |
---|
646 | </collisionShapes> |
---|
647 | </StaticEntity> |
---|
648 | <!--Planet END--> |
---|
649 | |
---|
650 | <!--Planet with Ally--> |
---|
651 | <Planet |
---|
652 | position="0,0,0" |
---|
653 | scale="100" |
---|
654 | collisionType="dynamic" |
---|
655 | linearDamping="0.8" |
---|
656 | angularDamping="0" |
---|
657 | mass="5000000" |
---|
658 | pitch="0" |
---|
659 | mesh="planets/muunilinst.mesh" |
---|
660 | atmosphere="atmosphere1" |
---|
661 | rotationaxis="1,0,0" |
---|
662 | rotationrate="1.0" |
---|
663 | atmospheresize="80.0f" |
---|
664 | imagesize="1024.0f" |
---|
665 | > |
---|
666 | <attached> |
---|
667 | <ForceField position="0,0,0" mode="sphere" diameter="1000" velocity="-500" /> |
---|
668 | </attached> |
---|
669 | <collisionShapes> |
---|
670 | <SphereCollisionShape radius="100" position="0,0,0" /> |
---|
671 | </collisionShapes> |
---|
672 | </Planet> |
---|
673 | <!-- Planet with Ally END--> |
---|
674 | |
---|
675 | |
---|
676 | <!-- Homeplanet --> |
---|
677 | <Planet |
---|
678 | position="8000,7500,-5000" |
---|
679 | scale="3000" |
---|
680 | collisionType="dynamic" |
---|
681 | linearDamping="0.8" |
---|
682 | angularDamping="0" |
---|
683 | mass="5000000000000" |
---|
684 | pitch="0" |
---|
685 | mesh="iceplanet.mesh" |
---|
686 | atmosphere="atmosphere1" |
---|
687 | rotationaxis="0,0,0" |
---|
688 | rotationrate="0.0" |
---|
689 | atmospheresize="80.0f" |
---|
690 | imagesize="1024.0f" |
---|
691 | > |
---|
692 | <attached> |
---|
693 | <ForceField position="0,0,0" mode="sphere" diameter="10000" velocity="-900" /> |
---|
694 | </attached> |
---|
695 | <collisionShapes> |
---|
696 | <SphereCollisionShape radius="3000" position="0,0,0" /> |
---|
697 | </collisionShapes> |
---|
698 | </Planet> |
---|
699 | |
---|
700 | |
---|
701 | |
---|
702 | </Scene> |
---|
703 | </Level> |
---|
704 | |
---|
705 | |
---|
706 | |
---|