Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/cegui0.8_ogre1.9/data/levels/iiJohnVane_Area51UnderFire.oxw @ 12203

Last change on this file since 12203 was 11802, checked in by landauf, 7 years ago

migrated NotificationLayer.lua to cegui 0.8

  • Property svn:eol-style set to native
File size: 68.1 KB
Line 
1<!-- (ii) John Vane : Trip to Area 51 -->
2
3<!--
4To Do:
5- Quest-Problem
6- Time the explosion right and no loops
7- Bigger explosion?
8- If possible, do the scout with DistanceTriggerBeacon
9- DistanceTriggerBeacon for Captain Hood
10-->
11
12<LevelInfo
13 name = "(ii) John Vane : Area 51 Under Fire"
14 description = "John Vane on rampage to free his commander."
15 tags = "mission"
16 screenshot = "emptylevel.png"
17/>
18
19<?lua
20  include("stats.oxo")
21  include("HUDTemplates3.oxo")
22  include("templates/lodInformation.oxt")
23?>
24
25<?lua
26  include("templates/spaceshipAssff2.oxt")
27  include("templates/spaceshipPirate.oxt")
28  include("templates/spaceshipEscort.oxt")
29  include("templates/spaceshipSwallow.oxt")
30  include("templates/pickupRepresentationTemplates.oxt")
31  include("templates/spaceshipCollateralDamage.oxt")
32?>
33<?lua
34    dofile("includes/CuboidSpaceStation.lua")
35?>
36
37<Level
38  gametype = "Mission"
39>
40  <templates>
41    <Template link=lodtemplate_default />
42  </templates>
43
44  <?lua include("includes/notifications.oxi") ?>
45  <NotificationQueueCEGUI
46    name="narrative"
47    targets="simpleNotification"
48    size=3
49    displayTime=4.9
50    position="0.2, 0, 0.1, 0"
51    fontSize="23"
52    fontColor="0.3, 1, 0.2, 0.8"
53    alignment="CentreAligned"
54    displaySize="0.6, 0, 0, 0"
55    />
56
57  <Scene
58    ambientlight = "0.8, 0.8, 0.8"
59    skybox       = "Orxonox/Starbox"
60  >
61  <?lua include("includes/pickups.oxi") ?>
62
63    <Script code="showGUI NotificationLayer false true" needsGraphics="true" times="1"/>
64    <OverlayGroup name="spacefightHUD" scale = "1, 1">
65      <CountDown
66         position    = "0.91, 0.05"
67         pickpoint   = "0.0, 0.0"
68         font        = "ShareTechMono"
69         textsize    = 0.1
70         colour      = "1.0, 1.0, 1.0, 1.0"
71         align       = "center"                 
72         counter     = "10.0"
73         speedfactor = "1.0"
74         active      = "false"
75      >
76        <events>
77          <activity>
78            <EventListener event="dockDelay2" />
79          </activity>
80        </events>
81      </CountDown>
82    </OverlayGroup>
83
84<!-- SPAWNTRIGGER -->
85    <!-- StartPoint  0, 0, 0 -->
86    <SpawnPoint team=0 position="-12470, -21870, 25200" lookat="100, 0, 0" spawnclass=SpaceShip pawndesign=spaceshipcollateraldamage >
87          <events>
88            <activity>
89              <EventListener event="flying12" />
90            </activity>
91          </events>
92    </SpawnPoint>
93    <Billboard position="-10,0,0" material="Portals/Default" />
94    <ForceField position="0, 0, 0" lookat="100, 0, 0" diameter=200 velocity=1800 length=1400 />
95
96    <EventTrigger name="flying12" invert="true" >
97      <events>
98        <trigger>
99          <EventListener event="flying1" />
100        </trigger>
101          </events>
102    </EventTrigger>
103
104    <!-- Second Spawnpoint (after first guard) -->
105    <SpawnPoint team=0 position="13500, 2500, 10500" lookat="18000,5000,18000" spawnclass=SpaceShip pawndesign=spaceshipcollateraldamage >
106      <events>
107            <activity>
108          <EventTrigger>
109        <EventTrigger invert=true >
110          <events>
111            <trigger>
112              <EventListener event="reached" />
113            </trigger>
114          </events>
115        </EventTrigger>
116        <events>
117          <trigger>
118                    <EventListener event="flying1" />
119          </trigger>
120        </events>
121          </EventTrigger>
122            </activity>
123          </events>
124        </SpawnPoint>
125   
126    <!-- Thirth Spawnpoint (when reached Captain Hood) -->
127    <SpawnPoint team=0 position="-4000, -18000, 19000" lookat="-12000, -22000, 25000" spawnclass=SpaceShip pawndesign=spaceshipcollateraldamage >
128      <events>
129        <activity>
130          <EventTrigger>
131            <EventTrigger invert=true >
132              <events>
133                <trigger>
134                  <EventListener event="timerEnd" />
135                </trigger>
136              </events>
137            </EventTrigger>
138            <events>
139              <trigger>
140                <EventListener event="reached" />
141              </trigger>
142            </events>
143          </EventTrigger>
144        </activity>
145      </events>
146    </SpawnPoint>
147
148    <!-- Distance-Spawn-Trigger -->
149    <DistanceTrigger name=spawntrigger2 position="0, 0, 0" target="SpaceShip" distance=10 stayActive="true" delay=0 />
150
151    <!-- Drone pickup -->
152    <PickupSpawner pickup=dronepickup position="9750, -5350, 5650" triggerDistance="100" respawnTime="30" maxSpawnedItems="2" />
153
154    <!-- QUEST DESCRIPTION -->
155    <LocalQuest id="spacefight.guard1">
156        <QuestDescription
157            title="The first guard!"
158            description="You've reached the enemys Station and they haven't seen you yet.
159
160Ahead you see the first little patrol.
161There are two little battleships and also two unarmed ships.
162The unarmed could not attack you. So first destroy the battleships!"
163            failMessage="You've lost all your ships!"
164            completeMessage="Well done!" />
165    </LocalQuest>
166
167    <LocalQuest id="spacefight.upgrade1">
168        <QuestDescription
169            title="Prepare for the fight (optional)"
170            description="Your friends has an arsenal left behind near by your position.
171Perhaps you find something useful there...
172Hint: look for a big asteroid."
173            failMessage="You've lost all your ships!"
174            completeMessage="Your ship is well prepared for the second and last guard on the way to the mainship.
175                Now attack the second guard!" />
176    </LocalQuest>
177
178    <!-- Quest-Problem: Quests couldn't be started and completed --
179    <LocalQuest id="spacefight.guard2">
180        <QuestDescription
181            title="The second guard!"
182            description="There is also a second guard. The blinking light shows you the direction.
183                Destroy also this guard!"
184            failMessage="You've lost all your ships!"
185            completeMessage="" />
186    </LocalQuest>
187
188    <LocalQuest id="spacefight.escape">
189        <QuestDescription
190            title="Catch the messenger!"
191            description="A messenger is on the way to warn the troups of the mainship.
192                Destroy him before he is near by the mainship.
193                Else the fight against the enemys troups will be much more difficult."
194            failMessage="The messenger has reached the mainship.
195                Prepare to fight against a strong enmey!"
196            completeMessage="Well done! Now the element of surprise will be ours!" />
197    </LocalQuest>
198
199    <!-- 2 different possibilitys --
200    <!-- Spion is destroyed --
201    <LocalQuest id="spacefight.mainfight(min)" >
202        <QuestDescription
203            title="The big fight!"
204            description="Now the time is come!
205                You've done all you can to prepare you for this spacebattle.
206                Let us see, if it was enough.
207               
208                ATTACK!!!"
209            failMessage="You've lost all your ships!"
210            completeMessage="YEEEHAAA!
211                You managed it! For that you will get the golden medal of the united space armies." />
212        <complete-effects>
213            <AddQuest questId="spacefight.rescue" />
214        </complete-effects>
215    </LocalQuest>
216
217    <!-- Spion isn't destroyed --
218    <LocalQuest id="spacefight.mainfight(max)" >
219        <QuestDescription
220            title="The big fight!"
221            description="Now the time is come!
222                You've done all you can to prepare you for this spacebattle.
223                Unfortunately the spion has alert the mainship. So the soldiers will also be prepared for you.
224                But you can manage it.
225                Good luck!"
226            failMessage="You've lost all your ships!"
227            completeMessage="YEEEHAAA!
228                You managed it! For that you will get the golden medal of the united space armies." />
229        <complete-effects>
230            <AddQuest questId="spacefight.rescue" />
231        </complete-effects>
232    </LocalQuest>
233
234    <LocalQuest id="spacefight.rescue" >
235        <QuestDescription
236            title="Rescue and place the bomb"
237            description="Now you have to free the commander and place a bomb in the pirates' mainship."
238            failMessage="You've lost all your ships!"
239            completeMessage="" />
240        <complete-effects>
241            <AddQuest questId="spacefight.moveAway" />
242        </complete-effects>
243    </LocalQuest>
244
245    <LocalQuest id="spacefight.moveAway" >
246        <QuestDescription
247            title="Get away!"
248            description="Get away of the mainship before the bomb detonates."
249            failMessage="You've lost all your ships!"
250            completeMessage="Done!" />
251    </LocalQuest>
252
253    <!-- End of Mission -->
254   
255<!-- ---------------------------------------------------------------------- -->
256<!-- QuestEffectBeacon's (not all necessary, because not all Quests work -->
257    <!-- START -->
258    <QuestEffectBeacon times=0>
259        <effects>
260            <AddQuest questId="spacefight.guard1" />
261        </effects>
262        <events>
263            <execute>
264                <EventListener event=spawntrigger2 />
265            </execute>
266        </events>
267    </QuestEffectBeacon>
268
269    <QuestEffectBeacon times=0>
270        <events>
271            <execute>
272                <EventListener event="flying1" />
273            </execute>
274        </events>
275        <effects>
276            <CompleteQuest questId="spacefight.guard1" />
277        </effects>
278    </QuestEffectBeacon>
279
280    <SimpleNotification message="Houston: Well done!"  broadcast="true">
281        <events>
282            <trigger>
283                <EventListener event="flying1" />
284            </trigger>
285        </events>
286    </SimpleNotification>
287
288    <EventTrigger name="flying1delay" activations="1" stayactive="true" delay=5.1 >
289      <events>
290        <trigger>
291          <EventListener event="flying1" />
292        </trigger>
293      </events>
294    </EventTrigger>
295
296    <SimpleNotification message="Houston: The green light shows you the way!"  broadcast="true" >
297        <events>
298            <trigger>
299                <EventListener event="flying1delay" />
300            </trigger>
301        </events>
302    </SimpleNotification>
303
304    <!-- Is activ at flying 1 and again inactive when flying2-->
305    <BlinkingBillboard position="11000, 1000, 7000" colour="0.0, 1.0, 0.0" frequency=0.5 amplitude=10 material="Examples/Flare" >
306      <events>
307        <visibility>
308          <EventTrigger>
309            <EventTrigger invert=true>
310              <events>
311                <trigger>
312                  <EventListener event="flying2" />
313                </trigger>
314              </events>
315            </EventTrigger>
316                <events>
317                  <trigger>
318                    <EventListener event="flying1" />
319                  </trigger>
320                </events>
321              </EventTrigger>
322            </visibility>
323          </events>
324    </BlinkingBillboard>
325   
326    <!-- Drone (optional quest) -->
327    <QuestEffectBeacon times=0>
328        <effects>
329            <AddQuest questId="spacefight.upgrade1" />
330        </effects>
331        <events>
332            <execute>
333                <EventListener event="droneTrigger" />
334            </execute>
335        </events>
336    </QuestEffectBeacon>   
337
338    <QuestEffectBeacon times=0>
339        <effects>
340            <CompleteQuest questId="spacefight.upgrade1" />
341        </effects>
342        <events>
343            <execute>
344                <EventListener event="drone1" />
345            </execute>
346        </events>
347    </QuestEffectBeacon>
348
349    <QuestEffectBeacon times=0>
350        <effects>
351            <CompleteQuest questId="spacefight.upgrade1" />
352        </effects>
353        <events>
354            <execute>
355                <EventListener event="victory" />
356            </execute>
357        </events>
358    </QuestEffectBeacon>
359   
360    <!-- Guard 2 -->
361    <QuestEffectBeacon times=0>
362        <effects>
363            <AddQuest questId="spacefight.guard2" />
364        </effects>
365        <events>
366            <execute>
367                <EventListener event="droneTrigger" />
368            </execute>       
369        </events>
370    </QuestEffectBeacon>
371
372    <QuestEffectBeacon times=0>
373        <effects>
374            <CompleteQuest questId="spacefight.guard2" />
375        </effects>
376        <events>
377            <execute>
378                <EventListener event="flying2" />
379            </execute>       
380        </events>
381    </QuestEffectBeacon>
382
383    <!-- ESCAPE -->
384    <SimpleNotification message="Houston: A scout started to the mainship!"  broadcast="true">
385        <events>
386            <trigger>
387                <EventListener event="guard2trigger1" />
388            </trigger>
389        </events>
390    </SimpleNotification>
391
392    <QuestEffectBeacon times=0>
393        <effects>
394            <AddQuest questId="spacefight.escape" />
395        </effects>
396        <events>
397            <execute>
398                <EventListener event="escape10" />
399            </execute>
400        </events>
401    </QuestEffectBeacon>
402
403    <!-- ESCAPE ENDING -->
404    <!-- Spion escaped -->
405    <QuestEffectBeacon times=0>
406        <effects>
407            <CompleteQuest questId="spacefight.escape" />
408            <AddQuest questId="spacefight.mainfight(max)" />
409        </effects>
410        <events>
411            <execute>
412                <EventListener event="spionTrigger" />
413            </execute>
414        </events>
415    </QuestEffectBeacon>
416
417    <!-- Spion destroyed -->
418    <QuestEffectBeacon>
419        <effects>
420            <CompleteQuest questId="spacefight.escape" />
421            <AddQuest questId="spacefight.mainfight(min)" />
422        </effects>
423        <events>
424            <execute>
425                <EventListener event="spion5" />
426            </execute>
427        </events>
428    </QuestEffectBeacon>
429
430    <!-- LAST FIGHT -->
431    <!-- Spion destroyed -->
432    <QuestEffectBeacon>
433        <effects>
434            <CompleteQuest questId="spacefight.mainfight(min)" />
435        </effects>
436        <events>
437            <execute>
438                <EventListener event="guard3trigger4" />
439            </execute>
440        </events>
441    </QuestEffectBeacon>
442
443    <!-- Spion escaped -->
444    <QuestEffectBeacon>
445        <effects>
446            <CompleteQuest questId="spacefight.mainfight(max)" />
447        </effects>
448        <events>
449            <execute>
450                <EventListener event="guard3trigger6" />
451            </execute>
452        </events>
453    </QuestEffectBeacon>
454
455    <!-- COMMANDER RESCUE -->
456    <QuestEffectBeacon>
457        <effects>
458            <CompleteQuest questId="spacefight.rescue" />
459        </effects>
460        <events>
461            <execute>
462                <EventListener event="dock" />
463            </execute>
464        </events>
465    </QuestEffectBeacon>
466
467    <!-- FLY AWAY -->
468    <QuestEffectBeacon>
469        <effects>
470            <CompleteQuest questId="spacefight.moveAway" />
471        </effects>
472        <events>
473            <execute>
474                <EventListener event="" />
475            </execute>
476        </events>
477    </QuestEffectBeacon>
478
479    <!-- End with explosion -->
480
481<!-- ---------------------------------------------------------------------- -->
482    <!-- Helper-Trigger for first guard -->
483    <EventTrigger name="spawntrigger2Delay" stayactive="true" delay=2 >
484        <events>
485            <trigger>
486                <EventListener event=spawntrigger2 />
487            </trigger>
488        </events>
489    </EventTrigger>
490
491    <SimpleNotification message="Houston: Attack the first guard!"  broadcast="true">
492        <events>
493            <trigger>
494                <EventListener event="spawntrigger2Delay" />
495            </trigger>
496        </events>
497    </SimpleNotification>
498
499    <DistanceTrigger name="flying1" position="9000, 0, 0" target="SpaceShip" distance=10000 stayActive="true" delay=0.1 >
500        <EventTrigger>
501            <events>
502                <trigger>
503                    <EventListener event="guard1trigger4" />
504                </trigger>
505            </events>
506        </EventTrigger>
507    </DistanceTrigger>
508
509    <!-- Trigger to activate the upgrade1-Quest -->
510    <DistanceTrigger name="droneTrigger" position="11000, 1000, 7000" target="SpaceShip" distance=2000 stayActive="true" delay=0.1 />
511    <SimpleNotification message="Houston: Need an Upgrade?"  broadcast="true">
512        <events>
513            <trigger>
514                <EventListener event="droneTrigger" />
515            </trigger>
516        </events>
517    </SimpleNotification>
518
519    <EventTrigger name="droneTriggerDelay" stayactive="true" delay=5 >
520        <events>
521            <trigger>
522                <EventListener event="droneTrigger" />
523            </trigger>
524        </events>
525    </EventTrigger>
526
527    <SimpleNotification message="Houston: Search the drone!"  broadcast="true" >
528        <events>
529            <trigger>
530                <EventListener event="droneTriggerDelay" />
531            </trigger>
532        </events>
533    </SimpleNotification>
534
535    <EventTrigger name="droneTriggerDelay2" stayactive="true" delay=5 >
536        <events>
537            <trigger>
538                <EventListener event="droneTriggerDelay" />
539            </trigger>
540        </events>
541    </EventTrigger>
542
543    <SimpleNotification message="Houston: Else you see the second guard ahead..."  broadcast="true" >
544        <events>
545            <trigger>
546                <EventListener event="droneTriggerDelay2" />
547            </trigger>
548        </events>
549    </SimpleNotification>
550           
551
552    <!-- Helper-Trigger for the drone -->
553    <DistanceTrigger name="drone1" position="9750, -5350, 5650" target="SpaceShip" distance=100 stayActive="true" delay=0.1 />
554    <SimpleNotification message="Houston: Now your are prepared best!"  broadcast="true">
555        <events>
556            <trigger>
557                <EventListener event="drone1" />
558            </trigger>
559        </events>
560    </SimpleNotification>
561
562    <EventTrigger name="drone1Delay" stayactive="true" delay=5.1 >
563        <events>
564            <trigger>
565                <EventListener event="drone1" />
566            </trigger>
567        </events>
568    </EventTrigger>
569
570    <SimpleNotification message="Houston: Fly back to the green light."  broadcast="true">
571        <events>
572            <trigger>
573                <EventListener event="drone1Delay" />
574            </trigger>
575        </events>
576    </SimpleNotification>
577
578    <Trigger name="secondDroneTrigger" mode="and" stayActive="true">
579      <DistanceTrigger name="droneTrigger" position="11000, 1000, 7000" target="SpaceShip" distance=1000 stayActive="true" delay=0.1 />
580          <EventTrigger>
581            <events>
582              <trigger>
583                <EventListener event="drone1" />
584              </trigger>
585            </events>
586          </EventTrigger>
587        </Trigger>
588
589    <SimpleNotification message="Houston: The red light shows you the direction."  broadcast="true">
590        <events>
591            <trigger>
592                <EventListener event="secondDroneTrigger" />
593            </trigger>
594        </events>
595    </SimpleNotification>
596
597    <BlinkingBillboard position="12000, 1500, 10000" colour="1.0, 0.0, 0.0" frequency=0.5 amplitude=5 material="Examples/Flare" >
598      <events>
599        <visibility>
600          <EventTrigger>
601        <EventTrigger invert=true>
602          <events>
603            <trigger>
604              <EventListener event="guard2trigger1" />
605            </trigger>
606          </events>
607        </EventTrigger>
608            <events>
609              <trigger>
610                <EventListener event="secondDroneTrigger" />
611              </trigger>
612            </events>
613          </EventTrigger>
614        </visibility>
615      </events>
616    </BlinkingBillboard>
617
618    <!-- Helper-Trigger for second guard -->
619    <DistanceTrigger name="flying2" position="17000,5000,15000" target="SpaceShip" distance=20000 stayActive="true" delay=0 >
620        <EventTrigger>
621            <events>
622                <trigger>
623                    <EventListener event="guard2trigger4" />
624                </trigger>
625            </events>
626        </EventTrigger>
627    </DistanceTrigger>   
628
629    <SimpleNotification message="Houston: Well done!"  broadcast="true">
630        <events>
631            <trigger>
632                <EventListener event="flying2" />
633            </trigger>
634        </events>
635    </SimpleNotification>
636
637    <Trigger name="guard2withoutScout" mode="and" stayActive="true" delay=0 >
638      <EventTrigger activations="1" >
639        <events>
640          <trigger>
641            <EventListener event="flying2" />
642          </trigger>
643        </events>
644      </EventTrigger>
645      <EventTrigger activations="1" invert="true" >
646        <events>
647          <trigger>
648            <EventListener event="spionEnd" />
649          </trigger>
650        </events>
651      </EventTrigger>
652    </Trigger>
653
654    <EventTrigger name="flying2delay1" activations="1" stayactive="true" delay=5 >
655      <events>
656        <trigger>
657          <EventListener event="guard2withoutScout" />
658        </trigger>
659      </events>
660    </EventTrigger>
661
662    <SimpleNotification message="Houston: Catch the scout!"  broadcast="true" >
663        <events>
664            <trigger>
665                <EventListener event="flying2delay1" />
666            </trigger>
667        </events>
668    </SimpleNotification>
669
670    <EventTrigger name="flying2delay2" activations="1" stayactive="true" delay=5 >
671      <events>
672        <trigger>
673          <EventListener event="flying2delay1" />
674        </trigger>
675      </events>
676    </EventTrigger>
677
678    <SimpleNotification message="Houston: Before he reachs the red light..."  broadcast="true" >
679        <events>
680            <trigger>
681                <EventListener event="flying2delay2" />
682            </trigger>
683        </events>
684    </SimpleNotification>
685
686    <!-- DistanceTrigger for scout -->
687    <Trigger name="spionTrigger" mode="and" stayActive="true">
688      <DistanceTrigger position="14000, 1000, 22000" target="SpaceShip" distance=50 stayActive="true" delay=0.1 />
689          <EventTrigger activations="1" invert="true">
690            <events>
691              <trigger>
692                <EventListener event="spion5" />
693              </trigger>
694            </events>
695          </EventTrigger>
696        </Trigger>
697
698    <SimpleNotification message="Houston: Scout is arrived!"  broadcast="true">
699        <events>
700            <trigger>
701                <EventListener event="spionTrigger" />
702            </trigger>
703        </events>
704    </SimpleNotification>
705
706    <EventTrigger name="spionTriggerDelay" stayactive="true" delay=5 >
707        <events>
708            <trigger>
709                <EventListener event="spionTrigger" />
710            </trigger>
711        </events>
712    </EventTrigger>   
713
714    <SimpleNotification message="Houston: Now the mainship is alarmed..."  broadcast="true">
715        <events>
716            <trigger>
717                <EventListener event="spionTriggerDelay" />
718            </trigger>
719        </events>
720    </SimpleNotification>
721
722    <BlinkingBillboard position="14000, 1000, 22000" colour="1.0, 0.0, 0.0" frequency=0.3 amplitude=7 material="Examples/Flare" >
723      <events>
724        <visibility>
725          <EventTrigger>
726        <EventTrigger invert=true>
727          <events>
728            <trigger>
729              <EventListener event="spionEnd" />
730            </trigger>
731          </events>
732        </EventTrigger>
733            <events>
734              <trigger>
735                <EventListener event="guard2trigger1" />
736              </trigger>
737            </events>
738          </EventTrigger>
739        </visibility>
740      </events>
741    </BlinkingBillboard>
742
743    <!-- If scout destroyed -->
744    <SimpleNotification message="Houston: Scout destroyed!"  broadcast="true">
745        <events>
746            <trigger>
747                <EventListener event="spion5" />
748            </trigger>
749        </events>
750    </SimpleNotification>
751
752    <Trigger name="scoutDestroydAddon" mode="and" stayActive="true" delay=5 >
753      <EventTrigger activations="1" >
754        <events>
755          <trigger>
756            <EventListener event="spion5" />
757          </trigger>
758        </events>
759      </EventTrigger>
760      <EventTrigger activations="1" >
761        <events>
762          <trigger>
763            <EventListener event="spionTrigger" />
764          </trigger>
765        </events>
766      </EventTrigger>
767    </Trigger>
768
769    <SimpleNotification message="Houston: But the mainship is already warned."  broadcast="true">
770        <events>
771            <trigger>
772                <EventListener event="scoutDestroydAddon" />
773            </trigger>
774        </events>
775    </SimpleNotification>
776
777    <!-- Scout end -->
778    <Trigger name="spionEnd" mode="or" stayActive="true" delay=0 >
779      <EventTrigger>
780        <events>
781          <trigger>
782            <EventListener event="spion5" />
783          </trigger>
784        </events>
785      </EventTrigger>
786      <EventTrigger>
787        <events>
788          <trigger>
789            <EventListener event="spionTrigger" />
790          </trigger>
791        </events>
792      </EventTrigger>
793    </Trigger>
794
795    <EventTrigger name="spionEndDelay" activations="1" delay=5>
796      <events>
797        <trigger>
798          <EventListener event="spionEnd" />
799        </trigger>
800      </events>
801    </EventTrigger>
802
803    <!-- Intro to Captain Hood -->
804    <Trigger name="introHood" mode="and" stayActive="true">
805      <EventTrigger activations="1" >
806        <events>
807          <trigger>
808            <EventListener event="spionEndDelay" />
809          </trigger>
810        </events>
811      </EventTrigger>
812      <EventTrigger activations="1" >
813        <events>
814          <trigger>
815            <EventListener event="guard2trigger4" />
816          </trigger>
817        </events>
818      </EventTrigger>
819    </Trigger>
820
821    <EventTrigger name="introHoodDelay1" activations="1" stayactive="true" delay=5 >
822      <events>
823        <trigger>
824          <EventListener event="introHood" />
825        </trigger>
826      </events>
827    </EventTrigger>
828
829    <SimpleNotification message="Houston: Your friend, Captain Hood, is"  broadcast="true">
830        <events>
831            <trigger>
832                <EventListener event="introHoodDelay1.2" />
833            </trigger>
834        </events>
835    </SimpleNotification>
836
837    <EventTrigger name="introHoodDelay1.2" activations="1" stayactive="true" delay=0.1 >
838      <events>
839        <trigger>
840          <EventListener event="introHoodDelay1" />
841        </trigger>
842      </events>
843    </EventTrigger>
844
845    <SimpleNotification message="near by you!"  broadcast="true">
846        <events>
847            <trigger>
848                <EventListener event="introHoodDelay1" />
849            </trigger>
850        </events>
851    </SimpleNotification>
852
853    <EventTrigger name="introHoodDelay2" activations="1" stayactive="true" delay=5.1 >
854      <events>
855        <trigger>
856          <EventListener event="introHoodDelay1" />
857        </trigger>
858      </events>
859    </EventTrigger>   
860
861    <SimpleNotification message="Houston: He'll show you the way"  broadcast="true">
862        <events>
863            <trigger>
864                <EventListener event="introHoodDelay2.2" />
865            </trigger>
866        </events>
867    </SimpleNotification>   
868
869    <EventTrigger name="introHoodDelay2.2" activations="1" stayactive="true" delay=0.1 >
870      <events>
871        <trigger>
872          <EventListener event="introHoodDelay2" />
873        </trigger>
874      </events>
875    </EventTrigger>   
876
877    <SimpleNotification message="to the mainship!"  broadcast="true">
878        <events>
879            <trigger>
880                <EventListener event="introHoodDelay2" />
881            </trigger>
882        </events>
883    </SimpleNotification>   
884
885    <!-- Helper-Trigger for Captain Hood -->
886    <DistanceTrigger name="reached" position="10000, 2000, 17000" target="SpaceShip" distance=1000 stayActive="true" delay=0.1 >
887        <EventTrigger>
888            <events>
889                <trigger>
890                    <EventListener event="guard2trigger4" />
891                </trigger>
892            </events>
893        </EventTrigger>
894    </DistanceTrigger>
895
896    <SimpleNotification message="Houston: Follow Captain Hood!"  broadcast="true">
897        <events>
898            <trigger>
899                <EventListener event="reached" />
900            </trigger>
901        </events>
902    </SimpleNotification>
903
904    <EventTrigger name="reachedDelay1" activations="1" stayactive="true" delay=5 >
905      <events>
906        <trigger>
907          <EventListener event="reached" />
908        </trigger>
909      </events>
910    </EventTrigger>
911
912    <SimpleNotification message="Hood: Hello my friend!"  broadcast="true">
913        <events>
914            <trigger>
915                <EventListener event="reachedDelay1" />
916            </trigger>
917        </events>
918    </SimpleNotification>
919
920    <EventTrigger name="reachedDelay2" activations="1" stayactive="true" delay=7 >
921      <events>
922        <trigger>
923          <EventListener event="reachedDelay1" />
924        </trigger>
925      </events>
926    </EventTrigger>
927
928    <SimpleNotification message="Hood: Good work at the first two guards..."  broadcast="true">
929        <events>
930            <trigger>
931                <EventListener event="reachedDelay2" />
932            </trigger>
933        </events>
934    </SimpleNotification>
935
936    <EventTrigger name="reachedDelay3" activations="1" stayactive="true" delay=7 >
937      <events>
938        <trigger>
939          <EventListener event="reachedDelay2" />
940        </trigger>
941      </events>
942    </EventTrigger>
943
944    <SimpleNotification message="Hood: But the heaviest part is waiting"  broadcast="true">
945        <events>
946            <trigger>
947                <EventListener event="reachedDelay4" />
948            </trigger>
949        </events>
950    </SimpleNotification>
951
952    <EventTrigger name="reachedDelay4" activations="1" stayactive="true" delay=0.1 >
953      <events>
954        <trigger>
955          <EventListener event="reachedDelay3" />
956        </trigger>
957      </events>
958    </EventTrigger>
959
960    <SimpleNotification message="for us..."  broadcast="true">
961        <events>
962            <trigger>
963                <EventListener event="reachedDelay3" />
964            </trigger>
965        </events>
966    </SimpleNotification>
967
968    <EventTrigger name="reachedDelay5" activations="1" stayactive="true" delay=7 >
969      <events>
970        <trigger>
971          <EventListener event="reachedDelay4" />
972        </trigger>
973      </events>
974    </EventTrigger>
975
976    <Trigger name="reachedDelay6.destroyed" mode="and" stayActive="true">
977      <EventTrigger>
978        <events>
979          <trigger>
980        <EventListener event="reachedDelay5" />
981          </trigger>
982        </events>
983      </EventTrigger>
984          <EventTrigger invert=true >
985            <events>
986              <trigger>
987                <EventListener event="spionTrigger" />
988              </trigger>
989            </events>
990          </EventTrigger>
991        </Trigger>
992
993    <SimpleNotification message="Hood: Good that you've destroyed the scout!"  broadcast="true">
994        <events>
995            <trigger>
996                <EventListener event="reachedDelay6.destroyed" />
997            </trigger>
998        </events>
999    </SimpleNotification>
1000
1001    <Trigger name="reachedDelay6.arrived" mode="and" stayActive="true">
1002      <EventTrigger>
1003        <events>
1004          <trigger>
1005        <EventListener event="reachedDelay5" />
1006          </trigger>
1007        </events>
1008      </EventTrigger>
1009      <EventTrigger>
1010        <events>
1011          <trigger>
1012            <EventListener event="spionTrigger" />
1013          </trigger>
1014        </events>
1015      </EventTrigger>
1016    </Trigger>
1017
1018    <SimpleNotification message="Hood: What a pity that you couldn't"  broadcast="true">
1019        <events>
1020            <trigger>
1021                <EventListener event="reachedDelay6.arrived2" />
1022            </trigger>
1023        </events>
1024    </SimpleNotification>
1025
1026    <EventTrigger name="reachedDelay6.arrived2" activations="1" stayactive="true" delay=0.1 >
1027      <events>
1028        <trigger>
1029          <EventListener event="reachedDelay6.arrived" />
1030        </trigger>
1031      </events>
1032    </EventTrigger>
1033
1034    <SimpleNotification message="destroy the scout..."  broadcast="true">
1035        <events>
1036            <trigger>
1037                <EventListener event="reachedDelay6.arrived" />
1038            </trigger>
1039        </events>
1040    </SimpleNotification>
1041
1042    <DistanceTrigger name="discuss" position="-4000, -9000, 18000" target="SpaceShip" distance=50 stayActive="true" delay=0.1 />
1043    <SimpleNotification message="Hood: Look, there is the mainship!"  broadcast="true">
1044        <events>
1045            <trigger>
1046                <EventListener event="discuss" />
1047            </trigger>
1048        </events>
1049    </SimpleNotification>
1050
1051    <!-- End of Mainfight -->
1052    <Trigger name="victory1" mode="and" stayActive="true">
1053      <EventTrigger>
1054        <events>
1055          <trigger>
1056        <EventListener event="guard3trigger4" />
1057          </trigger>
1058        </events>
1059      </EventTrigger>
1060      <EventTrigger activations="1" >
1061        <events>
1062          <trigger>
1063            <EventListener event="spion5" />
1064          </trigger>
1065        </events>
1066      </EventTrigger>
1067    </Trigger>
1068
1069    <Trigger name="victory2" mode="and" stayActive="true">
1070      <EventTrigger activations="1" >
1071        <events>
1072          <trigger>
1073            <EventListener event="guard3trigger6" />
1074          </trigger>
1075        </events>
1076      </EventTrigger>
1077      <EventTrigger activations="1" >
1078        <events>
1079          <trigger>
1080            <EventListener event="spionTrigger" />
1081          </trigger>
1082        </events>
1083      </EventTrigger>
1084    </Trigger>
1085
1086    <Trigger name="victory" mode="or" stayActive="true">
1087      <EventTrigger activations="1" >
1088        <events>
1089          <trigger>
1090        <EventListener event="victory1" />
1091          </trigger>
1092        </events>
1093      </EventTrigger>
1094      <EventTrigger activations="1" >
1095        <events>
1096          <trigger>
1097            <EventListener event="victory2" />
1098          </trigger>
1099        </events>
1100      </EventTrigger>
1101    </Trigger>
1102
1103    <SimpleNotification message="Houston: YEEEHAAA! You managed it!"  broadcast="true">
1104        <events>
1105            <trigger>
1106                <EventListener event="victory" />
1107            </trigger>
1108        </events>
1109    </SimpleNotification>
1110
1111    <EventTrigger name="victoryDelay1" delay=5 >
1112      <events>
1113        <trigger>
1114          <EventListener event="victory" />
1115        </trigger>
1116      </events>
1117    </EventTrigger>
1118
1119    <EventTrigger name="victoryDelay1.1" delay=5.1 >
1120      <events>
1121        <trigger>
1122          <EventListener event="victory" />
1123        </trigger>
1124      </events>
1125    </EventTrigger>
1126
1127    <SimpleNotification message="Houston: For that you will get the golden medal"  broadcast="true">
1128        <events>
1129            <trigger>
1130                <EventListener event="victoryDelay1.1" />
1131            </trigger>
1132        </events>
1133    </SimpleNotification>
1134
1135    <SimpleNotification message="of the united space armies."  broadcast="true">
1136        <events>
1137            <trigger>
1138                <EventListener event="victoryDelay1" />
1139            </trigger>
1140        </events>
1141    </SimpleNotification>
1142
1143    <EventTrigger name="victoryDelay2" delay=5 >
1144      <events>
1145        <trigger>
1146          <EventListener event="victoryDelay1.1" />
1147        </trigger>
1148      </events>
1149    </EventTrigger>
1150
1151    <EventTrigger name="victoryDelay2.1" delay=5.1 >
1152      <events>
1153        <trigger>
1154          <EventListener event="victoryDelay1.1" />
1155        </trigger>
1156      </events>
1157    </EventTrigger>
1158
1159    <SimpleNotification message="Houston: Now dock at the mainship and"  broadcast="true">
1160        <events>
1161            <trigger>
1162                <EventListener event="victoryDelay2.1" />
1163            </trigger>
1164        </events>
1165    </SimpleNotification>
1166
1167    <SimpleNotification message="free the Commander!"  broadcast="true">
1168        <events>
1169            <trigger>
1170                <EventListener event="victoryDelay2" />
1171            </trigger>
1172        </events>
1173    </SimpleNotification>
1174
1175    <EventTrigger name="victoryDelay3" delay=5 >
1176      <events>
1177        <trigger>
1178          <EventListener event="victoryDelay2" />
1179        </trigger>
1180      </events>
1181    </EventTrigger>
1182
1183    <SimpleNotification message="Houston: The light shows you the hatch"  broadcast="true">
1184        <events>
1185            <trigger>
1186                <EventListener event="victoryDelay3" />
1187            </trigger>
1188        </events>
1189    </SimpleNotification>
1190
1191    <!-- Rescue the commander -->
1192    <BlinkingBillboard position="-12470, -21870, 25200" colour="0.0, 0.0, 1.0" frequency=0.5 amplitude=5 material="Examples/Flare" >
1193      <events>
1194        <visibility>
1195          <EventTrigger>
1196            <EventTrigger invert=true>
1197              <events>
1198                <trigger>
1199                  <EventListener event="dock" />
1200                </trigger>
1201              </events>
1202            </EventTrigger>
1203            <events>
1204              <trigger>
1205                <EventListener event="victory" />
1206              </trigger>
1207            </events>
1208          </EventTrigger>
1209        </visibility>
1210      </events>
1211    </BlinkingBillboard>
1212   
1213    <DistanceTrigger
1214     name="dock"
1215     position="-12470, -21870, 25200"
1216     beaconMode="exclude"
1217     targetname="NPC"
1218     target="SpaceShip"
1219     distance=50
1220     stayActive="true"
1221     delay=0 />
1222    <SimpleNotification message="Houston: The Commander is on board!"  broadcast="true">
1223        <events>
1224            <trigger>
1225                <EventListener event="dock" />
1226            </trigger>
1227        </events>
1228    </SimpleNotification>
1229   
1230    <!-- TIMER-EVENTS -->
1231    <EventTrigger name="dockDelay1" stayactive="true" delay=5 >
1232      <events>
1233        <trigger>
1234          <EventListener event="dock" />
1235        </trigger>
1236      </events>
1237    </EventTrigger>   
1238   
1239    <SimpleNotification message="Houston: A bomb is placed in the mainship..."  broadcast="true">
1240        <events>
1241            <trigger>
1242                <EventListener event="dockDelay1" />
1243            </trigger>
1244        </events>
1245    </SimpleNotification>
1246
1247    <EventTrigger name="dockDelay2" activations="1" stayactive="true" delay=5.0 >
1248      <events>
1249        <trigger>
1250          <EventListener event="dockDelay1" />
1251        </trigger>
1252      </events>
1253    </EventTrigger>
1254
1255    <SimpleNotification message="Houston: You have 10 seconds to move away..."  broadcast="true">
1256        <events>
1257            <trigger>
1258                <EventListener event="dockDelay2" />
1259            </trigger>
1260        </events>
1261    </SimpleNotification>
1262
1263
1264    <EventTrigger name="timer1" activations="1" stayactive="true" delay=5 >
1265      <events>
1266        <trigger>
1267          <EventListener event="dockdelay2" />
1268        </trigger>
1269      </events>
1270    </EventTrigger>
1271
1272
1273    <DistanceTrigger
1274     name="dockdelay3"
1275     position="-12470, -21870, 25200"
1276     beaconMode="exclude"
1277     targetname="NPC"
1278     target="SpaceShip"
1279     distance=50
1280     stayActive="true"
1281     delay=20 />
1282
1283    <DistanceTrigger
1284     name="inExplosionRange"
1285     position="-12000, -22000, 25000"
1286     beaconMode="exclude"
1287     targetname="NPC"
1288     target="SpaceShip"
1289     distance=1000
1290     stayActive="true"
1291     delay=0 >
1292        <EventTrigger>
1293            <events>
1294                <trigger>
1295                    <EventListener event="dockdelay3" />
1296                </trigger>
1297            </events>
1298        </EventTrigger>
1299    </DistanceTrigger>
1300
1301    <DistanceTrigger
1302     name="dockdelay4"
1303     position="-12470, -21870, 25200"
1304     beaconMode="exclude"
1305     targetname="NPC"
1306     target="SpaceShip"
1307     distance=50
1308     stayActive="true"
1309     delay=23.1 />
1310
1311    <EventTrigger name="timerEnd" activations="1" stayactive="true" delay=10 >
1312      <events>
1313        <trigger>
1314          <EventListener event="timer1" />
1315        </trigger>
1316      </events>
1317    </EventTrigger>
1318
1319    <EventTrigger name="negativeTimerEnd" invert="true" delay=0 >
1320      <events>
1321        <trigger>
1322          <EventListener event="timerEnd" />
1323        </trigger>
1324      </events>
1325    </EventTrigger>
1326
1327<!-- ----------------------------------------------------- -->   
1328<!-- For Guard 1 -->
1329<!-- @Triggers: attacktriggerX <-> X enemies destroyed , X is an element of [1,4] -->
1330    <EventTrigger name="guard1trigger4" activations="1" stayactive="true" delay=0.1>
1331      <events>
1332        <trigger>
1333          <EventListener event="firstPatrol" />
1334        </trigger>
1335      </events>
1336      <EventTrigger name="guard1trigger3" activations="1" stayactive="true" delay=0.1>
1337        <events>
1338          <trigger>
1339            <EventListener event="firstPatrol" />
1340          </trigger>
1341        </events>
1342        <EventTrigger name="guard1trigger2" activations="1" stayactive="true" delay=0.1>
1343          <events>
1344            <trigger>
1345              <EventListener event="firstPatrol" />
1346            </trigger>
1347          </events>
1348          <EventTrigger name="guard1trigger1" activations="1" stayactive="true" delay=0.1>
1349            <events>
1350              <trigger>
1351                <EventListener event="firstPatrol" />
1352              </trigger>
1353            </events>
1354          </EventTrigger>
1355        </EventTrigger>
1356      </EventTrigger>
1357    </EventTrigger>
1358
1359<!-- For Guard 2 -->
1360<!-- @Triggers: attacktriggerX <-> X enemies destroyed , X is an element of [1,4] -->
1361    <EventTrigger name="guard2trigger4" activations="1" stayactive="true" delay=0.1>
1362      <events>
1363        <trigger>
1364          <EventListener event="secondPatrol" />
1365        </trigger>
1366      </events>
1367      <EventTrigger name="guard2trigger3" activations="1" stayactive="true" delay=0.1>
1368        <events>
1369          <trigger>
1370            <EventListener event="secondPatrol" />
1371          </trigger>
1372        </events>
1373        <EventTrigger name="guard2trigger2" activations="1" stayactive="true" delay=0.1>
1374          <events>
1375            <trigger>
1376              <EventListener event="secondPatrol" />
1377            </trigger>
1378          </events>
1379          <EventTrigger name="guard2trigger1" activations="1" stayactive="true" delay=0.1>
1380            <events>
1381              <trigger>
1382                <EventListener event="secondPatrol" />
1383              </trigger>
1384            </events>
1385          </EventTrigger>
1386        </EventTrigger>
1387      </EventTrigger>
1388    </EventTrigger>
1389
1390<!-- For Escape -->
1391    <EventTrigger name="spion5" stayactive="true" >
1392      <events>
1393        <trigger>
1394          <EventListener event="spion" />
1395        </trigger>
1396      </events>
1397    </EventTrigger>
1398
1399<!-- For last fight -->
1400    <EventTrigger name="guard3trigger6" activations="1" stayactive="true" delay=0.1 >
1401      <events>
1402        <trigger>
1403          <EventListener event="lastGuard" />
1404        </trigger>
1405      </events>
1406      <EventTrigger name="guard3trigger5" activations="1" stayactive="true" delay=0.1 >
1407        <events>
1408          <trigger>
1409            <EventListener event="lastGuard" />
1410          </trigger>
1411        </events>
1412        <EventTrigger name="guard3trigger4" activations="1" stayactive="true" delay=0.1 >
1413          <events>
1414            <trigger>
1415              <EventListener event="lastGuard" />
1416            </trigger>
1417          </events>
1418          <EventTrigger name="guard3trigger3" activations="1" stayactive="true" delay=0.1 >
1419            <events>
1420              <trigger>
1421                <EventListener event="lastGuard" />
1422              </trigger>
1423            </events>
1424            <EventTrigger name="guard3trigger2" activations="1" stayactive="true" delay=0.1 >
1425              <events>
1426            <trigger>
1427              <EventListener event="lastGuard" />
1428            </trigger>
1429              </events>
1430              <EventTrigger name="guard3trigger1" activations="1" stayactive="true" delay=0.1 >
1431                <events>
1432                  <trigger>
1433                    <EventListener event="lastGuard" />
1434                  </trigger>
1435                </events>
1436              </EventTrigger>
1437            </EventTrigger>
1438          </EventTrigger>
1439        </EventTrigger>
1440      </EventTrigger>
1441    </EventTrigger>
1442   
1443<!-- ----------------------------------------------------- -->
1444<!-- Passive Pirates: Guard 1 -->
1445<SpaceShip position="8000,1000,0" lookat="8000,-1000,0" name="firstPatrol" radarname="Patrol">
1446  <events>
1447    <visibility>
1448      <EventListener event=spawntrigger2 />
1449    </visibility>
1450  </events>
1451  <templates>
1452    <Template link=spaceshippirate />
1453  </templates>
1454  <controller>
1455    <WaypointController team=1>
1456      <waypoints>
1457        <Model mesh="cube.mesh" scale=0 position="8000,-1000,0" />
1458        <Model mesh="cube.mesh" scale=0 position="8000,1000,0" />
1459      </waypoints>
1460    </WaypointController>
1461  </controller>
1462</SpaceShip>
1463
1464<SpaceShip position="8000,0,0" lookat="8000,0,-1000" name="firstPatrol" radarname="Patrol">
1465  <events>
1466    <visibility>
1467      <EventListener event=spawntrigger2 />
1468    </visibility>
1469  </events>
1470  <templates>
1471    <Template link=spaceshippirate />
1472  </templates>
1473  <controller>
1474    <WaypointController team=1>
1475      <waypoints>
1476        <Model mesh="cube.mesh" scale=0 position="8000,400,2000" />
1477        <Model mesh="cube.mesh" scale=0 position="8000,0,0" />
1478      </waypoints>
1479    </WaypointController>
1480  </controller>
1481</SpaceShip>
1482
1483
1484<!-- Active Pirates: Guard 1 -->
1485<SpaceShip position="8000,-1000,1000" lookat="8000,1000,-1000" name="firstPatrol" visible="true" radarname="Patrol" >
1486  <events>
1487    <visibility>
1488      <EventListener event=spawntrigger2 />
1489    </visibility>
1490  </events>
1491  <templates>
1492    <Template link=spaceshippirate />
1493  </templates>
1494  <controller>
1495    <WaypointPatrolController alertnessradius=5000 team=1 active=false>
1496      <waypoints>
1497        <Model mesh="cube.mesh" scale=0 position="8000,1000,-1000" />
1498        <Model mesh="cube.mesh" scale=0 position="8000,-1000,1000" />
1499      </waypoints>
1500      <events>
1501        <activity>
1502          <EventListener event=spawntrigger2 />
1503        </activity>
1504      </events>
1505    </WaypointPatrolController>
1506  </controller>
1507</SpaceShip>
1508
1509<SpaceShip position="8000,-500,-500" lookat="8000,1000,1000" name="firstPatrol" visible="true" radarname="Patrol">
1510  <events>
1511    <visibility>
1512      <EventListener event=spawntrigger2 />
1513    </visibility>
1514  </events>
1515  <templates>
1516    <Template link=spaceshippirate />
1517  </templates>
1518  <controller>
1519    <WaypointPatrolController alertnessradius=5000 team=1 active=false>
1520      <waypoints>
1521        <Model mesh="cube.mesh" scale=0 position="8000,1000,1000" />
1522        <Model mesh="cube.mesh" scale=0 position="8000,-1000,-1000" />
1523      </waypoints>
1524      <events>
1525        <activity>
1526          <EventListener event=spawntrigger2 />
1527        </activity>
1528      </events>
1529    </WaypointPatrolController>
1530  </controller>
1531</SpaceShip>
1532
1533<!-- Pirates Guard 2 -->
1534<SpaceShip position="18000,5000,15000" lookat="17700,4300,15000" name="secondPatrol" visible="true" radarname="Patrol">
1535  <events>
1536    <visibility>
1537      <EventListener event="guard1trigger4" />
1538    </visibility>
1539  </events>
1540  <templates>
1541    <Template link=spaceshippirate />
1542  </templates>
1543  <controller>
1544    <WaypointPatrolController alertnessradius=5000 team=1 active=false>
1545      <waypoints>
1546        <Model mesh="cube.mesh" scale=0 position="17700,4300,15000" />
1547        <Model mesh="cube.mesh" scale=0 position="17000,4000,15000" />
1548        <Model mesh="cube.mesh" scale=0 position="16300,4300,15000" />
1549        <Model mesh="cube.mesh" scale=0 position="16000,5000,15000" />
1550        <Model mesh="cube.mesh" scale=0 position="16300,5700,15000" />
1551        <Model mesh="cube.mesh" scale=0 position="17000,6000,15000" />
1552        <Model mesh="cube.mesh" scale=0 position="17700,5700,15000" />
1553        <Model mesh="cube.mesh" scale=0 position="18000,5000,15000" />
1554      </waypoints>
1555      <events>
1556        <activity>
1557          <EventListener event="guard1trigger4" />
1558        </activity>
1559      </events>
1560    </WaypointPatrolController>
1561  </controller>
1562</SpaceShip>
1563
1564<SpaceShip position="16000,5000,15000" lookat="16300,5700,15000" name="secondPatrol" visible="true" radarname="Patrol">
1565  <events>
1566    <visibility>
1567      <EventListener event="guard1trigger4" />
1568    </visibility>
1569  </events>
1570  <templates>
1571    <Template link=spaceshippirate />
1572  </templates>
1573  <controller>
1574    <WaypointPatrolController alertnessradius=5000 team=1 active=false>
1575      <waypoints>
1576        <Model mesh="cube.mesh" scale=0 position="16300,5700,15000" />
1577        <Model mesh="cube.mesh" scale=0 position="17000,6000,15000" />
1578        <Model mesh="cube.mesh" scale=0 position="17700,5700,15000" />
1579        <Model mesh="cube.mesh" scale=0 position="18000,5000,15000" />
1580        <Model mesh="cube.mesh" scale=0 position="17700,4300,15000" />
1581        <Model mesh="cube.mesh" scale=0 position="17000,4000,15000" />
1582        <Model mesh="cube.mesh" scale=0 position="16300,4300,15000" />
1583        <Model mesh="cube.mesh" scale=0 position="16000,5000,15000" />
1584      </waypoints>
1585      <events>
1586        <activity>
1587          <EventListener event="guard1trigger4" />
1588        </activity>
1589      </events>
1590    </WaypointPatrolController>
1591  </controller>
1592</SpaceShip>
1593
1594<SpaceShip position="17000,4000,15000" lookat="16300,4300,15000" name="secondPatrol" visible="true" radarname="Patrol">
1595  <events>
1596    <visibility>
1597      <EventListener event="guard1trigger4" />
1598    </visibility>
1599  </events>
1600  <templates>
1601    <Template link=spaceshippirate />
1602  </templates>
1603  <controller>
1604    <WaypointPatrolController alertnessradius=5000 team=1 active=false>
1605      <waypoints>
1606        <Model mesh="cube.mesh" scale=0 position="16300,4300,15000" />
1607        <Model mesh="cube.mesh" scale=0 position="16000,5000,15000" />
1608        <Model mesh="cube.mesh" scale=0 position="16300,5700,15000" />
1609        <Model mesh="cube.mesh" scale=0 position="17000,6000,15000" />
1610        <Model mesh="cube.mesh" scale=0 position="17700,5700,15000" />
1611        <Model mesh="cube.mesh" scale=0 position="18000,5000,15000" />
1612        <Model mesh="cube.mesh" scale=0 position="17700,4300,15000" />
1613        <Model mesh="cube.mesh" scale=0 position="17000,4000,15000" />
1614      </waypoints>
1615      <events>
1616        <activity>
1617          <EventListener event="guard1trigger4" />
1618        </activity>
1619      </events>
1620    </WaypointPatrolController>
1621  </controller>
1622</SpaceShip>
1623
1624<SpaceShip position="17000,6000,15000" lookat="17700,5700,15000" name="secondPatrol" visible="true" radarname="Patrol">
1625  <events>
1626    <visibility>
1627      <EventListener event="guard1trigger4" />
1628    </visibility>
1629  </events>
1630  <templates>
1631    <Template link=spaceshippirate />
1632  </templates>
1633  <controller>
1634    <WaypointPatrolController alertnessradius=5000 team=1 active=false>
1635      <waypoints>
1636        <Model mesh="cube.mesh" scale=0 position="17700,5700,15000" />
1637        <Model mesh="cube.mesh" scale=0 position="18000,5000,15000" />
1638        <Model mesh="cube.mesh" scale=0 position="17700,4300,15000" />
1639        <Model mesh="cube.mesh" scale=0 position="17000,4000,15000" />
1640        <Model mesh="cube.mesh" scale=0 position="16300,4300,15000" />
1641        <Model mesh="cube.mesh" scale=0 position="16000,5000,15000" />
1642        <Model mesh="cube.mesh" scale=0 position="16300,5700,15000" />
1643        <Model mesh="cube.mesh" scale=0 position="17000,6000,15000" />
1644      </waypoints>
1645      <events>
1646        <activity>
1647          <EventListener event="guard1trigger4" />
1648        </activity>
1649      </events>
1650    </WaypointPatrolController>
1651  </controller>
1652</SpaceShip>
1653
1654<!-- Escape-Ship (Scout) -->
1655<SpaceShip position="16000,4000,16000" lookat="-12000, -22000, 25000" name="spion" visible="true" radarname="Scout" >
1656  <events>
1657    <visibility>
1658      <EventListener event="guard2trigger1" />
1659    </visibility>
1660  </events>
1661  <templates>
1662    <Template link=spaceshippirate />
1663  </templates>
1664  <controller>
1665    <WaypointController team=1>
1666      <waypoints>
1667        <Model mesh="cube.mesh" scale=0 position="14000, 1000, 22000" />
1668        <Model mesh="cube.mesh" scale=0 position="0, -10000, 42000" />
1669      </waypoints>
1670      <events>
1671    <activity>
1672      <EventListener event="guard2trigger1" />
1673    </activity>
1674      </events>
1675    </WaypointController>
1676  </controller>
1677<!--  Should be realized, if possible...
1678  <attached>
1679    <DistanceTriggerBeacon name="spionBeacon" />
1680  </attached>
1681-->
1682</SpaceShip>
1683
1684<!-- Pirates Mainship -->
1685<SpaceShip position="-10000, -20000, 24000" lookat="-10000, -22000, 24000" name="lastGuard" visible="true" radarname="Pirate" >
1686  <events>
1687    <visibility>
1688      <EventListener event="guard2trigger4" />
1689    </visibility>
1690  </events>
1691  <templates>
1692    <Template link=spaceshippirate />
1693  </templates>
1694  <attached>
1695    <DistanceTriggerBeacon name="NPC" />
1696  </attached>
1697  <controller>
1698    <WaypointPatrolController alertnessradius=5000 team=1 active=false>
1699      <waypoints>
1700        <Model mesh="cube.mesh" scale=0 position="-9500, -22000, 24000" /> <!-- -12000, -22000, 25000    -4000, -18000, 19000 -->
1701        <Model mesh="cube.mesh" scale=0 position="-10500, -22000, 23000" />
1702        <Model mesh="cube.mesh" scale=0 position="-11000, -20000, 23000" />
1703        <Model mesh="cube.mesh" scale=0 position="-10000, -20000, 24000" />
1704      </waypoints>
1705      <events>
1706    <activity>
1707      <EventListener event="guard2trigger4" />
1708    </activity>
1709      </events>
1710    </WaypointPatrolController>
1711  </controller>
1712</SpaceShip>
1713
1714<SpaceShip position="-10000, -22000, 24000" lookat="-11000, -22000, 23000" name="lastGuard" visible="true" radarname="Pirate" >
1715  <events>
1716    <visibility>
1717      <EventListener event="guard2trigger4" />
1718    </visibility>
1719  </events>
1720  <templates>
1721    <Template link=spaceshippirate />
1722  </templates>
1723  <attached>
1724    <DistanceTriggerBeacon name="NPC" />
1725  </attached>
1726  <controller>
1727    <WaypointPatrolController alertnessradius=5000 team=1 active=false>
1728      <waypoints>
1729        <Model mesh="cube.mesh" scale=0 position="-10500, -22000, 23000" />
1730        <Model mesh="cube.mesh" scale=0 position="-11000, -20000, 23000" />
1731        <Model mesh="cube.mesh" scale=0 position="-10000, -20000, 24000" />       
1732        <Model mesh="cube.mesh" scale=0 position="-9500, -22000, 24000" />
1733      </waypoints>
1734      <events>
1735    <activity>
1736      <EventListener event="guard2trigger4" />
1737    </activity>
1738      </events>
1739    </WaypointPatrolController>
1740  </controller>
1741</SpaceShip>
1742
1743<SpaceShip position="-11000, -22000, 23000" lookat="-11000, -20000, 23000" name="lastGuard" visible="true" radarname="Pirate" >
1744  <events>
1745    <visibility>
1746      <EventListener event="guard2trigger4" />
1747    </visibility>
1748  </events>
1749  <templates>
1750    <Template link=spaceshippirate />
1751  </templates>
1752  <attached>
1753    <DistanceTriggerBeacon name="NPC" />
1754  </attached>
1755  <controller>
1756    <WaypointPatrolController alertnessradius=5000 team=1 active=false>
1757      <waypoints>
1758        <Model mesh="cube.mesh" scale=0 position="-11000, -20000, 23000" />
1759        <Model mesh="cube.mesh" scale=0 position="-10000, -20000, 24000" />       
1760        <Model mesh="cube.mesh" scale=0 position="-9500, -22000, 24000" />
1761        <Model mesh="cube.mesh" scale=0 position="-10500, -22000, 23000" />
1762      </waypoints>
1763      <events>
1764    <activity>
1765      <EventListener event="guard2trigger4" />
1766    </activity>
1767      </events>
1768    </WaypointPatrolController>
1769  </controller>
1770</SpaceShip>
1771
1772<SpaceShip position="-11000, -20000, 23000" lookat="-10000, -20000, 24000" name="lastGuard" visible="true" radarname="Pirate" >
1773  <events>
1774    <visibility>
1775      <EventListener event="guard2trigger4" />
1776    </visibility>
1777  </events>
1778  <templates>
1779    <Template link=spaceshippirate />
1780  </templates>
1781  <attached>
1782    <DistanceTriggerBeacon name="NPC" />
1783  </attached>
1784  <controller>
1785    <WaypointPatrolController alertnessradius=5000 team=1 active=false>
1786      <waypoints>
1787        <Model mesh="cube.mesh" scale=0 position="-10000, -20000, 24000" />       
1788        <Model mesh="cube.mesh" scale=0 position="-9500, -22000, 24000" />
1789        <Model mesh="cube.mesh" scale=0 position="-10500, -22000, 23000" />
1790        <Model mesh="cube.mesh" scale=0 position="-11000, -20000, 23000" />
1791      </waypoints>
1792      <events>
1793    <activity>
1794      <EventListener event="guard2trigger4" />
1795    </activity>
1796      </events>
1797    </WaypointPatrolController>
1798  </controller>
1799</SpaceShip>
1800
1801<!-- Additional pirates if the scout has warned the mainship -->
1802<SpaceShip position="-10500, -20000, 23500" lookat="-10000, -21000, 24000" name="lastGuard" visible="true" radarname="Pirate" >
1803  <events>
1804    <visibility>
1805      <EventListener event="spionTrigger" />
1806    </visibility>
1807  </events>
1808  <templates>
1809    <Template link=spaceshippirate />
1810  </templates>
1811  <attached>
1812    <DistanceTriggerBeacon name="NPC" />
1813  </attached>
1814  <controller>
1815    <WaypointPatrolController alertnessradius=5000 team=1 active=false>
1816      <waypoints>
1817        <Model mesh="cube.mesh" scale=0 position="-9750, -21000, 24000" />
1818        <Model mesh="cube.mesh" scale=0 position="-10000, -22000, 23500" />
1819        <Model mesh="cube.mesh" scale=0 position="-10750, -21000, 23000" />
1820        <Model mesh="cube.mesh" scale=0 position="-10500, -20000, 23500" />
1821      </waypoints>
1822      <events>
1823    <activity>
1824      <EventListener event="spionTrigger" />
1825    </activity>
1826      </events>
1827    </WaypointPatrolController>
1828  </controller>
1829</SpaceShip>
1830
1831<SpaceShip position="-10500, -22000, 23500" lookat="-11000, -21000, 23000" name="lastGuard" visible="true" radarname="Pirate" >
1832  <events>
1833    <visibility>
1834      <EventListener event="spionTrigger" />
1835    </visibility>
1836  </events>
1837  <templates>
1838    <Template link=spaceshippirate />
1839  </templates>
1840  <attached>
1841    <DistanceTriggerBeacon name="NPC" />
1842  </attached>
1843  <controller>
1844    <WaypointPatrolController alertnessradius=5000 team=1 active=false>
1845      <waypoints>
1846        <Model mesh="cube.mesh" scale=0 position="-10750, -21000, 23000" />
1847        <Model mesh="cube.mesh" scale=0 position="-10500, -20000, 23500" />
1848        <Model mesh="cube.mesh" scale=0 position="-9750, -21000, 24000" />
1849        <Model mesh="cube.mesh" scale=0 position="-10000, -22000, 23500" />
1850      </waypoints>
1851      <events>
1852    <activity>
1853      <EventListener event="spionTrigger" />
1854    </activity>
1855      </events>
1856    </WaypointPatrolController>
1857  </controller>
1858</SpaceShip>
1859
1860<!-- Captain Hood (Friend) -->
1861<SpaceShip position="8500, 2000, 17000" lookat="0, -1000, 18000" name="friend" visible="true" radarname="Hood" >
1862  <events>
1863    <visibility>
1864      <EventListener event="guard2trigger4" />
1865    </visibility>
1866  </events>
1867  <templates>
1868    <Template link=spaceshipswallow />
1869  </templates>
1870  <attached>
1871    <DistanceTriggerBeacon name="NPC" />
1872  </attached>
1873  <controller>
1874    <WaypointPatrolController alertnessradius=5000 team=0 active=false>
1875      <waypoints>
1876        <Model mesh="cube.mesh" scale=0 position="-4000, -9000, 18000" />
1877        <Model mesh="cube.mesh" scale=0 position="-11500, -22000, 25000" />
1878      </waypoints>
1879      <events>
1880    <activity>
1881      <EventListener event="reached" />
1882    </activity>
1883      </events>
1884    </WaypointPatrolController>
1885  </controller>
1886</SpaceShip>
1887
1888<BlinkingBillboard position="10000, 2000, 17000" colour="1.0, 1.0, 0.0" frequency=0.5 amplitude=20 material="Examples/Flare" >
1889  <events>
1890    <visibility>
1891      <EventTrigger>
1892    <EventTrigger invert=true>
1893      <events>
1894        <trigger>
1895          <EventListener event="reached" />
1896        </trigger>
1897      </events>
1898    </EventTrigger>
1899        <events>
1900          <trigger>
1901            <EventListener event="spion5" />
1902          </trigger>
1903        </events>
1904      </EventTrigger>
1905    </visibility>
1906  </events>
1907</BlinkingBillboard>
1908
1909<SimpleNotification message="Houston: Your friend Captain Hood is dead..."  broadcast="true">
1910    <events>
1911        <trigger>
1912            <EventListener event="friend" />
1913        </trigger>
1914    </events>
1915</SimpleNotification>
1916
1917<EventTrigger name="friendDelay1" stayactive="true" delay=5.0 >
1918  <events>
1919    <trigger>
1920      <EventListener event="friend" />
1921    </trigger>
1922  </events>
1923</EventTrigger>
1924
1925<SimpleNotification message="Vane: NOOOOO!!!"  broadcast="true">
1926    <events>
1927        <trigger>
1928            <EventListener event="friendDelay1" />
1929        </trigger>
1930    </events>
1931</SimpleNotification>
1932
1933<EventTrigger name="friendDelay2" stayactive="true" delay=5.0 >
1934  <events>
1935    <trigger>
1936      <EventListener event="friendDelay1" />
1937    </trigger>
1938  </events>
1939</EventTrigger>
1940
1941<SimpleNotification message="Houston: He died in a fight like he wished it!"  broadcast="true">
1942    <events>
1943        <trigger>
1944            <EventListener event="friendDelay2" />
1945        </trigger>
1946    </events>
1947</SimpleNotification>
1948
1949<!-- ----------------------------------------------------- -->
1950
1951<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" />
1952
1953
1954<!-- ASTEROIDS & ASTEROID-FIELDS -->
1955    <!-- Asteroids -->
1956    <Model
1957        position="9800, -5000, 5700"
1958        yaw="90"
1959        pitch="-90"
1960        roll="0"
1961        scale="200"
1962        mesh="asteroid_ice.mesh" >
1963      <attached>
1964<!--        <Model mass=10 scale3D="0.5,0.5,0.5" mesh="cube.mesh" position = "0,0,0" yaw=0 pitch=0 roll=0 /> -->
1965      </attached>
1966      <collisionShapes>
1967        <SphereCollisionShape radius=0.5 />
1968      </collisionShapes>
1969    </Model>
1970
1971    <!-- triple large belt around the planet  -->
1972    <?lua
1973        dofile("includes/asteroidField.lua")
1974        asteroidBelt(2000, -250, 9000, 30, 0, 30, 30, 50, 7190, 7800, 250, 1)
1975    ?>
1976
1977    <?lua
1978        dofile("includes/asteroidField.lua")
1979        asteroidBelt(2000, -250, 9000, 30, 0, 30, 30, 50, 10000, 11000, 300, 1)
1980    ?>
1981
1982    <?lua
1983        dofile("includes/asteroidField.lua")
1984        asteroidBelt(2000, -250, 9000, 30, 0, 30, 30, 50, 14000, 15000, 350, 1)
1985    ?>
1986
1987    <!-- between guard 2 & mainship -->
1988        <!-- Core -->   
1989        <?lua
1990            dofile("includes/asteroidField.lua")
1991            asteroidField(-5000, -10000, 30000, 10, 700, 8000, 80, 0)
1992        ?>
1993   
1994        <!-- Peripherie -->
1995        <?lua
1996            dofile("includes/asteroidField.lua")
1997            asteroidField(-5000, -10000, 30000, 10, 50, 10000, 100, 0)
1998        ?>
1999
2000        <?lua
2001            dofile("includes/asteroidField.lua")
2002            asteroidBelt(-10000, -12500, 0, 0, 0, 30, 30, 500, 0, 7850, 150, 0)
2003        ?>
2004
2005    <!-- PLANETS -->
2006    <MovableEntity
2007        position="2000,-250,9000"
2008        scale=5000
2009        pitch=1
2010        rotationaxis="1,1,0"
2011        rotationrate="0.5"
2012        mass="10000000"
2013        angularDamping=0
2014        collisiondamage=2
2015        enablecollisiondamage=true
2016        collisionType="dynamic"
2017    >
2018      <attached>
2019        <Planet
2020            mesh="iceplanet.mesh"
2021            atmosphere="atmosphere1"
2022            atmospheresize=224.0f
2023            imagesize=1024.0f />
2024      </attached>
2025    </MovableEntity>
2026
2027<!--  PICKUPS to make travelling faster  -->
2028    <PickupSpawner pickup=hugespeedpickup position="11473,1275,7689" triggerDistance="400" respawnTime="10" maxSpawnedItems="5" />
2029    <PickupSpawner pickup=mediumspeedpickup position="9455,1309,16891" triggerDistance="400" respawnTime="10" maxSpawnedItems="5" />
2030
2031<!-- ----------------Rotating SpaceStation--------------- -->
2032    <!-- first guard -->
2033    <StaticEntity position="9000,0,0" collisionType=static yaw=112 pitch=67 >
2034      <attached>
2035        <?lua
2036          createSpaceStationPar(0,2,1,2,1,4,1,50)
2037        ?>
2038      </attached>
2039    </StaticEntity>
2040
2041    <!-- second guard -->
2042    <StaticEntity position="17000,5000,15000" collisionType=static yaw=12 pitch=75 >
2043      <attached>
2044        <?lua
2045          createSpaceStationPar(0,2,1,2,1,4,1,50)
2046        ?>
2047      </attached>
2048    </StaticEntity>
2049
2050<!-- ------------------------- Mainship ------------------ -->
2051    <SpaceShip
2052        team      = 1
2053        position  = "-12000, -22000, 25000"
2054        mass      = 10000000000
2055        health    = 100000 initialhealth=100000 maxhealth="100000"
2056        name      = "Mainship"
2057        radarname = "Mainship"
2058        visible   = "true" >
2059      <events>
2060        <visibility>
2061          <EventTrigger invert=true>
2062            <events>
2063              <trigger>
2064                <EventListener event="dockdelay3" />
2065              </trigger>
2066            </events>
2067          </EventTrigger>
2068        </visibility>
2069      </events>
2070      <controller>
2071        <WaypointController team=1 active="true" >
2072          <waypoints/>
2073          <events>
2074            <activity>
2075              <EventListener event=spawntrigger2 />
2076            </activity>
2077          </events>
2078        </WaypointController>
2079      </controller>
2080      <attached>
2081        <Model scale=200 mesh="drone.mesh" position = "0,0,0" lookat="40000, 4000, 27000" />
2082        <DistanceTriggerBeacon name="NPC" />
2083<!--    <Model mesh="cube.mesh" mass=10 position="-445,110,120" scale3D="45,45,150"  yaw=56 pitch=-4 roll=0 />
2084        <Model mesh="cube.mesh" mass=10 position="-295,125,220" scale3D="28,28,28" yaw=56 pitch=-4 roll=0 />
2085        <Model mesh="cube.mesh" mass=10 position="-400,350,-200" scale3D="80,280,800" yaw=56 pitch=-4 roll=5 />
2086        <Model mesh="cube.mesh" mass=10 position="-300,630,-100" scale3D="250,50,500" yaw=56 pitch=-4 roll=5 />
2087        <Model mesh="cube.mesh" mass=10 position="-150,-150,-550" scale3D="80,280,800"  yaw=56 pitch=-4 roll=65 />
2088        <Model mesh="cube.mesh" mass=10 position="150,-270,-600" scale3D="250,50,500" yaw=56 pitch=-4 roll=65 />
2089        <Model mesh="cube.mesh" mass=10 position="-500,-250,0" scale3D="80,280,800" yaw=56 pitch=-4 roll=-50 />
2090        <Model mesh="cube.mesh" mass=10 position="-500,-420,250" scale3D="250,50,500" yaw=56 pitch=-4 roll=-50 /> -->
2091      </attached>
2092      <collisionShapes>
2093        <BoxCollisionShape  position="-445,110,120" halfExtents="45,45,150" yaw=56 pitch=-4 roll=0 />
2094        <BoxCollisionShape  position="-295,125,220" halfExtents="28,28,28" yaw=56 pitch=-4 roll=0 />
2095        <BoxCollisionShape  position="-400,350,-200" halfExtents="80,280,800" yaw=56 pitch=-4 roll=5 />
2096        <BoxCollisionShape  position="-300,630,-100" halfExtents="250,50,500" yaw=56 pitch=-4 roll=5 />
2097        <BoxCollisionShape  position="-150,-150,-550" halfExtents="80,280,800" yaw=56 pitch=-4 roll=65 />
2098        <BoxCollisionShape  position="150,-270,-600" halfExtents="250,50,500" yaw=56 pitch=-4 roll=65 />
2099        <BoxCollisionShape  position="-500,-250,0" halfExtents="80,280,800" yaw=56 pitch=-4 roll=-50 />
2100        <BoxCollisionShape  position="-500,-420,250" halfExtents="250,50,500" yaw=56 pitch=-4 roll=-50 />
2101      </collisionShapes>
2102      <events>
2103        <visibility>
2104          <EventListener event="negativeTimerEnd" />
2105        </visibility>
2106      </events>
2107    </SpaceShip>
2108
2109    <!-- PARTICLE EFFECT -->
2110    <ParticleSpawner position="-12000, -22000, 25000" source="Orxonox/RingExp" autostart="false" lifetime=600 loop=0 startdelay=0.5>
2111        <events>
2112            <spawn>
2113                <EventListener event="dockdelay3" />
2114            </spawn>
2115        </events>
2116    </ParticleSpawner>
2117    <ParticleSpawner position="-12000, -22000, 25000" source="Orxonox/RingExp2" autostart="false" lifetime=600 loop=0 startdelay=0>
2118        <events>
2119            <spawn>
2120                <EventListener event="dockdelay3" />
2121            </spawn>
2122        </events>
2123    </ParticleSpawner>
2124    <ParticleSpawner position="-12000, -22000, 25000" source="Orxonox/RingExp3" autostart="false" lifetime=600 loop=0 startdelay=0>
2125        <events>
2126            <spawn>
2127                <EventListener event="dockdelay3" />
2128            </spawn>
2129        </events>
2130    </ParticleSpawner>
2131   
2132    <!-- The fire is set ->
2133    <EventTrigger name="kaboom1" activations="1" stayactive="true" delay=3 >
2134      <events>
2135        <trigger>
2136          <EventListener event="dockdelay2" />
2137        </trigger>
2138      </events>
2139    </EventTrigger>
2140   
2141    <ParticleSpawner position="-12370,-21954.7,24993.4" source="Orxonox/bigexplosion" lifetime=3.5 loop=0 autostart=0>
2142        <events>
2143            <spawn>
2144                <EventListener event="kaboom1" />
2145            </spawn>
2146        </events>
2147    </ParticleSpawner>
2148
2149    <ParticleSpawner position="-11983.6,-21599,25172.2" source="Orxonox/bigexplosion" lifetime=3.5 loop=0 autostart=false>
2150        <events>
2151            <spawn>
2152                <EventListener event="kaboom1" />
2153            </spawn>
2154        </events>
2155    </ParticleSpawner>
2156
2157    <ParticleSpawner position="-12738.7,-22278.6,24827.4" source="Orxonox/bigexplosion" lifetime=3.5 loop=0 autostart=false>
2158        <events>
2159            <spawn>
2160                <EventListener event="kaboom1" />
2161            </spawn>
2162        </events>
2163    </ParticleSpawner>
2164
2165    <ParticleSpawner position="-11830.5,-22207.2,24714.7" source="Orxonox/bigexplosion" lifetime=3.5 loop=0 autostart=false>
2166        <events>
2167            <spawn>
2168                <EventListener event="kaboom1" />
2169            </spawn>
2170        </events>
2171    </ParticleSpawner>
2172
2173    <ParticleSpawner position="-11772.2,-21992.9,25151.8" source="Orxonox/bigexplosion" lifetime=3.5 loop=0 autostart=false>
2174        <events>
2175            <spawn>
2176                <EventListener event="kaboom1" />
2177            </spawn>
2178        </events>
2179    </ParticleSpawner>
2180
2181    <ParticleSpawner position="-12953.1,-22107.5,24330.7" source="Orxonox/bigexplosion" lifetime=3.5 loop=0 autostart=false>
2182        <events>
2183            <spawn>
2184                <EventListener event="kaboom1" />
2185            </spawn>
2186        </events>
2187    </ParticleSpawner-->
2188
2189   
2190   <!-- TODO: End the game -->
2191   <Script code="Mission endMission true" onLoad="false" times="1" >
2192        <events>
2193            <trigger>
2194                <EventListener event="dockdelay4" />
2195            </trigger>
2196        </events>
2197    </Script>
2198    <Script code="Mission endMission false" onLoad="false" times="1" >
2199        <events>
2200            <trigger>
2201                <EventListener event="inExplosionRange" />
2202            </trigger>
2203        </events>
2204    </Script>
2205
2206  </Scene>
2207</Level>
2208
Note: See TracBrowser for help on using the repository browser.