Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/iiJohnVane_Area51UnderFire.oxw @ 9953

Last change on this file since 9953 was 9943, checked in by landauf, 11 years ago

eol-style native

  • Property svn:eol-style set to native
File size: 57.2 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 = "Level-part with the big Spacefight"
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
46
47  <NotificationQueueCEGUI
48    name="narrative"
49    targets="simpleNotification"
50    size=3
51    displayTime=4.9
52    position="0.2, 0, 0.1, 0"
53    fontSize="23"
54    fontColor="0.3, 1, 0.2, 0.8"
55    alignment="HorzCentred"
56    displaySize="0.6, 0, 0, 0"
57    />
58
59<Scene
60    ambientlight = "0.8, 0.8, 0.8"
61    skybox       = "Orxonox/Starbox"
62  >
63  <?lua include("includes/pickups.oxi") ?>
64
65<Script code="showGUI NotificationLayer false true" needsGraphics="true" />
66<OverlayGroup name="spacefightHUD" scale = "1, 1">
67  <CountDown
68     position    = "0.51, 0.05"
69     pickpoint   = "0.0, 0.0"
70     font        = "ShareTechMono"
71     textsize    = 0.1
72     colour      = "1.0, 1.0, 1.0, 1.0"
73     align       = "center"                 
74     counter     = "10.0"
75     speedfactor = "1.0"
76     active      = "false"
77  >
78    <events>
79      <activity>
80        <EventListener event="timer1" />
81      </activity>
82    </events>
83  </CountDown>
84</OverlayGroup>
85
86<!-- SPAWNTRIGGER -->
87        <!-- StartPoint -->
88        <SpawnPoint team=0 position="0, 0, 0" lookat="100, 0, 0" spawnclass=SpaceShip pawndesign=spaceshipcollateraldamage >
89          <events>
90            <activity>
91              <EventListener event="flying12" />
92            </activity>
93          </events>
94        </SpawnPoint>
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
160                                Ahead you see the first little patrol.
161                                There are two little battleships and also two unarmed ships.
162                                The 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.
171                                perhaps you find something useful there...
172                                Hint: look for a big asteroid."
173                        failMessage="You've lost all your ships!"
174                        completeMessage="Your ship is prepared best 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 is startet 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 name="dock" position="-12470, -21870, 25200" target="SpaceShip" distance=50 stayActive="true" delay=0 />
1214        <SimpleNotification message="Houston: The Commander is on board!"  broadcast="true">
1215                <events>
1216                        <trigger>
1217                                <EventListener event="dock" />
1218                        </trigger>
1219                </events>
1220        </SimpleNotification>
1221       
1222        <!-- TIMER-EVENTS -->
1223        <EventTrigger name="dockDelay1" stayactive="true" delay=5 >
1224          <events>
1225            <trigger>
1226              <EventListener event="dock" />
1227            </trigger>
1228          </events>
1229        </EventTrigger>
1230       
1231        <SimpleNotification message="Houston: A bomb is placed in the mainship..."  broadcast="true">
1232                <events>
1233                        <trigger>
1234                                <EventListener event="dockDelay1" />
1235                        </trigger>
1236                </events>
1237        </SimpleNotification>
1238
1239        <EventTrigger name="dockDelay2" activations="1" stayactive="true" delay=5.0 >
1240          <events>
1241            <trigger>
1242              <EventListener event="dockDelay1" />
1243            </trigger>
1244          </events>
1245        </EventTrigger>
1246
1247        <SimpleNotification message="Houston: You have 10 seconds to move away..."  broadcast="true">
1248                <events>
1249                        <trigger>
1250                                <EventListener event="dockDelay2" />
1251                        </trigger>
1252                </events>
1253        </SimpleNotification>
1254
1255
1256    <EventTrigger name="timer1" activations="1" stayactive="true" delay=5 >
1257      <events>
1258        <trigger>
1259          <EventListener event="dockdelay2" />
1260        </trigger>
1261      </events>
1262    </EventTrigger>
1263
1264    <EventTrigger name="timerEnd" activations="1" stayactive="true" delay=10 >
1265      <events>
1266        <trigger>
1267          <EventListener event="timer1" />
1268        </trigger>
1269      </events>
1270    </EventTrigger>
1271
1272    <EventTrigger name="negativeTimerEnd" invert="true" delay=0 >
1273      <events>
1274        <trigger>
1275          <EventListener event="timerEnd" />
1276        </trigger>
1277      </events>
1278    </EventTrigger>
1279
1280<!-- ----------------------------------------------------- -->   
1281<!-- For Guard 1 -->
1282<!-- @Triggers: attacktriggerX <-> X enemies destroyed , X is an element of [1,4] -->
1283    <EventTrigger name="guard1trigger4" activations="1" stayactive="true" delay=0.1>
1284      <events>
1285        <trigger>
1286          <EventListener event="firstPatrol" />
1287        </trigger>
1288      </events>
1289      <EventTrigger name="guard1trigger3" activations="1" stayactive="true" delay=0.1>
1290        <events>
1291          <trigger>
1292            <EventListener event="firstPatrol" />
1293          </trigger>
1294        </events>
1295        <EventTrigger name="guard1trigger2" activations="1" stayactive="true" delay=0.1>
1296          <events>
1297            <trigger>
1298              <EventListener event="firstPatrol" />
1299            </trigger>
1300          </events>
1301          <EventTrigger name="guard1trigger1" activations="1" stayactive="true" delay=0.1>
1302            <events>
1303              <trigger>
1304                <EventListener event="firstPatrol" />
1305              </trigger>
1306            </events>
1307          </EventTrigger>
1308        </EventTrigger>
1309      </EventTrigger>
1310    </EventTrigger>
1311
1312<!-- For Guard 2 -->
1313<!-- @Triggers: attacktriggerX <-> X enemies destroyed , X is an element of [1,4] -->
1314    <EventTrigger name="guard2trigger4" activations="1" stayactive="true" delay=0.1>
1315      <events>
1316        <trigger>
1317          <EventListener event="secondPatrol" />
1318        </trigger>
1319      </events>
1320      <EventTrigger name="guard2trigger3" activations="1" stayactive="true" delay=0.1>
1321        <events>
1322          <trigger>
1323            <EventListener event="secondPatrol" />
1324          </trigger>
1325        </events>
1326        <EventTrigger name="guard2trigger2" activations="1" stayactive="true" delay=0.1>
1327          <events>
1328            <trigger>
1329              <EventListener event="secondPatrol" />
1330            </trigger>
1331          </events>
1332          <EventTrigger name="guard2trigger1" activations="1" stayactive="true" delay=0.1>
1333            <events>
1334              <trigger>
1335                <EventListener event="secondPatrol" />
1336              </trigger>
1337            </events>
1338          </EventTrigger>
1339        </EventTrigger>
1340      </EventTrigger>
1341    </EventTrigger>
1342
1343<!-- For Escape -->
1344        <EventTrigger name="spion5" stayactive="true" >
1345          <events>
1346            <trigger>
1347              <EventListener event="spion" />
1348            </trigger>
1349          </events>
1350        </EventTrigger>
1351
1352<!-- For last fight -->
1353    <EventTrigger name="guard3trigger6" activations="1" stayactive="true" delay=0.1 >
1354      <events>
1355        <trigger>
1356          <EventListener event="lastGuard" />
1357        </trigger>
1358      </events>
1359      <EventTrigger name="guard3trigger5" activations="1" stayactive="true" delay=0.1 >
1360        <events>
1361          <trigger>
1362            <EventListener event="lastGuard" />
1363          </trigger>
1364        </events>
1365        <EventTrigger name="guard3trigger4" activations="1" stayactive="true" delay=0.1 >
1366          <events>
1367            <trigger>
1368              <EventListener event="lastGuard" />
1369            </trigger>
1370          </events>
1371          <EventTrigger name="guard3trigger3" activations="1" stayactive="true" delay=0.1 >
1372            <events>
1373              <trigger>
1374                <EventListener event="lastGuard" />
1375              </trigger>
1376            </events>
1377            <EventTrigger name="guard3trigger2" activations="1" stayactive="true" delay=0.1 >
1378              <events>
1379                <trigger>
1380                  <EventListener event="lastGuard" />
1381                </trigger>
1382              </events>
1383              <EventTrigger name="guard3trigger1" activations="1" stayactive="true" delay=0.1 >
1384                <events>
1385                  <trigger>
1386                    <EventListener event="lastGuard" />
1387                  </trigger>
1388                </events>
1389              </EventTrigger>
1390            </EventTrigger>
1391          </EventTrigger>
1392        </EventTrigger>
1393      </EventTrigger>
1394    </EventTrigger>
1395       
1396<!-- ----------------------------------------------------- -->
1397<!-- Passive Pirates: Guard 1 -->
1398<SpaceShip position="8000,1000,0" lookat="8000,-1000,0" name="firstPatrol" radarname="Patrol">
1399  <events>
1400    <visibility>
1401      <EventListener event=spawntrigger2 />
1402    </visibility>
1403  </events>
1404  <templates>
1405    <Template link=spaceshippirate />
1406  </templates>
1407  <controller>
1408    <WaypointController team=1>
1409      <waypoints>
1410        <Model mesh="cube.mesh" scale=0 position="8000,-1000,0" />
1411        <Model mesh="cube.mesh" scale=0 position="8000,1000,0" />
1412      </waypoints>
1413    </WaypointController>
1414  </controller>
1415</SpaceShip>
1416
1417<SpaceShip position="8000,0,0" lookat="8000,0,-1000" name="firstPatrol" radarname="Patrol">
1418  <events>
1419    <visibility>
1420      <EventListener event=spawntrigger2 />
1421    </visibility>
1422  </events>
1423  <templates>
1424    <Template link=spaceshippirate />
1425  </templates>
1426  <controller>
1427    <WaypointController team=1>
1428      <waypoints>
1429        <Model mesh="cube.mesh" scale=0 position="8000,0,-1000" />
1430        <Model mesh="cube.mesh" scale=0 position="8000,0,1000" />
1431      </waypoints>
1432    </WaypointController>
1433  </controller>
1434</SpaceShip>
1435
1436
1437<!-- Active Pirates: Guard 1 -->
1438<SpaceShip position="8000,-1000,1000" lookat="8000,1000,-1000" name="firstPatrol" visible="true" radarname="Patrol" >
1439  <events>
1440    <visibility>
1441      <EventListener event=spawntrigger2 />
1442    </visibility>
1443  </events>
1444  <templates>
1445    <Template link=spaceshippirate />
1446  </templates>
1447  <controller>
1448    <WaypointPatrolController alertnessradius=5000 team=1 active=false>
1449      <waypoints>
1450        <Model mesh="cube.mesh" scale=0 position="8000,1000,-1000" />
1451        <Model mesh="cube.mesh" scale=0 position="8000,-1000,1000" />
1452      </waypoints>
1453      <events>
1454        <activity>
1455          <EventListener event=spawntrigger2 />
1456        </activity>
1457      </events>
1458    </WaypointPatrolController>
1459  </controller>
1460</SpaceShip>
1461
1462<SpaceShip position="8000,-500,-500" lookat="8000,1000,1000" name="firstPatrol" visible="true" radarname="Patrol">
1463  <events>
1464    <visibility>
1465      <EventListener event=spawntrigger2 />
1466    </visibility>
1467  </events>
1468  <templates>
1469    <Template link=spaceshippirate />
1470  </templates>
1471  <controller>
1472    <WaypointPatrolController alertnessradius=5000 team=1 active=false>
1473      <waypoints>
1474        <Model mesh="cube.mesh" scale=0 position="8000,1000,1000" />
1475        <Model mesh="cube.mesh" scale=0 position="8000,-1000,-1000" />
1476      </waypoints>
1477      <events>
1478        <activity>
1479          <EventListener event=spawntrigger2 />
1480        </activity>
1481      </events>
1482    </WaypointPatrolController>
1483  </controller>
1484</SpaceShip>
1485
1486<!-- Pirates Guard 2 -->
1487<SpaceShip position="18000,5000,15000" lookat="17700,4300,15000" name="secondPatrol" visible="true" radarname="Patrol">
1488  <events>
1489    <visibility>
1490      <EventListener event="guard1trigger4" />
1491    </visibility>
1492  </events>
1493  <templates>
1494    <Template link=spaceshippirate />
1495  </templates>
1496  <controller>
1497    <WaypointPatrolController alertnessradius=5000 team=1 active=false>
1498      <waypoints>
1499        <Model mesh="cube.mesh" scale=0 position="17700,4300,15000" />
1500        <Model mesh="cube.mesh" scale=0 position="17000,4000,15000" />
1501        <Model mesh="cube.mesh" scale=0 position="16300,4300,15000" />
1502        <Model mesh="cube.mesh" scale=0 position="16000,5000,15000" />
1503        <Model mesh="cube.mesh" scale=0 position="16300,5700,15000" />
1504        <Model mesh="cube.mesh" scale=0 position="17000,6000,15000" />
1505        <Model mesh="cube.mesh" scale=0 position="17700,5700,15000" />
1506        <Model mesh="cube.mesh" scale=0 position="18000,5000,15000" />
1507      </waypoints>
1508      <events>
1509        <activity>
1510          <EventListener event="guard1trigger4" />
1511        </activity>
1512      </events>
1513    </WaypointPatrolController>
1514  </controller>
1515</SpaceShip>
1516
1517<SpaceShip position="16000,5000,15000" lookat="16300,5700,15000" name="secondPatrol" visible="true" radarname="Patrol">
1518  <events>
1519    <visibility>
1520      <EventListener event="guard1trigger4" />
1521    </visibility>
1522  </events>
1523  <templates>
1524    <Template link=spaceshippirate />
1525  </templates>
1526  <controller>
1527    <WaypointPatrolController alertnessradius=5000 team=1 active=false>
1528      <waypoints>
1529        <Model mesh="cube.mesh" scale=0 position="16300,5700,15000" />
1530        <Model mesh="cube.mesh" scale=0 position="17000,6000,15000" />
1531        <Model mesh="cube.mesh" scale=0 position="17700,5700,15000" />
1532        <Model mesh="cube.mesh" scale=0 position="18000,5000,15000" />
1533        <Model mesh="cube.mesh" scale=0 position="17700,4300,15000" />
1534        <Model mesh="cube.mesh" scale=0 position="17000,4000,15000" />
1535        <Model mesh="cube.mesh" scale=0 position="16300,4300,15000" />
1536        <Model mesh="cube.mesh" scale=0 position="16000,5000,15000" />
1537      </waypoints>
1538      <events>
1539        <activity>
1540          <EventListener event="guard1trigger4" />
1541        </activity>
1542      </events>
1543    </WaypointPatrolController>
1544  </controller>
1545</SpaceShip>
1546
1547<SpaceShip position="17000,4000,15000" lookat="16300,4300,15000" name="secondPatrol" visible="true" radarname="Patrol">
1548  <events>
1549    <visibility>
1550      <EventListener event="guard1trigger4" />
1551    </visibility>
1552  </events>
1553  <templates>
1554    <Template link=spaceshippirate />
1555  </templates>
1556  <controller>
1557    <WaypointPatrolController alertnessradius=5000 team=1 active=false>
1558      <waypoints>
1559        <Model mesh="cube.mesh" scale=0 position="16300,4300,15000" />
1560        <Model mesh="cube.mesh" scale=0 position="16000,5000,15000" />
1561        <Model mesh="cube.mesh" scale=0 position="16300,5700,15000" />
1562        <Model mesh="cube.mesh" scale=0 position="17000,6000,15000" />
1563        <Model mesh="cube.mesh" scale=0 position="17700,5700,15000" />
1564        <Model mesh="cube.mesh" scale=0 position="18000,5000,15000" />
1565        <Model mesh="cube.mesh" scale=0 position="17700,4300,15000" />
1566        <Model mesh="cube.mesh" scale=0 position="17000,4000,15000" />
1567      </waypoints>
1568      <events>
1569        <activity>
1570          <EventListener event="guard1trigger4" />
1571        </activity>
1572      </events>
1573    </WaypointPatrolController>
1574  </controller>
1575</SpaceShip>
1576
1577<SpaceShip position="17000,6000,15000" lookat="17700,5700,15000" name="secondPatrol" visible="true" radarname="Patrol">
1578  <events>
1579    <visibility>
1580      <EventListener event="guard1trigger4" />
1581    </visibility>
1582  </events>
1583  <templates>
1584    <Template link=spaceshippirate />
1585  </templates>
1586  <controller>
1587    <WaypointPatrolController alertnessradius=5000 team=1 active=false>
1588      <waypoints>
1589        <Model mesh="cube.mesh" scale=0 position="17700,5700,15000" />
1590        <Model mesh="cube.mesh" scale=0 position="18000,5000,15000" />
1591        <Model mesh="cube.mesh" scale=0 position="17700,4300,15000" />
1592        <Model mesh="cube.mesh" scale=0 position="17000,4000,15000" />
1593        <Model mesh="cube.mesh" scale=0 position="16300,4300,15000" />
1594        <Model mesh="cube.mesh" scale=0 position="16000,5000,15000" />
1595        <Model mesh="cube.mesh" scale=0 position="16300,5700,15000" />
1596        <Model mesh="cube.mesh" scale=0 position="17000,6000,15000" />
1597      </waypoints>
1598      <events>
1599        <activity>
1600          <EventListener event="guard1trigger4" />
1601        </activity>
1602      </events>
1603    </WaypointPatrolController>
1604  </controller>
1605</SpaceShip>
1606
1607<!-- Escape-Ship (Scout) -->
1608<SpaceShip position="16000,4000,16000" lookat="-12000, -22000, 25000" name="spion" visible="true" radarname="Scout" >
1609  <events>
1610    <visibility>
1611      <EventListener event="guard2trigger1" />
1612    </visibility>
1613  </events>
1614  <templates>
1615    <Template link=spaceshippirate />
1616  </templates>
1617  <controller>
1618    <WaypointController team=1>
1619      <waypoints>
1620        <Model mesh="cube.mesh" scale=0 position="14000, 1000, 22000" />
1621        <Model mesh="cube.mesh" scale=0 position="0, -10000, 42000" />
1622      </waypoints>
1623      <events>
1624        <activity>
1625          <EventListener event="guard2trigger1" />
1626        </activity>
1627      </events>
1628    </WaypointController>
1629  </controller>
1630<!--  Should be realized, if possible...
1631  <attached>
1632    <DistanceTriggerBeacon name="spionBeacon" />
1633  </attached>
1634-->
1635</SpaceShip>
1636
1637<!-- Pirates Mainship -->
1638<SpaceShip position="-10000, -20000, 24000" lookat="-10000, -22000, 24000" name="lastGuard" visible="true" radarname="Pirate" >
1639  <events>
1640    <visibility>
1641      <EventListener event="guard2trigger4" />
1642    </visibility>
1643  </events>
1644  <templates>
1645    <Template link=spaceshippirate />
1646  </templates>
1647  <controller>
1648    <WaypointPatrolController alertnessradius=5000 team=1 active=false>
1649      <waypoints>
1650        <Model mesh="cube.mesh" scale=0 position="-9500, -22000, 24000" /> <!-- -12000, -22000, 25000    -4000, -18000, 19000 -->
1651        <Model mesh="cube.mesh" scale=0 position="-10500, -22000, 23000" />
1652        <Model mesh="cube.mesh" scale=0 position="-11000, -20000, 23000" />
1653        <Model mesh="cube.mesh" scale=0 position="-10000, -20000, 24000" />
1654      </waypoints>
1655      <events>
1656        <activity>
1657          <EventListener event="guard2trigger4" />
1658        </activity>
1659      </events>
1660    </WaypointPatrolController>
1661  </controller>
1662</SpaceShip>
1663
1664<SpaceShip position="-10000, -22000, 24000" lookat="-11000, -22000, 23000" name="lastGuard" visible="true" radarname="Pirate" >
1665  <events>
1666    <visibility>
1667      <EventListener event="guard2trigger4" />
1668    </visibility>
1669  </events>
1670  <templates>
1671    <Template link=spaceshippirate />
1672  </templates>
1673  <controller>
1674    <WaypointPatrolController alertnessradius=5000 team=1 active=false>
1675      <waypoints>
1676        <Model mesh="cube.mesh" scale=0 position="-10500, -22000, 23000" />
1677        <Model mesh="cube.mesh" scale=0 position="-11000, -20000, 23000" />
1678        <Model mesh="cube.mesh" scale=0 position="-10000, -20000, 24000" />       
1679        <Model mesh="cube.mesh" scale=0 position="-9500, -22000, 24000" />
1680      </waypoints>
1681      <events>
1682        <activity>
1683          <EventListener event="guard2trigger4" />
1684        </activity>
1685      </events>
1686    </WaypointPatrolController>
1687  </controller>
1688</SpaceShip>
1689
1690<SpaceShip position="-11000, -22000, 23000" lookat="-11000, -20000, 23000" name="lastGuard" visible="true" radarname="Pirate" >
1691  <events>
1692    <visibility>
1693      <EventListener event="guard2trigger4" />
1694    </visibility>
1695  </events>
1696  <templates>
1697    <Template link=spaceshippirate />
1698  </templates>
1699  <controller>
1700    <WaypointPatrolController alertnessradius=5000 team=1 active=false>
1701      <waypoints>
1702        <Model mesh="cube.mesh" scale=0 position="-11000, -20000, 23000" />
1703        <Model mesh="cube.mesh" scale=0 position="-10000, -20000, 24000" />       
1704        <Model mesh="cube.mesh" scale=0 position="-9500, -22000, 24000" />
1705        <Model mesh="cube.mesh" scale=0 position="-10500, -22000, 23000" />
1706      </waypoints>
1707      <events>
1708        <activity>
1709          <EventListener event="guard2trigger4" />
1710        </activity>
1711      </events>
1712    </WaypointPatrolController>
1713  </controller>
1714</SpaceShip>
1715
1716<SpaceShip position="-11000, -20000, 23000" lookat="-10000, -20000, 24000" name="lastGuard" visible="true" radarname="Pirate" >
1717  <events>
1718    <visibility>
1719      <EventListener event="guard2trigger4" />
1720    </visibility>
1721  </events>
1722  <templates>
1723    <Template link=spaceshippirate />
1724  </templates>
1725  <controller>
1726    <WaypointPatrolController alertnessradius=5000 team=1 active=false>
1727      <waypoints>
1728        <Model mesh="cube.mesh" scale=0 position="-10000, -20000, 24000" />       
1729        <Model mesh="cube.mesh" scale=0 position="-9500, -22000, 24000" />
1730        <Model mesh="cube.mesh" scale=0 position="-10500, -22000, 23000" />
1731        <Model mesh="cube.mesh" scale=0 position="-11000, -20000, 23000" />
1732      </waypoints>
1733      <events>
1734        <activity>
1735          <EventListener event="guard2trigger4" />
1736        </activity>
1737      </events>
1738    </WaypointPatrolController>
1739  </controller>
1740</SpaceShip>
1741
1742<!-- Additional pirates if the scout has warned the mainship -->
1743<SpaceShip position="-10500, -20000, 23500" lookat="-10000, -21000, 24000" name="lastGuard" visible="true" radarname="Pirate" >
1744  <events>
1745    <visibility>
1746      <EventListener event="spionTrigger" />
1747    </visibility>
1748  </events>
1749  <templates>
1750    <Template link=spaceshippirate />
1751  </templates>
1752  <controller>
1753    <WaypointPatrolController alertnessradius=5000 team=1 active=false>
1754      <waypoints>
1755        <Model mesh="cube.mesh" scale=0 position="-9750, -21000, 24000" />
1756        <Model mesh="cube.mesh" scale=0 position="-10000, -22000, 23500" />
1757        <Model mesh="cube.mesh" scale=0 position="-10750, -21000, 23000" />
1758        <Model mesh="cube.mesh" scale=0 position="-10500, -20000, 23500" />
1759      </waypoints>
1760      <events>
1761        <activity>
1762          <EventListener event="spionTrigger" />
1763        </activity>
1764      </events>
1765    </WaypointPatrolController>
1766  </controller>
1767</SpaceShip>
1768
1769<SpaceShip position="-10500, -22000, 23500" lookat="-11000, -21000, 23000" name="lastGuard" visible="true" radarname="Pirate" >
1770  <events>
1771    <visibility>
1772      <EventListener event="spionTrigger" />
1773    </visibility>
1774  </events>
1775  <templates>
1776    <Template link=spaceshippirate />
1777  </templates>
1778  <controller>
1779    <WaypointPatrolController alertnessradius=5000 team=1 active=false>
1780      <waypoints>
1781        <Model mesh="cube.mesh" scale=0 position="-10750, -21000, 23000" />
1782        <Model mesh="cube.mesh" scale=0 position="-10500, -20000, 23500" />
1783        <Model mesh="cube.mesh" scale=0 position="-9750, -21000, 24000" />
1784        <Model mesh="cube.mesh" scale=0 position="-10000, -22000, 23500" />
1785      </waypoints>
1786      <events>
1787        <activity>
1788          <EventListener event="spionTrigger" />
1789        </activity>
1790      </events>
1791    </WaypointPatrolController>
1792  </controller>
1793</SpaceShip>
1794
1795<!-- Captain Hood (Friend) -->
1796<SpaceShip position="8500, 2000, 17000" lookat="0, -1000, 18000" name="friend" visible="true" radarname="Hood" >
1797  <events>
1798    <visibility>
1799      <EventListener event="guard2trigger4" />
1800    </visibility>
1801  </events>
1802  <templates>
1803    <Template link=spaceshipswallow />
1804  </templates>
1805  <controller>
1806    <WaypointPatrolController alertnessradius=5000 team=0 active=false>
1807      <waypoints>
1808        <Model mesh="cube.mesh" scale=0 position="-4000, -9000, 18000" />
1809        <Model mesh="cube.mesh" scale=0 position="-11500, -22000, 25000" />
1810      </waypoints>
1811      <events>
1812        <activity>
1813          <EventListener event="reached" />
1814        </activity>
1815      </events>
1816    </WaypointPatrolController>
1817  </controller>
1818</SpaceShip>
1819
1820<BlinkingBillboard position="10000, 2000, 17000" colour="1.0, 1.0, 0.0" frequency=0.5 amplitude=20 material="Examples/Flare" >
1821  <events>
1822    <visibility>
1823      <EventTrigger>
1824        <EventTrigger invert=true>
1825          <events>
1826            <trigger>
1827              <EventListener event="reached" />
1828            </trigger>
1829          </events>
1830        </EventTrigger>
1831        <events>
1832          <trigger>
1833            <EventListener event="spion5" />
1834          </trigger>
1835        </events>
1836      </EventTrigger>
1837    </visibility>
1838  </events>
1839</BlinkingBillboard>
1840
1841<SimpleNotification message="Houston: Your friend Captain Hood is dead..."  broadcast="true">
1842        <events>
1843                <trigger>
1844                        <EventListener event="friend" />
1845                </trigger>
1846        </events>
1847</SimpleNotification>
1848
1849<EventTrigger name="friendDelay1" stayactive="true" delay=5.0 >
1850  <events>
1851    <trigger>
1852      <EventListener event="friend" />
1853    </trigger>
1854  </events>
1855</EventTrigger>
1856
1857<SimpleNotification message="Vane: NOOOOO!!!"  broadcast="true">
1858        <events>
1859                <trigger>
1860                        <EventListener event="friendDelay1" />
1861                </trigger>
1862        </events>
1863</SimpleNotification>
1864
1865<EventTrigger name="friendDelay2" stayactive="true" delay=5.0 >
1866  <events>
1867    <trigger>
1868      <EventListener event="friendDelay1" />
1869    </trigger>
1870  </events>
1871</EventTrigger>
1872
1873<SimpleNotification message="Houston: He died in a fight like he wished it!"  broadcast="true">
1874        <events>
1875                <trigger>
1876                        <EventListener event="friendDelay2" />
1877                </trigger>
1878        </events>
1879</SimpleNotification>
1880
1881<!-- ----------------------------------------------------- -->
1882
1883<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" />
1884
1885
1886
1887<!-- ASTEROIDS & ASTEROID-FIELDS -->
1888        <!-- Asteroids -->
1889        <Model  position="9800, -5000, 5700"
1890                yaw="90"
1891                pitch="-90"
1892                roll="0"
1893                scale="200"
1894                mesh="asteroid_ice.mesh" >
1895          <attached>
1896<!--        <Model mass=10 scale3D="0.5,0.5,0.5" mesh="cube.mesh" position = "0,0,0" yaw=0 pitch=0 roll=0 /> -->
1897          </attached>
1898          <collisionShapes>
1899            <SphereCollisionShape radius=0.5 />
1900          </collisionShapes>
1901        </Model>
1902
1903        <!-- triple large belt around the planet  -->
1904        <?lua
1905                dofile("includes/asteroidField.lua")
1906                asteroidBelt(2000, -250, 9000, 30, 0, 30, 30, 50, 7190, 7800, 250, 1)
1907        ?>
1908
1909        <?lua
1910                dofile("includes/asteroidField.lua")
1911                asteroidBelt(2000, -250, 9000, 30, 0, 30, 30, 50, 10000, 11000, 300, 1)
1912        ?>
1913
1914        <?lua
1915                dofile("includes/asteroidField.lua")
1916                asteroidBelt(2000, -250, 9000, 30, 0, 30, 30, 50, 14000, 15000, 350, 1)
1917        ?>
1918
1919        <!-- between guard 2 & mainship -->
1920                <!-- Core -->   
1921                <?lua
1922                        dofile("includes/asteroidField.lua")
1923                        asteroidField(-5000, -10000, 30000, 10, 700, 8000, 80, 0)
1924                ?>
1925       
1926                <!-- Peripherie -->
1927                <?lua
1928                        dofile("includes/asteroidField.lua")
1929                        asteroidField(-5000, -10000, 30000, 10, 50, 10000, 100, 0)
1930                ?>
1931
1932                <?lua
1933                        dofile("includes/asteroidField.lua")
1934                        asteroidBelt(-10000, -12500, 0, 0, 0, 30, 30, 500, 0, 7850, 150, 0)
1935                ?>
1936
1937        <!-- PLANETS -->
1938        <Planet         position="2000,-250,9000"
1939                        scale=5000
1940                        pitch=1
1941                        mesh="iceplanet.mesh"
1942                        atmosphere="atmosphere1"
1943                        rotationaxis="1,1,0"
1944                        rotationrate="0.5"
1945                        atmospheresize=224.0f
1946                        imagesize=1024.0f
1947                        mass="10000000"
1948                        angularDamping=0
1949                        collisiondamage=2
1950                        enablecollisiondamage=true
1951                        collisionType="dynamic" />
1952
1953
1954<!-- ----------------Rotating SpaceStation--------------- -->
1955        <!-- first guard -->
1956        <StaticEntity position="9000,0,0" collisionType=static yaw=112 pitch=67 >
1957          <attached>
1958            <?lua
1959              createSpaceStationPar(0,2,1,2,1,4,1,50)
1960            ?>
1961          </attached>
1962        </StaticEntity>
1963
1964        <!-- second guard -->
1965        <StaticEntity position="17000,5000,15000" collisionType=static yaw=12 pitch=75 >
1966          <attached>
1967            <?lua
1968              createSpaceStationPar(0,2,1,2,1,4,1,50)
1969            ?>
1970          </attached>
1971        </StaticEntity>
1972
1973<!-- ------------------------- Mainship ------------------ -->
1974    <SpaceShip
1975        team      = 1
1976        position  = "-12000, -22000, 25000"
1977        mass      = 10000000000
1978        health    = 100000 initialhealth=100000 maxhealth="100000"
1979        name      = "Mainship"
1980        radarname = "Mainship"
1981        visible   = "true" >
1982      <controller>
1983        <WaypointController team=1 active="true" >
1984          <waypoints/>
1985          <events>
1986            <activity>
1987              <EventListener event=spawntrigger2 />
1988            </activity>
1989          </events>
1990        </WaypointController>
1991      </controller>
1992      <attached>
1993        <Model scale=200 mesh="drone.mesh" position = "0,0,0" lookat="40000, 4000, 27000" />
1994<!--    <Model mesh="cube.mesh" mass=10 position="-445,110,120" scale3D="45,45,150"  yaw=56 pitch=-4 roll=0 />
1995        <Model mesh="cube.mesh" mass=10 position="-295,125,220" scale3D="28,28,28" yaw=56 pitch=-4 roll=0 />
1996        <Model mesh="cube.mesh" mass=10 position="-400,350,-200" scale3D="80,280,800" yaw=56 pitch=-4 roll=5 />
1997        <Model mesh="cube.mesh" mass=10 position="-300,630,-100" scale3D="250,50,500" yaw=56 pitch=-4 roll=5 />
1998        <Model mesh="cube.mesh" mass=10 position="-150,-150,-550" scale3D="80,280,800"  yaw=56 pitch=-4 roll=65 />
1999        <Model mesh="cube.mesh" mass=10 position="150,-270,-600" scale3D="250,50,500" yaw=56 pitch=-4 roll=65 />
2000        <Model mesh="cube.mesh" mass=10 position="-500,-250,0" scale3D="80,280,800" yaw=56 pitch=-4 roll=-50 />
2001        <Model mesh="cube.mesh" mass=10 position="-500,-420,250" scale3D="250,50,500" yaw=56 pitch=-4 roll=-50 /> -->
2002      </attached>
2003      <collisionShapes>
2004        <BoxCollisionShape  position="-445,110,120" halfExtents="45,45,150" yaw=56 pitch=-4 roll=0 />
2005        <BoxCollisionShape  position="-295,125,220" halfExtents="28,28,28" yaw=56 pitch=-4 roll=0 />
2006        <BoxCollisionShape  position="-400,350,-200" halfExtents="80,280,800" yaw=56 pitch=-4 roll=5 />
2007        <BoxCollisionShape  position="-300,630,-100" halfExtents="250,50,500" yaw=56 pitch=-4 roll=5 />
2008        <BoxCollisionShape  position="-150,-150,-550" halfExtents="80,280,800" yaw=56 pitch=-4 roll=65 />
2009        <BoxCollisionShape  position="150,-270,-600" halfExtents="250,50,500" yaw=56 pitch=-4 roll=65 />
2010        <BoxCollisionShape  position="-500,-250,0" halfExtents="80,280,800" yaw=56 pitch=-4 roll=-50 />
2011        <BoxCollisionShape  position="-500,-420,250" halfExtents="250,50,500" yaw=56 pitch=-4 roll=-50 />
2012      </collisionShapes>
2013      <events>
2014        <visibility>
2015          <EventListener event="negativeTimerEnd" />
2016        </visibility>
2017      </events>
2018    </SpaceShip>
2019
2020    <!-- PARTICLE EFFECT -->
2021    <ParticleSpawner position="-12000, -22000, 25000" source="Orxonox/RingExp" autostart="false" lifetime=500 loop=0 startdelay=0.5>
2022        <events>
2023            <spawn>
2024                <EventListener event="timerEnd" />
2025            </spawn>
2026        </events>
2027    </ParticleSpawner>
2028    <ParticleSpawner position="-12000, -22000, 25000" source="Orxonox/RingExp2" autostart="false" lifetime=500 loop=0 startdelay=0>
2029        <events>
2030            <spawn>
2031                <EventListener event="timerEnd" />
2032            </spawn>
2033        </events>
2034    </ParticleSpawner>
2035    <ParticleSpawner position="-12000, -22000, 25000" source="Orxonox/RingExp3" autostart="false" lifetime=500 loop=0 startdelay=0>
2036        <events>
2037            <spawn>
2038                <EventListener event="timerEnd" />
2039            </spawn>
2040        </events>
2041    </ParticleSpawner>
2042
2043  </Scene>
2044</Level>
2045
Note: See TracBrowser for help on using the repository browser.