1 | <!--Spacefight--> |
---|
2 | |
---|
3 | <!-- |
---|
4 | To Do: |
---|
5 | - Different Colors of the light! |
---|
6 | - visibility of light only for a little time |
---|
7 | - If possible, do the spion with DistanceTriggerBeacon |
---|
8 | --> |
---|
9 | <LevelInfo |
---|
10 | name = "Spacefight" |
---|
11 | description = "Level with the big Spacefight" |
---|
12 | tags = "mission" |
---|
13 | screenshot = "emptylevel.png" |
---|
14 | /> |
---|
15 | |
---|
16 | <?lua |
---|
17 | include("stats.oxo") |
---|
18 | include("HUDTemplates3.oxo") |
---|
19 | include("templates/lodInformation.oxt") |
---|
20 | ?> |
---|
21 | |
---|
22 | <?lua |
---|
23 | include("templates/spaceshipAssff2.oxt") |
---|
24 | include("templates/spaceshipPirate.oxt") |
---|
25 | include("templates/spaceshipEscort.oxt") |
---|
26 | include("templates/spaceshipSwallow.oxt") |
---|
27 | include("templates/pickupRepresentationTemplates.oxt") |
---|
28 | include("templates/spaceshipCollateralDamage.oxt") |
---|
29 | ?> |
---|
30 | <?lua |
---|
31 | dofile("includes/CuboidSpaceStation.lua") |
---|
32 | ?> |
---|
33 | |
---|
34 | <Level |
---|
35 | gametype = "Mission" |
---|
36 | > |
---|
37 | <templates> |
---|
38 | <Template link=lodtemplate_default /> |
---|
39 | </templates> |
---|
40 | |
---|
41 | <?lua include("includes/notifications.oxi") ?> |
---|
42 | |
---|
43 | |
---|
44 | <NotificationQueueCEGUI |
---|
45 | name="narrative" |
---|
46 | targets="simpleNotification" |
---|
47 | size=3 |
---|
48 | displayTime=5.0 |
---|
49 | position="0.2, 0, 0.1, 0" |
---|
50 | fontSize="23" |
---|
51 | fontColor="0.3, 1, 0.2, 0.8" |
---|
52 | alignment="HorzCentred" |
---|
53 | displaySize="0.6, 0, 0, 0" |
---|
54 | /> |
---|
55 | |
---|
56 | <Scene |
---|
57 | ambientlight = "0.8, 0.8, 0.8" |
---|
58 | skybox = "Orxonox/Starbox" |
---|
59 | > |
---|
60 | <?lua include("includes/pickups.oxi") ?> |
---|
61 | |
---|
62 | <Script code="showGUI NotificationLayer false true" needsGraphics="true" /> |
---|
63 | |
---|
64 | <!-- SPAWNTRIGGER --> |
---|
65 | |
---|
66 | <!-- Spawntrigger --> |
---|
67 | <!-- <SpawnPoint team=0 position="0, 0, 0" lookat="100,0,0" spawnclass=SpaceShip pawndesign=spaceshipswallow > <!-- pawndesign=spaceshipcollateraldamage -- |
---|
68 | <events> |
---|
69 | <activity> |
---|
70 | <EventListener event="flying12" /> |
---|
71 | </activity> |
---|
72 | </events> |
---|
73 | </SpawnPoint> |
---|
74 | |
---|
75 | <EventTrigger name="flying12" invert="true" > |
---|
76 | <events> |
---|
77 | <trigger> |
---|
78 | <EventListener event="flying1" /> |
---|
79 | </trigger> |
---|
80 | </events> |
---|
81 | </EventTrigger> |
---|
82 | --> |
---|
83 | |
---|
84 | <SpawnPoint team=0 position="13500, 2500, 11000" lookat="18000,5000,21000" spawnclass=SpaceShip pawndesign=spaceshipswallow delay=0.1><!-- pawndesign=spaceshipcollateraldamage -- |
---|
85 | <events> |
---|
86 | <activity> |
---|
87 | <EventListener event="flying1" /> |
---|
88 | </activity> |
---|
89 | </events> --> |
---|
90 | </SpawnPoint> |
---|
91 | |
---|
92 | <!-- ZUM TESTEN --> |
---|
93 | <DistanceTrigger name=spawntrigger2 position="13500, 2500, 11000" target="SpaceShip" distance=10 stayActive="true" delay=0 /> |
---|
94 | <DistanceTrigger name="flying1" position="13500, 2500, 11000" target="SpaceShip" distance=10 stayActive="true" delay=0 /> |
---|
95 | |
---|
96 | <!-- Distance-Spawn-Trigger --> |
---|
97 | <DistanceTrigger name=spawntrigger2 position="0, 0, 0" target="SpaceShip" distance=10 stayActive="true" delay=0 /> |
---|
98 | |
---|
99 | <!-- Drone pickup --> |
---|
100 | <PickupSpawner pickup=dronepickup position="9750, -5350, 5650" triggerDistance="20" respawnTime="30" maxSpawnedItems="2" /> |
---|
101 | |
---|
102 | <!-- QUEST DESCRIPTION--> |
---|
103 | <LocalQuest id="spacefight.guard1"> |
---|
104 | <QuestDescription |
---|
105 | title="Eliminate the first guard!" |
---|
106 | description="You've reached the enemys Station and they haven't seen you yet. |
---|
107 | |
---|
108 | Ahead you see the first little patrol. |
---|
109 | There are two little battleships and also two unarmed ships. |
---|
110 | The unarmed could not attack you. So first destroy the battleships!" |
---|
111 | failMessage="You've lost all your ships!" |
---|
112 | completeMessage="Well done!" /> |
---|
113 | <complete-effects> |
---|
114 | <AddQuest questId="spacefight.guard2" /> |
---|
115 | </complete-effects> |
---|
116 | </LocalQuest> |
---|
117 | |
---|
118 | <LocalQuest id="spacefight.upgrade1"> |
---|
119 | <QuestDescription |
---|
120 | title="Prepare for the fight (optional)" |
---|
121 | description="Your friends has an arsenal left behind near by your position. |
---|
122 | perhaps you find something useful there... |
---|
123 | Hint: look for a big asteroid." |
---|
124 | failMessage="You've lost all your ships!" |
---|
125 | completeMessage="Your ship is prepared best for the second and last guard on the way to the mainship. |
---|
126 | Now attack the second guard!" /> |
---|
127 | </LocalQuest> |
---|
128 | |
---|
129 | <LocalQuest id="spacefight.guard2"> |
---|
130 | <QuestDescription |
---|
131 | title="The second guard!" |
---|
132 | description="There is also a second guard. The blinking light shows you the direction. |
---|
133 | Destroy also this guard!" |
---|
134 | failMessage="You've lost all your ships!" |
---|
135 | completeMessage="" /> |
---|
136 | </LocalQuest> |
---|
137 | |
---|
138 | <LocalQuest id="spacefight.escape"> |
---|
139 | <QuestDescription |
---|
140 | title="Catch the messenger!" |
---|
141 | description="A messenger is on the way to warn the troups of the mainship. |
---|
142 | Destroy him before he is near by the mainship. |
---|
143 | Else the fight against the enemys troups will be much more difficult." |
---|
144 | failMessage="The messenger has reached the mainship. |
---|
145 | Prepare to fight against a strong enmey!" |
---|
146 | completeMessage="Well done! Now the element of surprise will be ours!" /> |
---|
147 | </LocalQuest> |
---|
148 | |
---|
149 | <!-- 2 different possibilitys --> |
---|
150 | <!-- Spion is destroyed --> |
---|
151 | <LocalQuest id="spacefight.mainfight(min)" > |
---|
152 | <QuestDescription |
---|
153 | title="The big fight!" |
---|
154 | description="Now the time is come! |
---|
155 | You've done all you can to prepare you for this spacebattle. |
---|
156 | Let us see, if it was enough. |
---|
157 | |
---|
158 | ATTACK!!!" |
---|
159 | failMessage="You've lost all your ships!" |
---|
160 | completeMessage="YEEEHAAA! |
---|
161 | You managed it! For that you will get the golden medal of the united space armies." /> |
---|
162 | <complete-effects> |
---|
163 | <AddQuest questId="spacefight.rescue" /> |
---|
164 | <!-- |
---|
165 | <BlinkingBillboard position="-12100, -22000, 25000" color="1.0,1.0,1.0" frequency=0.6 amplitude=2 material="Examples/Flare" visibility="true" /> |
---|
166 | --> |
---|
167 | </complete-effects> |
---|
168 | </LocalQuest> |
---|
169 | |
---|
170 | <!-- Spion isn't destroyed --> |
---|
171 | <LocalQuest id="spacefight.mainfight(max)" > |
---|
172 | <QuestDescription |
---|
173 | title="The big fight!" |
---|
174 | description="Now the time is come! |
---|
175 | You've done all you can to prepare you for this spacebattle. |
---|
176 | Unfortunately the spion has alert the mainship. So the soldiers will also be prepared for you. |
---|
177 | But you can manage it. |
---|
178 | Good luck!" |
---|
179 | failMessage="You've lost all your ships!" |
---|
180 | completeMessage="YEEEHAAA! |
---|
181 | You managed it! For that you will get the golden medal of the united space armies." /> |
---|
182 | <complete-effects> |
---|
183 | <AddQuest questId="spacefight.rescue" /> |
---|
184 | <!-- |
---|
185 | <BlinkingBillboard position="-12100, -22000, 25000" color="1.0,1.0,1.0" frequency=0.6 amplitude=2 material="Examples/Flare" visibility="true" /> |
---|
186 | --> |
---|
187 | </complete-effects> |
---|
188 | </LocalQuest> |
---|
189 | <!-- --> |
---|
190 | |
---|
191 | <LocalQuest id="spacefight.rescue" > |
---|
192 | <QuestDescription |
---|
193 | title="Rescue and place the bomb" |
---|
194 | description="Now you have to free the commander and place a bomb in the pirates' mainship." |
---|
195 | failMessage="You've lost all your ships!" |
---|
196 | completeMessage="" /> |
---|
197 | <complete-effects> |
---|
198 | <AddQuest questId="spacefight.moveAway" /> |
---|
199 | </complete-effects> |
---|
200 | </LocalQuest> |
---|
201 | |
---|
202 | <LocalQuest id="spacefight.moveAway" > |
---|
203 | <QuestDescription |
---|
204 | title="Get away!" |
---|
205 | description="Get away of the mainship before the bomb detonates." |
---|
206 | failMessage="You've lost all your ships!" |
---|
207 | completeMessage="Done!" /> |
---|
208 | </LocalQuest> |
---|
209 | |
---|
210 | <!-- GRAND EXPLOSION IF POSSIBLE --> |
---|
211 | <!-- Next Part --> |
---|
212 | |
---|
213 | |
---|
214 | <!-- ---------------------------------------------------------------------- --> |
---|
215 | |
---|
216 | <!-- QuestEffectBeacon's --> |
---|
217 | <!-- START --> |
---|
218 | <QuestEffectBeacon times=0> |
---|
219 | <effects> |
---|
220 | <AddQuest questId="spacefight.guard1" /> |
---|
221 | </effects> |
---|
222 | <events> |
---|
223 | <execute> |
---|
224 | <EventListener event=spawntrigger2 /> |
---|
225 | </execute> |
---|
226 | </events> |
---|
227 | </QuestEffectBeacon> |
---|
228 | |
---|
229 | <QuestEffectBeacon times=0> |
---|
230 | <events> |
---|
231 | <execute> |
---|
232 | <EventListener event="flying1" /> |
---|
233 | </execute> |
---|
234 | </events> |
---|
235 | <effects> |
---|
236 | <CompleteQuest questId="spacefight.guard1" /> |
---|
237 | </effects> |
---|
238 | </QuestEffectBeacon> |
---|
239 | |
---|
240 | <SimpleNotification message="The blinking light shows you the way!" broadcast="true"> |
---|
241 | <events> |
---|
242 | <trigger> |
---|
243 | <EventListener event="flying1" /> |
---|
244 | </trigger> |
---|
245 | </events> |
---|
246 | </SimpleNotification> |
---|
247 | |
---|
248 | |
---|
249 | <BlinkingBillboard position="13500, 2500, 10500" color="1.0, 1.0, 0.05" frequency=0.6 amplitude=10 material="Examples/Flare" > |
---|
250 | <events> |
---|
251 | <visibility> |
---|
252 | <EventTrigger> |
---|
253 | <EventTrigger invert=true> |
---|
254 | <events> |
---|
255 | <trigger> |
---|
256 | <EventListener event="flying2" /> |
---|
257 | </trigger> |
---|
258 | </events> |
---|
259 | </EventTrigger> |
---|
260 | <events> |
---|
261 | <trigger> |
---|
262 | <EventListener event="flying1" /> |
---|
263 | </trigger> |
---|
264 | </events> |
---|
265 | </EventTrigger> |
---|
266 | </visibility> |
---|
267 | </events> |
---|
268 | </BlinkingBillboard> |
---|
269 | |
---|
270 | <!-- Drone (optional) --> |
---|
271 | <QuestEffectBeacon times=0> |
---|
272 | <effects> |
---|
273 | <AddQuest questId="spacefight.upgrade1" /> |
---|
274 | </effects> |
---|
275 | <events> |
---|
276 | <execute> |
---|
277 | <EventListener event="droneTrigger" /> |
---|
278 | </execute> |
---|
279 | </events> |
---|
280 | </QuestEffectBeacon> |
---|
281 | |
---|
282 | <QuestEffectBeacon times=0> |
---|
283 | <effects> |
---|
284 | <CompleteQuest questId="spacefight.upgrade1" /> |
---|
285 | </effects> |
---|
286 | <events> |
---|
287 | <execute> |
---|
288 | <EventListener event="drone" /> |
---|
289 | </execute> |
---|
290 | </events> |
---|
291 | </QuestEffectBeacon> |
---|
292 | |
---|
293 | <!-- Guard 2 --> |
---|
294 | <QuestEffectBeacon times=0> |
---|
295 | <effects> |
---|
296 | <CompleteQuest questId="spacefight.guard2" /> |
---|
297 | </effects> |
---|
298 | <events> |
---|
299 | <execute> |
---|
300 | <EventListener event="flying22" /> |
---|
301 | </execute> |
---|
302 | </events> |
---|
303 | </QuestEffectBeacon> |
---|
304 | <!-- |
---|
305 | <SimpleNotification message="Well done! Catch the spion!" broadcast="true"> |
---|
306 | <events> |
---|
307 | <trigger> |
---|
308 | <EventListener event="flying2" /> |
---|
309 | </trigger> |
---|
310 | </events> |
---|
311 | </SimpleNotification> |
---|
312 | --> |
---|
313 | <!-- ESCAPE --> |
---|
314 | <SimpleNotification message="A spion is startet to the mainship!" broadcast="true"> |
---|
315 | <events> |
---|
316 | <trigger> |
---|
317 | <EventListener event="guard2trigger1" /> |
---|
318 | </trigger> |
---|
319 | </events> |
---|
320 | </SimpleNotification> |
---|
321 | |
---|
322 | <QuestEffectBeacon times=0> |
---|
323 | <effects> |
---|
324 | <AddQuest questId="spacefight.escape" /> |
---|
325 | </effects> |
---|
326 | <events> |
---|
327 | <execute> |
---|
328 | <EventListener event="escape10" /> |
---|
329 | </execute> |
---|
330 | </events> |
---|
331 | </QuestEffectBeacon> |
---|
332 | |
---|
333 | <BlinkingBillboard position="13500, 2500, 10500" color="1.0, 1.0, 0.05" frequency=0.6 amplitude=10 material="Examples/Flare" > |
---|
334 | <events> |
---|
335 | <visibility> |
---|
336 | <EventTrigger> |
---|
337 | <EventTrigger invert=true> |
---|
338 | <events> |
---|
339 | <trigger> |
---|
340 | <EventListener event="flying2" /> |
---|
341 | </trigger> |
---|
342 | </events> |
---|
343 | </EventTrigger> |
---|
344 | <events> |
---|
345 | <trigger> |
---|
346 | <EventListener event="flying1" /> |
---|
347 | </trigger> |
---|
348 | </events> |
---|
349 | </EventTrigger> |
---|
350 | </visibility> |
---|
351 | </events> |
---|
352 | </BlinkingBillboard> |
---|
353 | |
---|
354 | <!-- ESCAPE ENDING --> |
---|
355 | <!-- Spion escaped --> |
---|
356 | <QuestEffectBeacon times=0> |
---|
357 | <effects> |
---|
358 | <CompleteQuest questId="spacefight.escape" /> |
---|
359 | <AddQuest questId="spacefight.mainfight(max)" /> |
---|
360 | </effects> |
---|
361 | <events> |
---|
362 | <execute> |
---|
363 | <EventListener event="spionTrigger" /> |
---|
364 | </execute> |
---|
365 | </events> |
---|
366 | </QuestEffectBeacon> |
---|
367 | |
---|
368 | <!-- TEST --> |
---|
369 | <QuestEffectBeacon> |
---|
370 | <effects> |
---|
371 | <AddQuest questId="spacefight.escape" /> |
---|
372 | </effects> |
---|
373 | <events> |
---|
374 | <execute> |
---|
375 | <EventListener event=spawntrigger2 /> |
---|
376 | </execute> |
---|
377 | </events> |
---|
378 | </QuestEffectBeacon> |
---|
379 | |
---|
380 | <!-- Spion destroyed --> |
---|
381 | <QuestEffectBeacon> |
---|
382 | <effects> |
---|
383 | <CompleteQuest questId="spacefight.escape" /> |
---|
384 | <AddQuest questId="spacefight.mainfight(min)" /> |
---|
385 | </effects> |
---|
386 | <events> |
---|
387 | <execute> |
---|
388 | <EventListener event="spion5" /> |
---|
389 | </execute> |
---|
390 | </events> |
---|
391 | </QuestEffectBeacon> |
---|
392 | |
---|
393 | <!-- LAST FIGHT --> |
---|
394 | <!-- Spion destroyed --> |
---|
395 | <QuestEffectBeacon> |
---|
396 | <effects> |
---|
397 | <CompleteQuest questId="spacefight.mainfight(min)" /> |
---|
398 | </effects> |
---|
399 | <events> |
---|
400 | <execute> |
---|
401 | <EventListener event="guard3trigger4" /> |
---|
402 | </execute> |
---|
403 | </events> |
---|
404 | </QuestEffectBeacon> |
---|
405 | |
---|
406 | <!-- Spion escaped --> |
---|
407 | <QuestEffectBeacon> |
---|
408 | <effects> |
---|
409 | <CompleteQuest questId="spacefight.mainfight(max)" /> |
---|
410 | </effects> |
---|
411 | <events> |
---|
412 | <execute> |
---|
413 | <EventListener event="guard3trigger6" /> |
---|
414 | </execute> |
---|
415 | </events> |
---|
416 | </QuestEffectBeacon> |
---|
417 | |
---|
418 | <!-- COMMANDER RESCUE --> |
---|
419 | <QuestEffectBeacon> |
---|
420 | <effects> |
---|
421 | <CompleteQuest questId="spacefight.rescue" /> |
---|
422 | </effects> |
---|
423 | <events> |
---|
424 | <execute> |
---|
425 | <EventListener event="dock" /> |
---|
426 | </execute> |
---|
427 | </events> |
---|
428 | </QuestEffectBeacon> |
---|
429 | |
---|
430 | <!-- FLY AWAY --> |
---|
431 | <QuestEffectBeacon> |
---|
432 | <effects> |
---|
433 | <CompleteQuest questId="spacefight.moveAway" /> |
---|
434 | </effects> |
---|
435 | <events> |
---|
436 | <execute> |
---|
437 | <EventListener event="" /> |
---|
438 | </execute> |
---|
439 | </events> |
---|
440 | </QuestEffectBeacon> |
---|
441 | |
---|
442 | <!-- ---------------------------------------------------------------------- --> |
---|
443 | <!-- Helper-Trigger for first guard --> |
---|
444 | <DistanceTrigger name="flying1" position="9000, 0, 0" target="SpaceShip" distance=10000 stayActive="true" delay=0.1 > |
---|
445 | <EventTrigger> |
---|
446 | <events> |
---|
447 | <trigger> |
---|
448 | <EventListener event="guard1trigger4" /> |
---|
449 | </trigger> |
---|
450 | </events> |
---|
451 | </EventTrigger> |
---|
452 | </DistanceTrigger> |
---|
453 | |
---|
454 | <!-- Trigger to activate the upgrade1-Quest --> |
---|
455 | <DistanceTrigger name="droneTrigger" position="13500, 2500, 10500" target="SpaceShip" distance=2000 stayActive="true" delay=0.1 /> |
---|
456 | <SimpleNotification message="Search the drone!?" broadcast="true"> |
---|
457 | <events> |
---|
458 | <trigger> |
---|
459 | <EventListener event="droneTrigger" /> |
---|
460 | </trigger> |
---|
461 | </events> |
---|
462 | </SimpleNotification> |
---|
463 | |
---|
464 | <!-- Helper-Trigger for the drone(s) --> |
---|
465 | <DistanceTrigger name="drone1" position="9750, -5350, 5650" target="SpaceShip" distance=20 stayActive="true" delay=0.1 /> |
---|
466 | <SimpleNotification message="Now your are prepared best!" broadcast="true"> |
---|
467 | <events> |
---|
468 | <trigger> |
---|
469 | <EventListener event="drone1" /> |
---|
470 | </trigger> |
---|
471 | </events> |
---|
472 | </SimpleNotification> |
---|
473 | |
---|
474 | <!-- Helper-Trigger for second guard --> |
---|
475 | <DistanceTrigger name="flying22" position="18000, 5000, 21000" target="SpaceShip" distance=10000 stayActive="true" delay=0.1> |
---|
476 | <EventTrigger> |
---|
477 | <events> |
---|
478 | <trigger> |
---|
479 | <EventListener event="flying2" /> |
---|
480 | </trigger> |
---|
481 | </events> |
---|
482 | </EventTrigger> |
---|
483 | </DistanceTrigger> |
---|
484 | |
---|
485 | <SimpleNotification message="flying2.2" broadcast="true"> |
---|
486 | <events> |
---|
487 | <trigger> |
---|
488 | <EventListener event="flying22" /> |
---|
489 | </trigger> |
---|
490 | </events> |
---|
491 | </SimpleNotification> |
---|
492 | |
---|
493 | <DistanceTrigger name="flying2" position="18000, 5000, 21000" target="SpaceShip" distance=10000 stayActive="true" delay=0.1 > |
---|
494 | <EventTrigger> |
---|
495 | <events> |
---|
496 | <trigger> |
---|
497 | <EventListener event="guard2trigger4" /> |
---|
498 | </trigger> |
---|
499 | </events> |
---|
500 | </EventTrigger> |
---|
501 | </DistanceTrigger> |
---|
502 | |
---|
503 | <SimpleNotification message="flying2" broadcast="true"> |
---|
504 | <events> |
---|
505 | <trigger> |
---|
506 | <EventListener event="flying2" /> |
---|
507 | </trigger> |
---|
508 | </events> |
---|
509 | </SimpleNotification> |
---|
510 | |
---|
511 | <!-- Helper-Trigger for the Escape-Quest --> |
---|
512 | <DistanceTrigger name="escape10" position="18000,5000,21000" target="SpaceShip" distance=10000 stayActive="true" delay=0.1 > |
---|
513 | <EventTrigger> |
---|
514 | <events> |
---|
515 | <trigger> |
---|
516 | <EventListener event="guard2trigger1" /> |
---|
517 | </trigger> |
---|
518 | </events> |
---|
519 | </EventTrigger> |
---|
520 | </DistanceTrigger> |
---|
521 | |
---|
522 | <!-- Helper-Trigger for mainship --> |
---|
523 | <DistanceTrigger name="flying3" position="11000, 3000, 21000" target="SpaceShip" distance=1000 stayActive="true" delay=0.1 /> |
---|
524 | <SimpleNotification message="Mainship sighted!" broadcast="true"> |
---|
525 | <events> |
---|
526 | <trigger> |
---|
527 | <EventListener event="flying3" /> |
---|
528 | </trigger> |
---|
529 | </events> |
---|
530 | </SimpleNotification> |
---|
531 | |
---|
532 | <!-- <DistanceTrigger name="drone2" position="9750, -5350, 5650" target="SpaceShip" distance=20 stay Active="true" delay=0.1 /> --> |
---|
533 | <SimpleNotification message="Now your are prepared best!" broadcast="true"> |
---|
534 | <events> |
---|
535 | <trigger> |
---|
536 | <EventListener event="drone2" /> |
---|
537 | </trigger> |
---|
538 | </events> |
---|
539 | </SimpleNotification> |
---|
540 | |
---|
541 | <!-- DistanceTrigger for spion --> |
---|
542 | <DistanceTrigger name="spionTrigger" position="15000,4000,19000" target="SpaceShip" distance=50 stayActive="true" delay=0.1 /> |
---|
543 | <SimpleNotification message="spion is arrived!" broadcast="true"> |
---|
544 | <events> |
---|
545 | <trigger> |
---|
546 | <EventListener event="spionTrigger" /> |
---|
547 | </trigger> |
---|
548 | </events> |
---|
549 | </SimpleNotification> |
---|
550 | |
---|
551 | <!-- If spion destroyed --> |
---|
552 | <DistanceTrigger name="destroyed" position="8500,-3000,32000" target="SpaceShip" distance=100000 stayActive="true" delay=0.1 > |
---|
553 | <EventTrigger> |
---|
554 | <events> |
---|
555 | <trigger> |
---|
556 | <EventListener event="spion" /> |
---|
557 | </trigger> |
---|
558 | </events> |
---|
559 | </EventTrigger> |
---|
560 | </DistanceTrigger> |
---|
561 | <SimpleNotification message="Spion destroyed!" broadcast="true"> |
---|
562 | <events> |
---|
563 | <trigger> |
---|
564 | <EventListener event="destroyed" /> |
---|
565 | </trigger> |
---|
566 | </events> |
---|
567 | </SimpleNotification> |
---|
568 | |
---|
569 | <BlinkingBillboard position="0,-10000,42000" frequency=0.5 color="1.0,1.0,1.0" amplitude=10 material="Examples/Flare" /> |
---|
570 | |
---|
571 | |
---|
572 | <!-- Rescue the commander --> |
---|
573 | <DistanceTrigger name="dock" position="-12100, -22000, 25000" target="SpaceShip" distance=100 stayActive="true" delay=0 /> |
---|
574 | |
---|
575 | <!-- ----------------------------------------------------- --> |
---|
576 | |
---|
577 | <!-- EVENTTRIGGER --> |
---|
578 | |
---|
579 | <!-- For Guard 1 --> |
---|
580 | <!-- @Triggers: attacktriggerX <-> X enemies destroyed , X is an element of [1,4] --> |
---|
581 | <EventTrigger name="guard1trigger4" activations="1" stayactive="true" delay=0.1> |
---|
582 | <events> |
---|
583 | <trigger> |
---|
584 | <EventListener event="firstPatrol" /> |
---|
585 | </trigger> |
---|
586 | </events> |
---|
587 | <EventTrigger name="guard1trigger3" activations="1" stayactive="true" delay=0.1> |
---|
588 | <events> |
---|
589 | <trigger> |
---|
590 | <EventListener event="firstPatrol" /> |
---|
591 | </trigger> |
---|
592 | </events> |
---|
593 | <EventTrigger name="guard1trigger2" activations="1" stayactive="true" delay=0.1> |
---|
594 | <events> |
---|
595 | <trigger> |
---|
596 | <EventListener event="firstPatrol" /> |
---|
597 | </trigger> |
---|
598 | </events> |
---|
599 | <EventTrigger name="guard1trigger1" activations="1" stayactive="true" delay=0.1> |
---|
600 | <events> |
---|
601 | <trigger> |
---|
602 | <EventListener event="firstPatrol" /> |
---|
603 | </trigger> |
---|
604 | </events> |
---|
605 | </EventTrigger> |
---|
606 | </EventTrigger> |
---|
607 | </EventTrigger> |
---|
608 | </EventTrigger> |
---|
609 | |
---|
610 | <!-- For Guard 2 --> |
---|
611 | <!-- @Triggers: attacktriggerX <-> X enemies destroyed , X is an element of [1,4] --> |
---|
612 | <EventTrigger name="guard2trigger4" activations="1" stayactive="true" delay=0.1> |
---|
613 | <events> |
---|
614 | <trigger> |
---|
615 | <EventListener event="secondPatrol" /> |
---|
616 | </trigger> |
---|
617 | </events> |
---|
618 | <EventTrigger name="guard2trigger3" activations="1" stayactive="true" delay=0.1> |
---|
619 | <events> |
---|
620 | <trigger> |
---|
621 | <EventListener event="secondPatrol" /> |
---|
622 | </trigger> |
---|
623 | </events> |
---|
624 | <EventTrigger name="guard2trigger2" activations="1" stayactive="true" delay=0.1> |
---|
625 | <events> |
---|
626 | <trigger> |
---|
627 | <EventListener event="secondPatrol" /> |
---|
628 | </trigger> |
---|
629 | </events> |
---|
630 | <EventTrigger name="guard2trigger1" activations="1" stayactive="true" delay=0.1> |
---|
631 | <events> |
---|
632 | <trigger> |
---|
633 | <EventListener event="secondPatrol" /> |
---|
634 | </trigger> |
---|
635 | </events> |
---|
636 | </EventTrigger> |
---|
637 | </EventTrigger> |
---|
638 | </EventTrigger> |
---|
639 | </EventTrigger> |
---|
640 | |
---|
641 | |
---|
642 | |
---|
643 | <!-- For Escape --> |
---|
644 | <EventTrigger name="spion5" activations="1" stayactive="true" delay=0.1 > |
---|
645 | <events> |
---|
646 | <trigger> |
---|
647 | <EventListener event="spion" /> |
---|
648 | </trigger> |
---|
649 | </events> |
---|
650 | </EventTrigger> |
---|
651 | |
---|
652 | <SimpleNotification message="spion5" broadcast="true"> |
---|
653 | <events> |
---|
654 | <trigger> |
---|
655 | <EventListener event="spion5" /> |
---|
656 | </trigger> |
---|
657 | </events> |
---|
658 | </SimpleNotification> |
---|
659 | |
---|
660 | <!-- For last fight --> |
---|
661 | <EventTrigger name="guard3trigger6" activations="1" stayactive="true" delay=0.1 > |
---|
662 | <events> |
---|
663 | <trigger> |
---|
664 | <EventListener event="lastGuard" /> |
---|
665 | </trigger> |
---|
666 | </events> |
---|
667 | <EventTrigger name="guard3trigger5" activations="1" stayactive="true" delay=0.1 > |
---|
668 | <events> |
---|
669 | <trigger> |
---|
670 | <EventListener event="lastGuard" /> |
---|
671 | </trigger> |
---|
672 | </events> |
---|
673 | <EventTrigger name="guard3trigger4" activations="1" stayactive="true" delay=0.1 > |
---|
674 | <events> |
---|
675 | <trigger> |
---|
676 | <EventListener event="lastGuard" /> |
---|
677 | </trigger> |
---|
678 | </events> |
---|
679 | <EventTrigger name="guard3trigger3" activations="1" stayactive="true" delay=0.1 > |
---|
680 | <events> |
---|
681 | <trigger> |
---|
682 | <EventListener event="lastGuard" /> |
---|
683 | </trigger> |
---|
684 | </events> |
---|
685 | <EventTrigger name="guard3trigger2" activations="1" stayactive="true" delay=0.1 > |
---|
686 | <events> |
---|
687 | <trigger> |
---|
688 | <EventListener event="lastGuard" /> |
---|
689 | </trigger> |
---|
690 | </events> |
---|
691 | <EventTrigger name="guard3trigger1" activations="1" stayactive="true" delay=0.1 > |
---|
692 | <events> |
---|
693 | <trigger> |
---|
694 | <EventListener event="lastGuard" /> |
---|
695 | </trigger> |
---|
696 | </events> |
---|
697 | </EventTrigger> |
---|
698 | </EventTrigger> |
---|
699 | </EventTrigger> |
---|
700 | </EventTrigger> |
---|
701 | </EventTrigger> |
---|
702 | </EventTrigger> |
---|
703 | |
---|
704 | <!-- ----------------------------------------------------- --> |
---|
705 | |
---|
706 | <!-- Passive Piraten: Guard 1 --> |
---|
707 | |
---|
708 | <SpaceShip position="8000,1000,0" lookat="-1,0,0" name="firstPatrol" radarname="Patrol"> |
---|
709 | <events> |
---|
710 | <visibility> |
---|
711 | <EventListener event=spawntrigger2 /> |
---|
712 | </visibility> |
---|
713 | </events> |
---|
714 | <templates> |
---|
715 | <Template link=spaceshippirate /> |
---|
716 | </templates> |
---|
717 | <controller> |
---|
718 | <WaypointController team=1> |
---|
719 | <waypoints> |
---|
720 | <Model mesh="cube.mesh" scale=0 position="8000,-1000,0" /> |
---|
721 | <Model mesh="cube.mesh" scale=0 position="8000,1000,0" /> |
---|
722 | </waypoints> |
---|
723 | </WaypointController> |
---|
724 | </controller> |
---|
725 | </SpaceShip> |
---|
726 | |
---|
727 | <SpaceShip position="8000,0,0" lookat="-1,0,0" name="firstPatrol" radarname="Patrol"> |
---|
728 | <events> |
---|
729 | <visibility> |
---|
730 | <EventListener event=spawntrigger2 /> |
---|
731 | </visibility> |
---|
732 | </events> |
---|
733 | <templates> |
---|
734 | <Template link=spaceshippirate /> |
---|
735 | </templates> |
---|
736 | <controller> |
---|
737 | <WaypointController team=1> |
---|
738 | <waypoints> |
---|
739 | <Model mesh="cube.mesh" scale=0 position="8000,0,-1000" /> |
---|
740 | <Model mesh="cube.mesh" scale=0 position="8000,0,1000" /> |
---|
741 | </waypoints> |
---|
742 | </WaypointController> |
---|
743 | </controller> |
---|
744 | </SpaceShip> |
---|
745 | |
---|
746 | |
---|
747 | <!-- Angreiffende Piraten: Guard 1 --> |
---|
748 | |
---|
749 | <SpaceShip position="8000,-1000,1000" lookat="8000,1000,-1000" name="firstPatrol" visible="true" radarname="Patrol" > |
---|
750 | <events> |
---|
751 | <visibility> |
---|
752 | <EventListener event=spawntrigger2 /> |
---|
753 | </visibility> |
---|
754 | </events> |
---|
755 | <templates> |
---|
756 | <Template link=spaceshippirate /> |
---|
757 | </templates> |
---|
758 | <controller> |
---|
759 | <WaypointPatrolController alertnessradius=2000 team=1 active=false> |
---|
760 | <waypoints> |
---|
761 | <Model mesh="cube.mesh" scale=0 position="8000,1000,-1000" /> |
---|
762 | <Model mesh="cube.mesh" scale=0 position="8000,-1000,1000" /> |
---|
763 | </waypoints> |
---|
764 | <events> |
---|
765 | <activity> |
---|
766 | <EventListener event=spawntrigger2 /> |
---|
767 | </activity> |
---|
768 | </events> |
---|
769 | </WaypointPatrolController> |
---|
770 | </controller> |
---|
771 | </SpaceShip> |
---|
772 | |
---|
773 | <SpaceShip position="8000,-500,-500" lookat="8000,1000,1000" name="firstPatrol" visible="true" radarname="Patrol"> |
---|
774 | <events> |
---|
775 | <visibility> |
---|
776 | <EventListener event=spawntrigger2 /> |
---|
777 | </visibility> |
---|
778 | </events> |
---|
779 | <templates> |
---|
780 | <Template link=spaceshippirate /> |
---|
781 | </templates> |
---|
782 | <controller> |
---|
783 | <WaypointPatrolController alertnessradius=2000 team=1 active=false> |
---|
784 | <waypoints> |
---|
785 | <Model mesh="cube.mesh" scale=0 position="8000,1000,1000" /> |
---|
786 | <Model mesh="cube.mesh" scale=0 position="8000,-1000,-1000" /> |
---|
787 | </waypoints> |
---|
788 | <events> |
---|
789 | <activity> |
---|
790 | <EventListener event=spawntrigger2 /> |
---|
791 | </activity> |
---|
792 | </events> |
---|
793 | </WaypointPatrolController> |
---|
794 | </controller> |
---|
795 | </SpaceShip> |
---|
796 | |
---|
797 | <!-- Angreiffende Piraten: Guard 2 --> |
---|
798 | <SpaceShip position="19000,5000,18000" lookat="19000,4900,21000" name="secondPatrol" visible="true" radarname="Patrol"> |
---|
799 | <events> |
---|
800 | <visibility> |
---|
801 | <EventListener event=spawntrigger2 /> <!-- guard1trigger4 --> |
---|
802 | </visibility> |
---|
803 | </events> |
---|
804 | <templates> |
---|
805 | <Template link=spaceshippirate /> |
---|
806 | </templates> |
---|
807 | <controller> |
---|
808 | <WaypointPatrolController alertnessradius=2000 team=1 active=false> |
---|
809 | <waypoints> |
---|
810 | <Model mesh="cube.mesh" scale=0 position="18700,4300,18000" /> |
---|
811 | <Model mesh="cube.mesh" scale=0 position="18000,4000,18000" /> |
---|
812 | <Model mesh="cube.mesh" scale=0 position="17300,4300,18000" /> |
---|
813 | <Model mesh="cube.mesh" scale=0 position="17000,5000,18000" /> |
---|
814 | <Model mesh="cube.mesh" scale=0 position="17300,5700,18000" /> |
---|
815 | <Model mesh="cube.mesh" scale=0 position="18000,6000,18000" /> |
---|
816 | <Model mesh="cube.mesh" scale=0 position="18700,5700,18000" /> |
---|
817 | <Model mesh="cube.mesh" scale=0 position="19000,5000,18000" /> |
---|
818 | </waypoints> |
---|
819 | <events> |
---|
820 | <activity> |
---|
821 | <EventListener event="guard1trigger4" /> |
---|
822 | </activity> |
---|
823 | </events> |
---|
824 | </WaypointPatrolController> |
---|
825 | </controller> |
---|
826 | </SpaceShip> |
---|
827 | |
---|
828 | <SpaceShip position="17000,5000,18000" lookat="17000,5100,21000" name="secondPatrol" visible="true" radarname="Patrol"> |
---|
829 | <events> |
---|
830 | <visibility> |
---|
831 | <EventListener event=spawntrigger2 /> <!-- guard1trigger4 --> |
---|
832 | </visibility> |
---|
833 | </events> |
---|
834 | <templates> |
---|
835 | <Template link=spaceshippirate /> |
---|
836 | </templates> |
---|
837 | <controller> |
---|
838 | <WaypointPatrolController alertnessradius=2000 team=1 active=false> |
---|
839 | <waypoints> |
---|
840 | <Model mesh="cube.mesh" scale=0 position="17300,5700,18000" /> |
---|
841 | <Model mesh="cube.mesh" scale=0 position="18000,6000,18000" /> |
---|
842 | <Model mesh="cube.mesh" scale=0 position="18700,5700,18000" /> |
---|
843 | <Model mesh="cube.mesh" scale=0 position="19000,5000,18000" /> |
---|
844 | <Model mesh="cube.mesh" scale=0 position="18700,4300,18000" /> |
---|
845 | <Model mesh="cube.mesh" scale=0 position="18000,4000,18000" /> |
---|
846 | <Model mesh="cube.mesh" scale=0 position="17300,4300,18000" /> |
---|
847 | <Model mesh="cube.mesh" scale=0 position="17000,5000,18000" /> |
---|
848 | </waypoints> |
---|
849 | <events> |
---|
850 | <activity> |
---|
851 | <EventListener event="guard1trigger4" /> |
---|
852 | </activity> |
---|
853 | </events> |
---|
854 | </WaypointPatrolController> |
---|
855 | </controller> |
---|
856 | </SpaceShip> |
---|
857 | |
---|
858 | <SpaceShip position="18000,4000,18000" lookat="17000,4000,21000" name="secondPatrol" visible="true" radarname="Patrol"> |
---|
859 | <events> |
---|
860 | <visibility> |
---|
861 | <EventListener event=spawntrigger2 /> <!-- guard1trigger4 --> |
---|
862 | </visibility> |
---|
863 | </events> |
---|
864 | <templates> |
---|
865 | <Template link=spaceshippirate /> |
---|
866 | </templates> |
---|
867 | <controller> |
---|
868 | <WaypointPatrolController alertnessradius=2000 team=1 active=false> |
---|
869 | <waypoints> |
---|
870 | <Model mesh="cube.mesh" scale=0 position="17300,4300,18000" /> |
---|
871 | <Model mesh="cube.mesh" scale=0 position="17000,5000,18000" /> |
---|
872 | <Model mesh="cube.mesh" scale=0 position="17300,5700,18000" /> |
---|
873 | <Model mesh="cube.mesh" scale=0 position="18000,6000,18000" /> |
---|
874 | <Model mesh="cube.mesh" scale=0 position="18700,5700,18000" /> |
---|
875 | <Model mesh="cube.mesh" scale=0 position="19000,5000,18000" /> |
---|
876 | <Model mesh="cube.mesh" scale=0 position="18700,4300,18000" /> |
---|
877 | <Model mesh="cube.mesh" scale=0 position="18000,4000,18000" /> |
---|
878 | </waypoints> |
---|
879 | <events> |
---|
880 | <activity> |
---|
881 | <EventListener event="guard1trigger4" /> |
---|
882 | </activity> |
---|
883 | </events> |
---|
884 | </WaypointPatrolController> |
---|
885 | </controller> |
---|
886 | </SpaceShip> |
---|
887 | |
---|
888 | <SpaceShip position="18000,6000,18000" lookat="19000,6000,21000" name="secondPatrol" visible="true" radarname="Patrol"> |
---|
889 | <events> |
---|
890 | <visibility> |
---|
891 | <EventListener event=spawntrigger2 /> <!-- guard1trigger4 --> |
---|
892 | </visibility> |
---|
893 | </events> |
---|
894 | <templates> |
---|
895 | <Template link=spaceshippirate /> |
---|
896 | </templates> |
---|
897 | <controller> |
---|
898 | <WaypointPatrolController alertnessradius=2000 team=1 active=false> |
---|
899 | <waypoints> |
---|
900 | <Model mesh="cube.mesh" scale=0 position="18700,5700,18000" /> |
---|
901 | <Model mesh="cube.mesh" scale=0 position="19000,5000,18000" /> |
---|
902 | <Model mesh="cube.mesh" scale=0 position="18700,4300,18000" /> |
---|
903 | <Model mesh="cube.mesh" scale=0 position="18000,4000,18000" /> |
---|
904 | <Model mesh="cube.mesh" scale=0 position="17300,4300,18000" /> |
---|
905 | <Model mesh="cube.mesh" scale=0 position="17000,5000,18000" /> |
---|
906 | <Model mesh="cube.mesh" scale=0 position="17300,5700,18000" /> |
---|
907 | <Model mesh="cube.mesh" scale=0 position="18000,6000,18000" /> |
---|
908 | </waypoints> |
---|
909 | <events> |
---|
910 | <activity> |
---|
911 | <EventListener event="guard1trigger4" /> |
---|
912 | </activity> |
---|
913 | </events> |
---|
914 | </WaypointPatrolController> |
---|
915 | </controller> |
---|
916 | </SpaceShip> |
---|
917 | |
---|
918 | <!-- Escape-Ship (Spion) --> |
---|
919 | <SpaceShip position="17000,4000,19000" lookat="-12000, -22000, 25000" name="spion" visible="true" radarname="Spion" > |
---|
920 | <events> |
---|
921 | <visibility> |
---|
922 | <EventListener event="guard2trigger1" /> |
---|
923 | </visibility> |
---|
924 | </events> |
---|
925 | <templates> |
---|
926 | <Template link=spaceshippirate /> |
---|
927 | </templates> |
---|
928 | <controller> |
---|
929 | <WaypointController team=1> |
---|
930 | <waypoints> |
---|
931 | <Model mesh="cube.mesh" scale=0 position="15000,4000,19000" /> <!-- "-7000,-10000,42000" --> |
---|
932 | <Model mesh="cube.mesh" scale=0 position="-12000, -22000, 25000" /> |
---|
933 | </waypoints> |
---|
934 | <events> |
---|
935 | <activity> |
---|
936 | <EventListener event="guard2trigger1" /> |
---|
937 | </activity> |
---|
938 | </events> |
---|
939 | </WaypointController> |
---|
940 | </controller> |
---|
941 | <!-- |
---|
942 | <attached> |
---|
943 | <DistanceTriggerBeacon name="spionBeacon" /> |
---|
944 | </attached> |
---|
945 | --> |
---|
946 | </SpaceShip> |
---|
947 | |
---|
948 | <!-- Mainship - Pirates --> |
---|
949 | |
---|
950 | <SpaceShip position="-12000, -22000, 26000" lookat="-12000, -21300, 25700" name="lastGuard" visible="true" radarname="Pirate" > |
---|
951 | <events> |
---|
952 | <visibility> |
---|
953 | <EventListener event="guard2trigger4" /> |
---|
954 | </visibility> |
---|
955 | </events> |
---|
956 | <templates> |
---|
957 | <Template link=spaceshippirate /> |
---|
958 | </templates> |
---|
959 | <controller> |
---|
960 | <WaypointController team=1> |
---|
961 | <waypoints> |
---|
962 | <Model mesh="cube.mesh" scale=0 position="-12000, -21300, 25700" /> |
---|
963 | <Model mesh="cube.mesh" scale=0 position="-12000, -21000, 25000" /> |
---|
964 | <Model mesh="cube.mesh" scale=0 position="-12000, -21300, 24300" /> |
---|
965 | <Model mesh="cube.mesh" scale=0 position="-12000, -22000, 24000" /> |
---|
966 | <Model mesh="cube.mesh" scale=0 position="-12000, -22700, 24300" /> |
---|
967 | <Model mesh="cube.mesh" scale=0 position="-12000, -23000, 25000" /> |
---|
968 | <Model mesh="cube.mesh" scale=0 position="-12000, -22700, 25700" /> |
---|
969 | <Model mesh="cube.mesh" scale=0 position="-12000, -22000, 25000" /> |
---|
970 | </waypoints> |
---|
971 | <events> |
---|
972 | <activity> |
---|
973 | <EventListener event="guard2trigger4" /> |
---|
974 | </activity> |
---|
975 | </events> |
---|
976 | </WaypointController> |
---|
977 | </controller> |
---|
978 | </SpaceShip> |
---|
979 | |
---|
980 | <SpaceShip position="-12000, -21000, 25000" lookat="-12000, -21300, 24300" name="lastGuard" visible="true" radarname="Pirate" > |
---|
981 | <events> |
---|
982 | <visibility> |
---|
983 | <EventListener event="guard2trigger4" /> |
---|
984 | </visibility> |
---|
985 | </events> |
---|
986 | <templates> |
---|
987 | <Template link=spaceshippirate /> |
---|
988 | </templates> |
---|
989 | <controller> |
---|
990 | <WaypointController team=1> |
---|
991 | <waypoints> |
---|
992 | <Model mesh="cube.mesh" scale=0 position="-12000, -21300, 24300" /> |
---|
993 | <Model mesh="cube.mesh" scale=0 position="-12000, -22000, 24000" /> |
---|
994 | <Model mesh="cube.mesh" scale=0 position="-12000, -22700, 24300" /> |
---|
995 | <Model mesh="cube.mesh" scale=0 position="-12000, -23000, 25000" /> |
---|
996 | <Model mesh="cube.mesh" scale=0 position="-12000, -22700, 25700" /> |
---|
997 | <Model mesh="cube.mesh" scale=0 position="-12000, -22000, 25000" /> |
---|
998 | <Model mesh="cube.mesh" scale=0 position="-12000, -21300, 25700" /> |
---|
999 | <Model mesh="cube.mesh" scale=0 position="-12000, -21000, 25000" /> |
---|
1000 | </waypoints> |
---|
1001 | <events> |
---|
1002 | <activity> |
---|
1003 | <EventListener event="guard2trigger4" /> |
---|
1004 | </activity> |
---|
1005 | </events> |
---|
1006 | </WaypointController> |
---|
1007 | </controller> |
---|
1008 | </SpaceShip> |
---|
1009 | |
---|
1010 | <SpaceShip position="-12000, -22000, 24000" lookat="-12000, -22700, 24300" name="lastGuard" visible="true" radarname="Pirate" > |
---|
1011 | <events> |
---|
1012 | <visibility> |
---|
1013 | <EventListener event="guard2trigger4" /> |
---|
1014 | </visibility> |
---|
1015 | </events> |
---|
1016 | <templates> |
---|
1017 | <Template link=spaceshippirate /> |
---|
1018 | </templates> |
---|
1019 | <controller> |
---|
1020 | <WaypointController team=1> |
---|
1021 | <waypoints> |
---|
1022 | <Model mesh="cube.mesh" scale=0 position="-12000, -22700, 24300" /> |
---|
1023 | <Model mesh="cube.mesh" scale=0 position="-12000, -23000, 25000" /> |
---|
1024 | <Model mesh="cube.mesh" scale=0 position="-12000, -22700, 25700" /> |
---|
1025 | <Model mesh="cube.mesh" scale=0 position="-12000, -22000, 25000" /> |
---|
1026 | <Model mesh="cube.mesh" scale=0 position="-12000, -21300, 25700" /> |
---|
1027 | <Model mesh="cube.mesh" scale=0 position="-12000, -21000, 25000" /> |
---|
1028 | <Model mesh="cube.mesh" scale=0 position="-12000, -21300, 24300" /> |
---|
1029 | <Model mesh="cube.mesh" scale=0 position="-12000, -22000, 24000" /> |
---|
1030 | </waypoints> |
---|
1031 | <events> |
---|
1032 | <activity> |
---|
1033 | <EventListener event="guard2trigger4" /> |
---|
1034 | </activity> |
---|
1035 | </events> |
---|
1036 | </WaypointController> |
---|
1037 | </controller> |
---|
1038 | </SpaceShip> |
---|
1039 | |
---|
1040 | <SpaceShip position="-12000, -23000, 25000" lookat="-12000, -22700, 25700" name="lastGuard" visible="true" radarname="Pirate" > |
---|
1041 | <events> |
---|
1042 | <visibility> |
---|
1043 | <EventListener event="guard2trigger4" /> |
---|
1044 | </visibility> |
---|
1045 | </events> |
---|
1046 | <templates> |
---|
1047 | <Template link=spaceshippirate /> |
---|
1048 | </templates> |
---|
1049 | <controller> |
---|
1050 | <WaypointController team=1> |
---|
1051 | <waypoints> |
---|
1052 | <Model mesh="cube.mesh" scale=0 position="-12000, -22700, 25700" /> |
---|
1053 | <Model mesh="cube.mesh" scale=0 position="-12000, -22000, 25000" /> |
---|
1054 | <Model mesh="cube.mesh" scale=0 position="-12000, -21300, 25700" /> |
---|
1055 | <Model mesh="cube.mesh" scale=0 position="-12000, -21000, 25000" /> |
---|
1056 | <Model mesh="cube.mesh" scale=0 position="-12000, -21300, 24300" /> |
---|
1057 | <Model mesh="cube.mesh" scale=0 position="-12000, -22000, 24000" /> |
---|
1058 | <Model mesh="cube.mesh" scale=0 position="-12000, -22700, 24300" /> |
---|
1059 | <Model mesh="cube.mesh" scale=0 position="-12000, -23000, 25000" /> |
---|
1060 | </waypoints> |
---|
1061 | <events> |
---|
1062 | <activity> |
---|
1063 | <EventListener event="guard2trigger4" /> |
---|
1064 | </activity> |
---|
1065 | </events> |
---|
1066 | </WaypointController> |
---|
1067 | </controller> |
---|
1068 | </SpaceShip> |
---|
1069 | |
---|
1070 | <!-- Additional pirates if the spion has warned the mainship --> |
---|
1071 | <SpaceShip position="-11700, -21700, 25000" lookat="-11000, -22000, 25000" name="lastGuard" visible="true" radarname="Pirate" > |
---|
1072 | <events> |
---|
1073 | <visibility> |
---|
1074 | <EventListener event="escaped" /> |
---|
1075 | </visibility> |
---|
1076 | </events> |
---|
1077 | <templates> |
---|
1078 | <Template link=spaceshippirate /> |
---|
1079 | </templates> |
---|
1080 | <controller> |
---|
1081 | <WaypointController team=1> |
---|
1082 | <waypoints> |
---|
1083 | <Model mesh="cube.mesh" scale=0 position="-11000, -22000, 25000" /> |
---|
1084 | <Model mesh="cube.mesh" scale=0 position="-11300, -22700, 25000" /> |
---|
1085 | <Model mesh="cube.mesh" scale=0 position="-12000, -23000, 25000" /> |
---|
1086 | <Model mesh="cube.mesh" scale=0 position="-12700, -22700, 25000" /> |
---|
1087 | <Model mesh="cube.mesh" scale=0 position="-13000, -22000, 25000" /> |
---|
1088 | <Model mesh="cube.mesh" scale=0 position="-12700, -21300, 25000" /> |
---|
1089 | <Model mesh="cube.mesh" scale=0 position="-12000, -21000, 25000" /> |
---|
1090 | <Model mesh="cube.mesh" scale=0 position="-11300, -21300, 25000" /> |
---|
1091 | </waypoints> |
---|
1092 | <events> |
---|
1093 | <activity> |
---|
1094 | <EventListener event="escaped" /> |
---|
1095 | </activity> |
---|
1096 | </events> |
---|
1097 | </WaypointController> |
---|
1098 | </controller> |
---|
1099 | </SpaceShip> |
---|
1100 | |
---|
1101 | <SpaceShip position="-12700, -22700, 25000" lookat="-13000, -22000, 25000" name="lastGuard" visible="true" radarname="Pirate" > |
---|
1102 | <events> |
---|
1103 | <visibility> |
---|
1104 | <EventListener event="escaped" /> |
---|
1105 | </visibility> |
---|
1106 | </events> |
---|
1107 | <templates> |
---|
1108 | <Template link=spaceshippirate /> |
---|
1109 | </templates> |
---|
1110 | <controller> |
---|
1111 | <WaypointController team=1> |
---|
1112 | <waypoints> |
---|
1113 | <Model mesh="cube.mesh" scale=0 position="-13000, -22000, 25000" /> |
---|
1114 | <Model mesh="cube.mesh" scale=0 position="-12700, -21300, 25000" /> |
---|
1115 | <Model mesh="cube.mesh" scale=0 position="-12000, -21000, 25000" /> |
---|
1116 | <Model mesh="cube.mesh" scale=0 position="-11300, -21300, 25000" /> |
---|
1117 | <Model mesh="cube.mesh" scale=0 position="-11000, -22000, 25000" /> |
---|
1118 | <Model mesh="cube.mesh" scale=0 position="-11300, -22700, 25000" /> |
---|
1119 | <Model mesh="cube.mesh" scale=0 position="-12000, -23000, 25000" /> |
---|
1120 | <Model mesh="cube.mesh" scale=0 position="-12700, -22700, 25000" /> |
---|
1121 | </waypoints> |
---|
1122 | <events> |
---|
1123 | <activity> |
---|
1124 | <EventListener event="escaped" /> |
---|
1125 | </activity> |
---|
1126 | </events> |
---|
1127 | </WaypointController> |
---|
1128 | </controller> |
---|
1129 | </SpaceShip> |
---|
1130 | |
---|
1131 | |
---|
1132 | <!-- ----------------------------------------------------- --> |
---|
1133 | |
---|
1134 | <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"/> |
---|
1135 | |
---|
1136 | |
---|
1137 | <!-- ASTEROIDS & ASTEROID-FIELDS --> |
---|
1138 | |
---|
1139 | <!-- Asteroids --> |
---|
1140 | |
---|
1141 | <Model position="9800, -5000, 5700" |
---|
1142 | yaw="90" |
---|
1143 | pitch="-90" |
---|
1144 | roll="0" |
---|
1145 | scale="300" |
---|
1146 | mesh="asteroid_ice.mesh" /> |
---|
1147 | |
---|
1148 | <!-- triple large belt around the planet --> |
---|
1149 | <?lua |
---|
1150 | dofile("includes/asteroidField.lua") |
---|
1151 | asteroidBelt(2000, -250, 9000, 30, 0, 30, 30, 50, 7190, 7800, 250, 1) |
---|
1152 | ?> |
---|
1153 | |
---|
1154 | <?lua |
---|
1155 | dofile("includes/asteroidField.lua") |
---|
1156 | asteroidBelt(2000, -250, 9000, 30, 0, 30, 30, 50, 10000, 11000, 300, 1) |
---|
1157 | ?> |
---|
1158 | |
---|
1159 | <?lua |
---|
1160 | dofile("includes/asteroidField.lua") |
---|
1161 | asteroidBelt(2000, -250, 9000, 30, 0, 30, 30, 50, 14000, 15000, 350, 1) |
---|
1162 | ?> |
---|
1163 | |
---|
1164 | <!-- other asteroid fileds --> |
---|
1165 | |
---|
1166 | <!-- left before guard 1 --> |
---|
1167 | <?lua |
---|
1168 | dofile("includes/asteroidField.lua") |
---|
1169 | asteroidField(-5000, -5000, -20000, 20, 50, 10000, 200, 0) |
---|
1170 | ?> |
---|
1171 | |
---|
1172 | <!-- left behind guard 1 --> |
---|
1173 | <?lua |
---|
1174 | dofile("includes/asteroidField.lua") |
---|
1175 | asteroidField(20000, -10000, -12000, 30, 100, 10000, 200, 0) |
---|
1176 | ?> |
---|
1177 | |
---|
1178 | <!-- between guard 2 & mainship --> |
---|
1179 | <!-- Core --> |
---|
1180 | <?lua |
---|
1181 | dofile("includes/asteroidField.lua") |
---|
1182 | asteroidField(-5000, -10000, 30000, 10, 700, 8000, 80, 0) |
---|
1183 | ?> |
---|
1184 | |
---|
1185 | <!-- Peripherie --> |
---|
1186 | <?lua |
---|
1187 | dofile("includes/asteroidField.lua") |
---|
1188 | asteroidField(-5000, -10000, 30000, 10, 50, 10000, 100, 0) |
---|
1189 | ?> |
---|
1190 | |
---|
1191 | <?lua |
---|
1192 | dofile("includes/asteroidField.lua") |
---|
1193 | asteroidBelt(-10000, -12500, 0, 0, 0, 30, 30, 500, 0, 7850, 150, 0) |
---|
1194 | ?> |
---|
1195 | |
---|
1196 | <!-- PLANETS --> |
---|
1197 | |
---|
1198 | <Planet position="2000,-250,9000" |
---|
1199 | scale=5000 |
---|
1200 | pitch=1 |
---|
1201 | mesh="iceplanet.mesh" |
---|
1202 | atmosphere="atmosphere1" |
---|
1203 | rotationaxis="1,1,0" |
---|
1204 | rotationrate="0.5" |
---|
1205 | atmospheresize=224.0f |
---|
1206 | imagesize=1024.0f |
---|
1207 | mass="10000000" |
---|
1208 | angularDamping=0 |
---|
1209 | collisiondamage=2 |
---|
1210 | enablecollisiondamage=true |
---|
1211 | collisionType="dynamic" /> |
---|
1212 | |
---|
1213 | |
---|
1214 | <BlinkingBillboard position="-7000,-10000,42000" color="1,1,1" frequency=0.6 amplitude=100 material="Examples/Flare" > |
---|
1215 | <events> |
---|
1216 | <visibility> |
---|
1217 | <EventTrigger> |
---|
1218 | <events> |
---|
1219 | <trigger> |
---|
1220 | <EventListener event="spion" /> |
---|
1221 | </trigger> |
---|
1222 | </events> |
---|
1223 | </EventTrigger> |
---|
1224 | </visibility> |
---|
1225 | </events> |
---|
1226 | </BlinkingBillboard> |
---|
1227 | |
---|
1228 | |
---|
1229 | <!-- ----------------Rotating SpaceStation--------------- --> |
---|
1230 | |
---|
1231 | <!-- first guard --> |
---|
1232 | <Pawn team=1 health=50000 position="9000,0,0" direction="0,-1,0" yaw=112 pitch=67 collisionType=dynamic mass=100000 name=station1 radarname="Guard 1" > |
---|
1233 | <events> |
---|
1234 | <visibility> |
---|
1235 | <EventListener event=spawntrigger2 /> |
---|
1236 | </visibility> |
---|
1237 | </events> |
---|
1238 | <attached> |
---|
1239 | <?lua |
---|
1240 | createSpaceStationPar(0,2,1,2,1,4,1,50) |
---|
1241 | ?> |
---|
1242 | </attached> |
---|
1243 | <collisionShapes> |
---|
1244 | <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" /> |
---|
1245 | </collisionShapes> |
---|
1246 | </Pawn> |
---|
1247 | |
---|
1248 | <!-- second guard --> |
---|
1249 | <StaticEntity position="18000,5000,18000" yaw=12 pitch=75> |
---|
1250 | <attached> |
---|
1251 | <?lua |
---|
1252 | createSpaceStationPar(0,2,1,2,1,4,1,50) |
---|
1253 | ?> |
---|
1254 | </attached> |
---|
1255 | </StaticEntity> |
---|
1256 | |
---|
1257 | <!-- ------------------------- Mainship ------------------ --> |
---|
1258 | <Pawn team=1 health=50000 position="13500, 2500, 13000" direction="0,-1,0" collisionType=dynamic mass=100000 name=box radarname = "Mainship" yaw=112 pitch=67> |
---|
1259 | <events> |
---|
1260 | <visibility> |
---|
1261 | <EventListener event=spawntrigger2 /> |
---|
1262 | </visibility> |
---|
1263 | </events> |
---|
1264 | <attached> |
---|
1265 | <?lua |
---|
1266 | createSpaceStationPar(0,2,1,2,1,4,1,50) |
---|
1267 | ?> |
---|
1268 | </attached> |
---|
1269 | <collisionShapes> |
---|
1270 | <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" /> |
---|
1271 | </collisionShapes> |
---|
1272 | </Pawn> |
---|
1273 | |
---|
1274 | |
---|
1275 | <!-- "-12000, -22000, 25000" --> |
---|
1276 | |
---|
1277 | |
---|
1278 | </Scene> |
---|
1279 | </Level> |
---|
1280 | |
---|