Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/levelMichael/data/levels/Spacefight.oxw @ 10158

Last change on this file since 10158 was 9894, checked in by schlaem, 11 years ago

some more details…

File size: 52.8 KB
Line 
1<!--Spacefight-->
2
3<!--
4To Do:
5- Discuss between Player and Captain Hood
6- If possible, do the spion with DistanceTriggerBeacon
7- Place the explosion right (time and place)
8- bigger explosion?
9- collisionShape for mainship
10- DistanceTriggerBeacon for Captain Hood
11-->
12
13<LevelInfo
14 name = "Spacefight"
15 description = "Level with the big Spacefight"
16 tags = "mission"
17 screenshot = "emptylevel.png"
18/>
19
20<?lua
21  include("stats.oxo")
22  include("HUDTemplates3.oxo")
23  include("templates/lodInformation.oxt")
24?>
25
26<?lua
27  include("templates/spaceshipAssff2.oxt")
28  include("templates/spaceshipPirate.oxt")
29  include("templates/spaceshipEscort.oxt")
30  include("templates/spaceshipSwallow.oxt")
31  include("templates/pickupRepresentationTemplates.oxt")
32  include("templates/spaceshipCollateralDamage.oxt")
33?>
34<?lua
35    dofile("includes/CuboidSpaceStation.lua")
36?>
37
38<Level
39  gametype = "Mission"
40>
41  <templates>
42    <Template link=lodtemplate_default />
43  </templates>
44
45  <?lua include("includes/notifications.oxi") ?>
46
47
48  <NotificationQueueCEGUI
49    name="narrative"
50    targets="simpleNotification"
51    size=3
52    displayTime=4.9
53    position="0.2, 0, 0.1, 0"
54    fontSize="23"
55    fontColor="0.3, 1, 0.2, 0.8"
56    alignment="HorzCentred"
57    displaySize="0.6, 0, 0, 0"
58    />
59
60<Scene
61    ambientlight = "0.8, 0.8, 0.8"
62    skybox       = "Orxonox/Starbox"
63  >
64  <?lua include("includes/pickups.oxi") ?>
65
66<Script code="showGUI NotificationLayer false true" needsGraphics="true" />
67<OverlayGroup name="spacefightHUD" scale = "1, 1">
68  <CountDown
69     position    = "0.51, 0.05"
70     pickpoint   = "0.0, 0.0"
71     font        = "ShareTechMono"
72     textsize    = 0.1
73     colour      = "1.0, 1.0, 1.0, 1.0"
74     align       = "center"                 
75     counter     = "10.0"
76     speedfactor = "1.0"
77     active      = "false"
78  >
79    <events>
80      <activity>
81        <EventListener event="timer1" />
82      </activity>
83    </events>
84  </CountDown>
85</OverlayGroup>
86
87<!-- SPAWNTRIGGER -->
88        <!-- StartPoint (0, 0, 0), lookat=(100, 0, 0) -->
89        <SpawnPoint team=0 position="-12350, -21950, 25500" lookat="-12350, -21950, 25300" spawnclass=SpaceShip pawndesign=spaceshipswallow > <!-- pawndesign=spaceshipcollateraldamage -->
90          <events>
91            <activity>
92              <EventListener event="flying12" />
93            </activity>
94          </events>
95        </SpawnPoint>
96
97        <EventTrigger name="flying12" invert="true" >
98          <events>
99            <trigger>
100              <EventListener event="flying1" />
101            </trigger>
102          </events>
103        </EventTrigger>
104
105        <!-- Second Spawnpoint (after first guard) --
106        <SpawnPoint team=0 position="13500, 2500, 10500" lookat="18000,5000,18000" spawnclass=SpaceShip pawndesign=spaceshipswallow > <!-- pawndesign=spaceshipcollateraldamage --
107          <events>
108            <activity>
109              <EventTrigger>
110                <EventTrigger invert=true >
111                  <events>
112                    <trigger>
113                      <EventListener event="reached" />
114                    </trigger>
115                  </events>
116                </EventTrigger>
117                <events>
118                  <trigger>
119                    <EventListener event="flying1" />
120                  </trigger>
121                </events>
122              </EventTrigger>
123            </activity>
124          </events>
125        </SpawnPoint>
126       
127        <!-- Thirth Spawnpoint (when reached Captain Hood) --
128        <SpawnPoint team=0 position="-4000, -18000, 19000" lookat="-12000, -22000, 25000" spawnclass=SpaceShip pawndesign=spaceshipswallow > <!-- pawndesign=spaceshipcollateraldamage --
129          <events>
130            <activity>
131              <EventTrigger>
132                <EventTrigger invert=true >
133                  <events>
134                    <trigger>
135                      <EventListener event="timerEnd" />
136                    </trigger>
137                  </events>
138                </EventTrigger>
139                <events>
140                  <trigger>
141                    <EventListener event="reached" />
142                  </trigger>
143                </events>
144              </EventTrigger>
145            </activity>
146          </events>
147        </SpawnPoint>
148
149        <!-- Distance-Spawn-Trigger (0, 0, 0) -->
150        <DistanceTrigger name=spawntrigger2 position="-12350, -21950, 25500" target="SpaceShip" distance=10 stayActive="true" delay=0 />
151
152        <!-- Drone pickup -->
153        <PickupSpawner pickup=dronepickup position="9750, -5350, 5650" triggerDistance="100" respawnTime="30" maxSpawnedItems="2" />
154
155<!-- QUEST DESCRIPTION -->
156        <LocalQuest id="spacefight.guard1">
157                <QuestDescription
158                        title="Eliminate the first guard!"
159                        description="You've reached the enemys Station and they haven't seen you yet.
160
161                                Ahead you see the first little patrol.
162                                There are two little battleships and also two unarmed ships.
163                                The unarmed could not attack you. So first destroy the battleships!"
164                        failMessage="You've lost all your ships!"
165                        completeMessage="Well done!" />
166        </LocalQuest>
167
168        <LocalQuest id="spacefight.upgrade1">
169                <QuestDescription
170                        title="Prepare for the fight (optional)"
171                        description="Your friends has an arsenal left behind near by your position.
172                                perhaps you find something useful there...
173                                Hint: look for a big asteroid."
174                        failMessage="You've lost all your ships!"
175                        completeMessage="Your ship is prepared best for the second and last guard on the way to the mainship.
176                                Now attack the second guard!" />
177        </LocalQuest>
178
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
235        <LocalQuest id="spacefight.rescue" >
236                <QuestDescription
237                        title="Rescue and place the bomb"
238                        description="Now you have to free the commander and place a bomb in the pirates' mainship."
239                        failMessage="You've lost all your ships!"
240                        completeMessage="" />
241                <complete-effects>
242                        <AddQuest questId="spacefight.moveAway" />
243                </complete-effects>
244        </LocalQuest>
245
246        <LocalQuest id="spacefight.moveAway" >
247                <QuestDescription
248                        title="Get away!"
249                        description="Get away of the mainship before the bomb detonates."
250                        failMessage="You've lost all your ships!"
251                        completeMessage="Done!" />
252        </LocalQuest>
253
254        <!-- GRAND EXPLOSION IF POSSIBLE -->
255        <!-- Next Part -->
256-->
257       
258<!-- ---------------------------------------------------------------------- -->
259
260<!-- QuestEffectBeacon's -->
261        <!-- START -->
262        <QuestEffectBeacon times=0>
263                <effects>
264                        <AddQuest questId="spacefight.guard1" />
265                </effects>
266                <events>
267                        <execute>
268                                <EventListener event=spawntrigger2 />
269                        </execute>
270                </events>
271        </QuestEffectBeacon>
272
273        <QuestEffectBeacon times=0>
274                <events>
275                        <execute>
276                                <EventListener event="flying1" />
277                        </execute>
278                </events>
279                <effects>
280                        <CompleteQuest questId="spacefight.guard1" />
281                </effects>
282        </QuestEffectBeacon>
283
284        <SimpleNotification message="Well done!"  broadcast="true">
285                <events>
286                        <trigger>
287                                <EventListener event="flying1" />
288                        </trigger>
289                </events>
290        </SimpleNotification>
291
292        <EventTrigger name="flying1delay" activations="1" stayactive="true" delay=5.1 >
293          <events>
294            <trigger>
295              <EventListener event="flying1" />
296            </trigger>
297          </events>
298        </EventTrigger>
299
300        <SimpleNotification message="The green light shows you the way!"  broadcast="true" >
301                <events>
302                        <trigger>
303                                <EventListener event="flying1delay" />
304                        </trigger>
305                </events>
306        </SimpleNotification>
307
308        <BlinkingBillboard position="11000, 1000, 7000" colour="0.0, 1.0, 0.0" frequency=0.5 amplitude=10 material="Examples/Flare" >
309          <events>
310            <visibility>
311              <EventTrigger>
312                <EventTrigger invert=true>
313                  <events>
314                    <trigger>
315                      <EventListener event="flying2" />
316                    </trigger>
317                  </events>
318                </EventTrigger>
319                <events>
320                  <trigger>
321                    <EventListener event="flying1" />
322                  </trigger>
323                </events>
324              </EventTrigger>
325            </visibility>
326          </events>
327        </BlinkingBillboard>
328       
329        <!-- Drone (optional) -->
330        <QuestEffectBeacon times=0>
331                <effects>
332                        <AddQuest questId="spacefight.upgrade1" />
333                </effects>
334                <events>
335                        <execute>
336                                <EventListener event="droneTrigger" />
337                        </execute>
338                </events>
339        </QuestEffectBeacon>   
340
341        <QuestEffectBeacon times=0>
342                <effects>
343                        <CompleteQuest questId="spacefight.upgrade1" />
344                </effects>
345                <events>
346                        <execute>
347                                <EventListener event="drone1" />
348                        </execute>
349                </events>
350        </QuestEffectBeacon>
351
352        <QuestEffectBeacon times=0>
353                <effects>
354                        <CompleteQuest questId="spacefight.upgrade1" />
355                </effects>
356                <events>
357                        <execute>
358                                <EventListener event="victory" />
359                        </execute>
360                </events>
361        </QuestEffectBeacon>
362       
363        <!-- Guard 2 -->
364        <QuestEffectBeacon times=0>
365                <effects>
366                        <AddQuest questId="spacefight.guard2" />
367                </effects>
368                <events>
369                        <execute>
370                                <EventListener event="droneTrigger" />
371                        </execute>             
372                </events>
373        </QuestEffectBeacon>
374
375        <QuestEffectBeacon times=0>
376                <effects>
377                        <CompleteQuest questId="spacefight.guard2" />
378                </effects>
379                <events>
380                        <execute>
381                                <EventListener event="flying2" />
382                        </execute>             
383                </events>
384        </QuestEffectBeacon>
385
386        <!-- ESCAPE -->
387        <SimpleNotification message="A scout is startet to the mainship!"  broadcast="true">
388                <events>
389                        <trigger>
390                                <EventListener event="guard2trigger1" />
391                        </trigger>
392                </events>
393        </SimpleNotification>
394
395        <QuestEffectBeacon times=0>
396                <effects>
397                        <AddQuest questId="spacefight.escape" />
398                </effects>
399                <events>
400                        <execute>
401                                <EventListener event="escape10" />
402                        </execute>
403                </events>
404        </QuestEffectBeacon>
405
406        <!-- ESCAPE ENDING -->
407        <!-- Spion escaped -->
408        <QuestEffectBeacon times=0>
409                <effects>
410                        <CompleteQuest questId="spacefight.escape" />
411                        <AddQuest questId="spacefight.mainfight(max)" />
412                </effects>
413                <events>
414                        <execute>
415                                <EventListener event="spionTrigger" />
416                        </execute>
417                </events>
418        </QuestEffectBeacon>
419
420        <!-- TEST -->
421        <QuestEffectBeacon>
422                <effects>
423                        <AddQuest questId="spacefight.escape" />
424                </effects>
425                <events>
426                        <execute>
427                                <EventListener event=spawntrigger2 />
428                        </execute>
429                </events>
430        </QuestEffectBeacon>
431
432        <!-- Spion destroyed -->
433        <QuestEffectBeacon>
434                <effects>
435                        <CompleteQuest questId="spacefight.escape" />
436                        <AddQuest questId="spacefight.mainfight(min)" />
437                </effects>
438                <events>
439                        <execute>
440                                <EventListener event="spion5" />
441                        </execute>
442                </events>
443        </QuestEffectBeacon>
444
445        <!-- LAST FIGHT -->
446        <!-- Spion destroyed -->
447        <QuestEffectBeacon>
448                <effects>
449                        <CompleteQuest questId="spacefight.mainfight(min)" />
450                </effects>
451                <events>
452                        <execute>
453                                <EventListener event="guard3trigger4" />
454                        </execute>
455                </events>
456        </QuestEffectBeacon>
457
458        <!-- Spion escaped -->
459        <QuestEffectBeacon>
460                <effects>
461                        <CompleteQuest questId="spacefight.mainfight(max)" />
462                </effects>
463                <events>
464                        <execute>
465                                <EventListener event="guard3trigger6" />
466                        </execute>
467                </events>
468        </QuestEffectBeacon>
469
470        <!-- COMMANDER RESCUE -->
471        <QuestEffectBeacon>
472                <effects>
473                        <CompleteQuest questId="spacefight.rescue" />
474                </effects>
475                <events>
476                        <execute>
477                                <EventListener event="dock" />
478                        </execute>
479                </events>
480        </QuestEffectBeacon>
481
482        <!-- FLY AWAY -->
483        <QuestEffectBeacon>
484                <effects>
485                        <CompleteQuest questId="spacefight.moveAway" />
486                </effects>
487                <events>
488                        <execute>
489                                <EventListener event="" />
490                        </execute>
491                </events>
492        </QuestEffectBeacon>
493
494<!-- ---------------------------------------------------------------------- -->
495        <!-- Helper-Trigger for first guard -->
496        <DistanceTrigger name="flying1" position="9000, 0, 0" target="SpaceShip" distance=10000 stayActive="true" delay=0.1 >
497                <EventTrigger>
498                        <events>
499                                <trigger>
500                                        <EventListener event="guard1trigger4" />
501                                </trigger>
502                        </events>
503                </EventTrigger>
504        </DistanceTrigger>
505
506        <!-- Trigger to activate the upgrade1-Quest -->
507        <DistanceTrigger name="droneTrigger" position="11000, 1000, 7000" target="SpaceShip" distance=2000 stayActive="true" delay=0.1 />
508        <SimpleNotification message="Need an Upgrade?"  broadcast="true">
509                <events>
510                        <trigger>
511                                <EventListener event="droneTrigger" />
512                        </trigger>
513                </events>
514        </SimpleNotification>
515
516        <EventTrigger name="droneTriggerDelay" stayactive="true" delay=5 >
517                <events>
518                        <trigger>
519                                <EventListener event="droneTrigger" />
520                        </trigger>
521                </events>
522        </EventTrigger>
523
524        <SimpleNotification message="Search the drone!"  broadcast="true" >
525                <events>
526                        <trigger>
527                                <EventListener event="droneTriggerDelay" />
528                        </trigger>
529                </events>
530        </SimpleNotification>
531                       
532
533        <!-- Helper-Trigger for the drone(s) -->
534        <DistanceTrigger name="drone1" position="9750, -5350, 5650" target="SpaceShip" distance=100 stayActive="true" delay=0.1 />
535        <SimpleNotification message="Now your are prepared best!"  broadcast="true">
536                <events>
537                        <trigger>
538                                <EventListener event="drone1" />
539                        </trigger>
540                </events>
541        </SimpleNotification>
542
543        <EventTrigger name="drone1Delay" stayactive="true" delay=5.1 >
544                <events>
545                        <trigger>
546                                <EventListener event="drone1" />
547                        </trigger>
548                </events>
549        </EventTrigger>
550
551        <SimpleNotification message="Fly back to the green light."  broadcast="true">
552                <events>
553                        <trigger>
554                                <EventListener event="drone1Delay" />
555                        </trigger>
556                </events>
557        </SimpleNotification>
558
559        <Trigger name="secondDroneTrigger" mode="and" stayActive="true">
560          <DistanceTrigger name="droneTrigger" position="11000, 1000, 7000" target="SpaceShip" distance=1000 stayActive="true" delay=0.1 />
561          <EventTrigger>
562            <events>
563              <trigger>
564                <EventListener event="drone1" />
565              </trigger>
566            </events>
567          </EventTrigger>
568        </Trigger>
569
570        <SimpleNotification message="The red light shows you the direction."  broadcast="true">
571                <events>
572                        <trigger>
573                                <EventListener event="secondDroneTrigger" />
574                        </trigger>
575                </events>
576        </SimpleNotification>
577
578        <BlinkingBillboard position="11500, 1500, 10000" colour="1.0, 0.0, 0.0" frequency=0.5 amplitude=5 material="Examples/Flare" >
579          <events>
580            <visibility>
581              <EventTrigger>
582                <EventTrigger invert=true>
583                  <events>
584                    <trigger>
585                      <EventListener event="guard2trigger1" />
586                    </trigger>
587                  </events>
588                </EventTrigger>
589                <events>
590                  <trigger>
591                    <EventListener event="secondDroneTrigger" />
592                  </trigger>
593                </events>
594              </EventTrigger>
595            </visibility>
596          </events>
597        </BlinkingBillboard>
598
599        <!-- Helper-Trigger for second guard -->
600        <DistanceTrigger name="flying2" position="18000, 5000, 21000" target="SpaceShip" distance=10000 stayActive="true" delay=0.1 >
601                <EventTrigger>
602                        <events>
603                                <trigger>
604                                        <EventListener event="guard2trigger4" />
605                                </trigger>
606                        </events>
607                </EventTrigger>
608        </DistanceTrigger>     
609
610        <SimpleNotification message="Well done!"  broadcast="true">
611                <events>
612                        <trigger>
613                                <EventListener event="flying2" />
614                        </trigger>
615                </events>
616        </SimpleNotification>
617
618        <Trigger name="guard2withoutSpion" mode="and" stayActive="true" delay=0 >
619          <EventTrigger activations="1" >
620            <events>
621              <trigger>
622                <EventListener event="flying2" />
623              </trigger>
624            </events>
625          </EventTrigger>
626          <EventTrigger activations="1" invert="true" >
627            <events>
628              <trigger>
629                <EventListener event="spionEnd" />
630              </trigger>
631            </events>
632          </EventTrigger>
633        </Trigger>
634
635        <EventTrigger name="flying2delay1" activations="1" stayactive="true" delay=5 >
636          <events>
637            <trigger>
638              <EventListener event="guard2withoutSpion" />
639            </trigger>
640          </events>
641        </EventTrigger>
642
643        <SimpleNotification message="Catch the scout!"  broadcast="true" >
644                <events>
645                        <trigger>
646                                <EventListener event="flying2delay1" />
647                        </trigger>
648                </events>
649        </SimpleNotification>
650
651        <EventTrigger name="flying2delay2" activations="1" stayactive="true" delay=5 >
652          <events>
653            <trigger>
654              <EventListener event="flying2delay1" />
655            </trigger>
656          </events>
657        </EventTrigger>
658
659        <SimpleNotification message="Before he reachs the red light..."  broadcast="true" >
660                <events>
661                        <trigger>
662                                <EventListener event="flying2delay2" />
663                        </trigger>
664                </events>
665        </SimpleNotification>
666
667        <!-- DistanceTrigger for spion -->
668        <Trigger name="spionTrigger" mode="and" stayActive="true">
669          <DistanceTrigger position="15000, 1000, 25000" target="SpaceShip" distance=50 stayActive="true" delay=0.1 />
670          <EventTrigger activations="1" invert="true">
671            <events>
672              <trigger>
673                <EventListener event="spion5" />
674              </trigger>
675            </events>
676          </EventTrigger>
677        </Trigger>
678
679        <SimpleNotification message="Scout is arrived!"  broadcast="true">
680                <events>
681                        <trigger>
682                                <EventListener event="spionTrigger" />
683                        </trigger>
684                </events>
685        </SimpleNotification>
686
687        <EventTrigger name="spionTriggerDelay" stayactive="true" delay=5 >
688                <events>
689                        <trigger>
690                                <EventListener event="spionTrigger" />
691                        </trigger>
692                </events>
693        </EventTrigger>
694
695        <SimpleNotification message="Now the mainship is alarmed..."  broadcast="true">
696                <events>
697                        <trigger>
698                                <EventListener event="spionTriggerDelay" />
699                        </trigger>
700                </events>
701        </SimpleNotification>
702
703        <BlinkingBillboard position="15000, 1000, 25000" colour="1.0, 0.0, 0.0" frequency=0.3 amplitude=7 material="Examples/Flare" >
704          <events>
705            <visibility>
706              <EventTrigger>
707                <EventTrigger invert=true>
708                  <events>
709                    <trigger>
710                      <EventListener event="spionEnd" />
711                    </trigger>
712                  </events>
713                </EventTrigger>
714                <events>
715                  <trigger>
716                    <EventListener event="guard2trigger1" />
717                  </trigger>
718                </events>
719              </EventTrigger>
720            </visibility>
721          </events>
722        </BlinkingBillboard>
723
724        <!-- If spion destroyed -->
725        <SimpleNotification message="Scout destroyed!"  broadcast="true">
726                <events>
727                        <trigger>
728                                <EventListener event="spion5" />
729                        </trigger>
730                </events>
731        </SimpleNotification>
732
733        <!-- Spion end -->
734        <Trigger name="spionEnd" mode="or" stayActive="true" delay=0 >
735          <EventTrigger activations="1" >
736            <events>
737              <trigger>
738                <EventListener event="spion5" />
739              </trigger>
740            </events>
741          </EventTrigger>
742          <EventTrigger activations="1" >
743            <events>
744              <trigger>
745                <EventListener event="spionTrigger" />
746              </trigger>
747            </events>
748          </EventTrigger>
749        </Trigger>
750
751        <EventTrigger name="spionEndDelay" activations="1" delay=5>
752          <events>
753            <trigger>
754              <EventListener event="spionEnd" />
755            </trigger>
756          </events>
757        </EventTrigger>
758
759        <!-- Intro to Captain Hood -->
760        <Trigger name="introHood" mode="and" stayActive="true">
761          <EventTrigger activations="1" >
762            <events>
763              <trigger>
764                <EventListener event="spionEndDelay" />
765              </trigger>
766            </events>
767          </EventTrigger>
768          <EventTrigger activations="1" >
769            <events>
770              <trigger>
771                <EventListener event="guard2trigger4" />
772              </trigger>
773            </events>
774          </EventTrigger>
775        </Trigger>
776
777        <EventTrigger name="introHoodDelay1" activations="1" stayactive="true" delay=5 >
778          <events>
779            <trigger>
780              <EventListener event="introHood" />
781            </trigger>
782          </events>
783        </EventTrigger>
784
785        <SimpleNotification message="Your friend, Captain Hood, is near by you!"  broadcast="true">
786                <events>
787                        <trigger>
788                                <EventListener event="introHoodDelay1" />
789                        </trigger>
790                </events>
791        </SimpleNotification>
792
793        <EventTrigger name="introHoodDelay2" activations="1" stayactive="true" delay=5 >
794          <events>
795            <trigger>
796              <EventListener event="introHoodDelay1" />
797            </trigger>
798          </events>
799        </EventTrigger>
800
801        <SimpleNotification message="He'll show you the way to the mainship!"  broadcast="true">
802                <events>
803                        <trigger>
804                                <EventListener event="introHoodDelay2" />
805                        </trigger>
806                </events>
807        </SimpleNotification>   
808
809        <!-- Helper-Trigger for Captain Hood -->
810        <DistanceTrigger name="reached" position="10000, 2000, 17000" target="SpaceShip" distance=1000 stayActive="true" delay=0.1 >
811                <EventTrigger>
812                        <events>
813                                <trigger>
814                                        <EventListener event="guard2trigger4" />
815                                </trigger>
816                        </events>
817                </EventTrigger>
818        </DistanceTrigger>
819
820        <SimpleNotification message="Follow Captain Hood!"  broadcast="true">
821                <events>
822                        <trigger>
823                                <EventListener event="reached" />
824                        </trigger>
825                </events>
826        </SimpleNotification>   
827
828        <!-- Trigger for Monologue from Captain Hood -->
829        <DistanceTrigger name="discuss" position="-4000, -18000, 19000" target="SpaceShip" distance=50 stayActive="true" delay=0.1 />
830        <SimpleNotification message="Look, there is the mainship!"  broadcast="true">
831                <events>
832                        <trigger>
833                                <EventListener event="discuss" />
834                        </trigger>
835                </events>
836        </SimpleNotification>
837
838        <!-- End of Mainfight -->
839        <Trigger name="victory1" mode="and" stayActive="true">
840          <EventTrigger>
841            <events>
842              <trigger>
843                <EventListener event="guard3trigger4" />
844              </trigger>
845            </events>
846          </EventTrigger>
847          <EventTrigger activations="1" >
848            <events>
849              <trigger>
850                <EventListener event="spion5" />
851              </trigger>
852            </events>
853          </EventTrigger>
854        </Trigger>
855
856        <Trigger name="victory2" mode="and" stayActive="true">
857          <EventTrigger activations="1" >
858            <events>
859              <trigger>
860                <EventListener event="guard3trigger6" />
861                </trigger>
862            </events>
863          </EventTrigger>
864          <EventTrigger activations="1" >
865            <events>
866              <trigger>
867                <EventListener event="spionTrigger" />
868              </trigger>
869            </events>
870          </EventTrigger>
871        </Trigger>
872
873        <Trigger name="victory" mode="or" stayActive="true">
874          <EventTrigger activations="1" >
875            <events>
876              <trigger>
877                <EventListener event="victory1" />
878              </trigger>
879            </events>
880          </EventTrigger>
881          <EventTrigger activations="1" >
882            <events>
883              <trigger>
884                <EventListener event="victory2" />
885              </trigger>
886            </events>
887          </EventTrigger>
888        </Trigger>
889
890        <SimpleNotification message="YEEEHAAA! You managed it!"  broadcast="true">
891                <events>
892                        <trigger>
893                                <EventListener event="victory" />
894                        </trigger>
895                </events>
896        </SimpleNotification>
897
898        <EventTrigger name="victoryDelay1" delay=5 >
899          <events>
900            <trigger>
901              <EventListener event="victory" />
902            </trigger>
903          </events>
904        </EventTrigger>
905
906        <EventTrigger name="victoryDelay1.1" delay=5.1 >
907          <events>
908            <trigger>
909              <EventListener event="victory" />
910            </trigger>
911          </events>
912        </EventTrigger>
913
914        <SimpleNotification message="For that you will get the golden medal"  broadcast="true">
915                <events>
916                        <trigger>
917                                <EventListener event="victoryDelay1.1" />
918                        </trigger>
919                </events>
920        </SimpleNotification>
921
922        <SimpleNotification message="of the united space armies."  broadcast="true">
923                <events>
924                        <trigger>
925                                <EventListener event="victoryDelay1" />
926                        </trigger>
927                </events>
928        </SimpleNotification>
929
930        <EventTrigger name="victoryDelay2" delay=5 >
931          <events>
932            <trigger>
933              <EventListener event="victoryDelay1.1" />
934            </trigger>
935          </events>
936        </EventTrigger>
937
938        <EventTrigger name="victoryDelay2.1" delay=5.1 >
939          <events>
940            <trigger>
941              <EventListener event="victoryDelay1.1" />
942            </trigger>
943          </events>
944        </EventTrigger>
945
946        <SimpleNotification message="Now dock at the mainship and"  broadcast="true">
947                <events>
948                        <trigger>
949                                <EventListener event="victoryDelay2.1" />
950                        </trigger>
951                </events>
952        </SimpleNotification>
953
954        <SimpleNotification message="free the Commander!"  broadcast="true">
955                <events>
956                        <trigger>
957                                <EventListener event="victoryDelay2" />
958                        </trigger>
959                </events>
960        </SimpleNotification>
961
962        <EventTrigger name="victoryDelay3" delay=5 >
963          <events>
964            <trigger>
965              <EventListener event="victoryDelay2" />
966            </trigger>
967          </events>
968        </EventTrigger>
969
970        <SimpleNotification message="The light shows you the hatch"  broadcast="true">
971                <events>
972                        <trigger>
973                                <EventListener event="victoryDelay3" />
974                        </trigger>
975                </events>
976        </SimpleNotification>
977
978        <!-- Rescue the commander -->
979        <BlinkingBillboard position="-12470, -21870, 25200" colour="0.0, 0.0, 1.0" frequency=0.5 amplitude=5 material="Examples/Flare" >
980          <events>
981            <visibility>
982              <EventTrigger>
983                <EventTrigger invert=true>
984                  <events>
985                    <trigger>
986                      <EventListener event="dock" />
987                    </trigger>
988                  </events>
989                </EventTrigger>
990                <events>
991                  <trigger>
992                    <EventListener event=spawntrigger2 /> <!-- "victory" -->
993                  </trigger>
994                </events>
995              </EventTrigger>
996            </visibility>
997          </events>
998        </BlinkingBillboard>
999       
1000        <DistanceTrigger name="dock" position="-12470, -21870, 25200" target="SpaceShip" distance=50 stayActive="true" delay=0 />
1001        <SimpleNotification message="The Commander is on board!"  broadcast="true">
1002                <events>
1003                        <trigger>
1004                                <EventListener event="dock" />
1005                        </trigger>
1006                </events>
1007        </SimpleNotification>
1008       
1009        <!-- TIMER-EVENTS -->
1010        <EventTrigger name="dockdelay1" activations="1" stayactive="true" delay=5 >
1011          <events>
1012            <trigger>
1013              <EventListener event="dock" />
1014            </trigger>
1015          </events>
1016        </EventTrigger>
1017       
1018        <SimpleNotification message="You have 10 seconds to move away..."  broadcast="true">
1019                <events>
1020                        <trigger>
1021                                <EventListener event="dockdelay1" />
1022                        </trigger>
1023                </events>
1024        </SimpleNotification>
1025
1026        <EventTrigger name="dockdelay2" activations="1" stayactive="true" delay=5 >
1027          <events>
1028            <trigger>
1029              <EventListener event="dock" />
1030            </trigger>
1031          </events>
1032        </EventTrigger>
1033
1034        <SimpleNotification message="A bomb is placed in the mainship..."  broadcast="true">
1035                <events>
1036                        <trigger>
1037                                <EventListener event="dockdelay2" />
1038                        </trigger>
1039                </events>
1040        </SimpleNotification>
1041
1042
1043    <EventTrigger name="timer1" activations="1" stayactive="true" delay=5 >
1044      <events>
1045        <trigger>
1046          <EventListener event="dockdelay2" />
1047        </trigger>
1048      </events>
1049    </EventTrigger>
1050
1051    <EventTrigger name="timerEnd" activations="1" stayactive="true" delay=10 >
1052      <events>
1053        <trigger>
1054          <EventListener event="timer1" />
1055        </trigger>
1056      </events>
1057    </EventTrigger>
1058
1059    <EventTrigger name="negativeTimerEnd" invert="true" delay=0 >
1060      <events>
1061        <trigger>
1062          <EventListener event="timerEnd" />
1063        </trigger>
1064      </events>
1065    </EventTrigger>
1066
1067<!-- ----------------------------------------------------- -->   
1068<!-- For Guard 1 -->
1069<!-- @Triggers: attacktriggerX <-> X enemies destroyed , X is an element of [1,4] -->
1070    <EventTrigger name="guard1trigger4" activations="1" stayactive="true" delay=0.1>
1071      <events>
1072        <trigger>
1073          <EventListener event="firstPatrol" />
1074        </trigger>
1075      </events>
1076      <EventTrigger name="guard1trigger3" activations="1" stayactive="true" delay=0.1>
1077        <events>
1078          <trigger>
1079            <EventListener event="firstPatrol" />
1080          </trigger>
1081        </events>
1082        <EventTrigger name="guard1trigger2" activations="1" stayactive="true" delay=0.1>
1083          <events>
1084            <trigger>
1085              <EventListener event="firstPatrol" />
1086            </trigger>
1087          </events>
1088          <EventTrigger name="guard1trigger1" activations="1" stayactive="true" delay=0.1>
1089            <events>
1090              <trigger>
1091                <EventListener event="firstPatrol" />
1092              </trigger>
1093            </events>
1094          </EventTrigger>
1095        </EventTrigger>
1096      </EventTrigger>
1097    </EventTrigger>
1098
1099<!-- For Guard 2 -->
1100<!-- @Triggers: attacktriggerX <-> X enemies destroyed , X is an element of [1,4] -->
1101    <EventTrigger name="guard2trigger4" activations="1" stayactive="true" delay=0.1>
1102      <events>
1103        <trigger>
1104          <EventListener event="secondPatrol" />
1105        </trigger>
1106      </events>
1107      <EventTrigger name="guard2trigger3" activations="1" stayactive="true" delay=0.1>
1108        <events>
1109          <trigger>
1110            <EventListener event="secondPatrol" />
1111          </trigger>
1112        </events>
1113        <EventTrigger name="guard2trigger2" activations="1" stayactive="true" delay=0.1>
1114          <events>
1115            <trigger>
1116              <EventListener event="secondPatrol" />
1117            </trigger>
1118          </events>
1119          <EventTrigger name="guard2trigger1" activations="1" stayactive="true" delay=0.1>
1120            <events>
1121              <trigger>
1122                <EventListener event="secondPatrol" />
1123              </trigger>
1124            </events>
1125          </EventTrigger>
1126        </EventTrigger>
1127      </EventTrigger>
1128    </EventTrigger>
1129
1130<!-- For Escape -->
1131        <EventTrigger name="spion5" stayactive="true" >
1132          <events>
1133            <trigger>
1134              <EventListener event="spion" />
1135            </trigger>
1136          </events>
1137        </EventTrigger>
1138
1139<!-- For last fight -->
1140    <EventTrigger name="guard3trigger6" activations="1" stayactive="true" delay=0.1 >
1141      <events>
1142        <trigger>
1143          <EventListener event="lastGuard" />
1144        </trigger>
1145      </events>
1146      <EventTrigger name="guard3trigger5" activations="1" stayactive="true" delay=0.1 >
1147        <events>
1148          <trigger>
1149            <EventListener event="lastGuard" />
1150          </trigger>
1151        </events>
1152        <EventTrigger name="guard3trigger4" activations="1" stayactive="true" delay=0.1 >
1153          <events>
1154            <trigger>
1155              <EventListener event="lastGuard" />
1156            </trigger>
1157          </events>
1158          <EventTrigger name="guard3trigger3" activations="1" stayactive="true" delay=0.1 >
1159            <events>
1160              <trigger>
1161                <EventListener event="lastGuard" />
1162              </trigger>
1163            </events>
1164            <EventTrigger name="guard3trigger2" activations="1" stayactive="true" delay=0.1 >
1165              <events>
1166                <trigger>
1167                  <EventListener event="lastGuard" />
1168                </trigger>
1169              </events>
1170              <EventTrigger name="guard3trigger1" activations="1" stayactive="true" delay=0.1 >
1171                <events>
1172                  <trigger>
1173                    <EventListener event="lastGuard" />
1174                  </trigger>
1175                </events>
1176              </EventTrigger>
1177            </EventTrigger>
1178          </EventTrigger>
1179        </EventTrigger>
1180      </EventTrigger>
1181    </EventTrigger>
1182       
1183<!-- ----------------------------------------------------- -->
1184<!-- Passive Pirates: Guard 1 -->
1185<SpaceShip position="8000,1000,0" lookat="-1,0,0" name="firstPatrol" radarname="Patrol">
1186  <events>
1187    <visibility>
1188      <EventListener event=spawntrigger2 />
1189    </visibility>
1190  </events>
1191  <templates>
1192    <Template link=spaceshippirate />
1193  </templates>
1194  <controller>
1195    <WaypointController team=1>
1196      <waypoints>
1197        <Model mesh="cube.mesh" scale=0 position="8000,-1000,0" />
1198        <Model mesh="cube.mesh" scale=0 position="8000,1000,0" />
1199      </waypoints>
1200    </WaypointController>
1201  </controller>
1202</SpaceShip>
1203
1204<SpaceShip position="8000,0,0" lookat="-1,0,0" name="firstPatrol" radarname="Patrol">
1205  <events>
1206    <visibility>
1207      <EventListener event=spawntrigger2 />
1208    </visibility>
1209  </events>
1210  <templates>
1211    <Template link=spaceshippirate />
1212  </templates>
1213  <controller>
1214    <WaypointController team=1>
1215      <waypoints>
1216        <Model mesh="cube.mesh" scale=0 position="8000,0,-1000" />
1217        <Model mesh="cube.mesh" scale=0 position="8000,0,1000" />
1218      </waypoints>
1219    </WaypointController>
1220  </controller>
1221</SpaceShip>
1222
1223
1224<!-- Active Pirates: Guard 1 -->
1225<SpaceShip position="8000,-1000,1000" lookat="8000,1000,-1000" name="firstPatrol" visible="true" radarname="Patrol" >
1226  <events>
1227    <visibility>
1228      <EventListener event=spawntrigger2 />
1229    </visibility>
1230  </events>
1231  <templates>
1232    <Template link=spaceshippirate />
1233  </templates>
1234  <controller>
1235    <WaypointPatrolController alertnessradius=2000 team=1 active=false>
1236      <waypoints>
1237        <Model mesh="cube.mesh" scale=0 position="8000,1000,-1000" />
1238        <Model mesh="cube.mesh" scale=0 position="8000,-1000,1000" />
1239      </waypoints>
1240      <events>
1241        <activity>
1242          <EventListener event=spawntrigger2 />
1243        </activity>
1244      </events>
1245    </WaypointPatrolController>
1246  </controller>
1247</SpaceShip>
1248
1249<SpaceShip position="8000,-500,-500" lookat="8000,1000,1000" name="firstPatrol" visible="true" radarname="Patrol">
1250  <events>
1251    <visibility>
1252      <EventListener event=spawntrigger2 />
1253    </visibility>
1254  </events>
1255  <templates>
1256    <Template link=spaceshippirate />
1257  </templates>
1258  <controller>
1259    <WaypointPatrolController alertnessradius=2000 team=1 active=false>
1260      <waypoints>
1261        <Model mesh="cube.mesh" scale=0 position="8000,1000,1000" />
1262        <Model mesh="cube.mesh" scale=0 position="8000,-1000,-1000" />
1263      </waypoints>
1264      <events>
1265        <activity>
1266          <EventListener event=spawntrigger2 />
1267        </activity>
1268      </events>
1269    </WaypointPatrolController>
1270  </controller>
1271</SpaceShip>
1272
1273<!-- Active Pirates: Guard 2 -->
1274<SpaceShip position="19000,5000,18000" lookat="19000,4900,21000" name="secondPatrol" visible="true" radarname="Patrol">
1275  <events>
1276    <visibility>
1277      <EventListener event="guard1trigger4" />
1278    </visibility>
1279  </events>
1280  <templates>
1281    <Template link=spaceshippirate />
1282  </templates>
1283  <controller>
1284    <WaypointPatrolController alertnessradius=2000 team=1 active=false>
1285      <waypoints>
1286        <Model mesh="cube.mesh" scale=0 position="18700,4300,18000" />
1287        <Model mesh="cube.mesh" scale=0 position="18000,4000,18000" />
1288        <Model mesh="cube.mesh" scale=0 position="17300,4300,18000" />
1289        <Model mesh="cube.mesh" scale=0 position="17000,5000,18000" />
1290        <Model mesh="cube.mesh" scale=0 position="17300,5700,18000" />
1291        <Model mesh="cube.mesh" scale=0 position="18000,6000,18000" />
1292        <Model mesh="cube.mesh" scale=0 position="18700,5700,18000" />
1293        <Model mesh="cube.mesh" scale=0 position="19000,5000,18000" />
1294      </waypoints>
1295      <events>
1296        <activity>
1297          <EventListener event="guard1trigger4" />
1298        </activity>
1299      </events>
1300    </WaypointPatrolController>
1301  </controller>
1302</SpaceShip>
1303
1304<SpaceShip position="17000,5000,18000" lookat="17000,5100,21000" name="secondPatrol" visible="true" radarname="Patrol">
1305  <events>
1306    <visibility>
1307      <EventListener event="guard1trigger4" />
1308    </visibility>
1309  </events>
1310  <templates>
1311    <Template link=spaceshippirate />
1312  </templates>
1313  <controller>
1314    <WaypointPatrolController alertnessradius=2000 team=1 active=false>
1315      <waypoints>
1316        <Model mesh="cube.mesh" scale=0 position="17300,5700,18000" />
1317        <Model mesh="cube.mesh" scale=0 position="18000,6000,18000" />
1318        <Model mesh="cube.mesh" scale=0 position="18700,5700,18000" />
1319        <Model mesh="cube.mesh" scale=0 position="19000,5000,18000" />
1320        <Model mesh="cube.mesh" scale=0 position="18700,4300,18000" />
1321        <Model mesh="cube.mesh" scale=0 position="18000,4000,18000" />
1322        <Model mesh="cube.mesh" scale=0 position="17300,4300,18000" />
1323        <Model mesh="cube.mesh" scale=0 position="17000,5000,18000" />
1324      </waypoints>
1325      <events>
1326        <activity>
1327          <EventListener event="guard1trigger4" />
1328        </activity>
1329      </events>
1330    </WaypointPatrolController>
1331  </controller>
1332</SpaceShip>
1333
1334<SpaceShip position="18000,4000,18000" lookat="17000,4000,21000" name="secondPatrol" visible="true" radarname="Patrol">
1335  <events>
1336    <visibility>
1337      <EventListener event="guard1trigger4" />
1338    </visibility>
1339  </events>
1340  <templates>
1341    <Template link=spaceshippirate />
1342  </templates>
1343  <controller>
1344    <WaypointPatrolController alertnessradius=2000 team=1 active=false>
1345      <waypoints>
1346        <Model mesh="cube.mesh" scale=0 position="17300,4300,18000" />
1347        <Model mesh="cube.mesh" scale=0 position="17000,5000,18000" />
1348        <Model mesh="cube.mesh" scale=0 position="17300,5700,18000" />
1349        <Model mesh="cube.mesh" scale=0 position="18000,6000,18000" />
1350        <Model mesh="cube.mesh" scale=0 position="18700,5700,18000" />
1351        <Model mesh="cube.mesh" scale=0 position="19000,5000,18000" />
1352        <Model mesh="cube.mesh" scale=0 position="18700,4300,18000" />
1353        <Model mesh="cube.mesh" scale=0 position="18000,4000,18000" />
1354      </waypoints>
1355      <events>
1356        <activity>
1357          <EventListener event="guard1trigger4" />
1358        </activity>
1359      </events>
1360    </WaypointPatrolController>
1361  </controller>
1362</SpaceShip>
1363
1364<SpaceShip position="18000,6000,18000" lookat="19000,6000,21000" name="secondPatrol" visible="true" radarname="Patrol">
1365  <events>
1366    <visibility>
1367      <EventListener event="guard1trigger4" />
1368    </visibility>
1369  </events>
1370  <templates>
1371    <Template link=spaceshippirate />
1372  </templates>
1373  <controller>
1374    <WaypointPatrolController alertnessradius=2000 team=1 active=false>
1375      <waypoints>
1376        <Model mesh="cube.mesh" scale=0 position="18700,5700,18000" />
1377        <Model mesh="cube.mesh" scale=0 position="19000,5000,18000" />
1378        <Model mesh="cube.mesh" scale=0 position="18700,4300,18000" />
1379        <Model mesh="cube.mesh" scale=0 position="18000,4000,18000" />
1380        <Model mesh="cube.mesh" scale=0 position="17300,4300,18000" />
1381        <Model mesh="cube.mesh" scale=0 position="17000,5000,18000" />
1382        <Model mesh="cube.mesh" scale=0 position="17300,5700,18000" />
1383        <Model mesh="cube.mesh" scale=0 position="18000,6000,18000" />
1384      </waypoints>
1385      <events>
1386        <activity>
1387          <EventListener event="guard1trigger4" />
1388        </activity>
1389      </events>
1390    </WaypointPatrolController>
1391  </controller>
1392</SpaceShip>
1393
1394<!-- Escape-Ship (Spion) -->
1395<SpaceShip position="17000,4000,19000" lookat="-12000, -22000, 25000" name="spion" visible="true" radarname="Scout" >
1396  <events>
1397    <visibility>
1398      <EventListener event="guard2trigger1" />
1399    </visibility>
1400  </events>
1401  <templates>
1402    <Template link=spaceshippirate />
1403  </templates>
1404  <controller>
1405    <WaypointController team=1>
1406      <waypoints>
1407        <Model mesh="cube.mesh" scale=0 position="15000, 1000, 25000" />
1408        <Model mesh="cube.mesh" scale=0 position="0, -10000, 42000" />
1409      </waypoints>
1410      <events>
1411        <activity>
1412          <EventListener event="guard2trigger1" />
1413        </activity>
1414      </events>
1415    </WaypointController>
1416  </controller>
1417<!--  Should be realized, if possible...
1418  <attached>
1419    <DistanceTriggerBeacon name="spionBeacon" />
1420  </attached>
1421-->
1422</SpaceShip>
1423
1424<!-- Mainship - Pirates -->
1425<SpaceShip position="-10000, -20000, 24000" lookat="-10000, -22000, 24000" name="lastGuard" visible="true" radarname="Pirate" >
1426  <events>
1427    <visibility>
1428      <EventListener event="guard2trigger4" />
1429    </visibility>
1430  </events>
1431  <templates>
1432    <Template link=spaceshippirate />
1433  </templates>
1434  <controller>
1435    <WaypointPatrolController alertnessradius=2000 team=1 active=false>
1436      <waypoints>
1437        <Model mesh="cube.mesh" scale=10 position="-9500, -22000, 24000" /> <!-- -12000, -22000, 25000    -4000, -18000, 19000 -->
1438        <Model mesh="cube.mesh" scale=10 position="-10500, -22000, 23000" />
1439        <Model mesh="cube.mesh" scale=10 position="-11000, -20000, 23000" />
1440        <Model mesh="cube.mesh" scale=10 position="-10000, -20000, 24000" />
1441      </waypoints>
1442      <events>
1443        <activity>
1444          <EventListener event="guard2trigger4" />
1445        </activity>
1446      </events>
1447    </WaypointPatrolController>
1448  </controller>
1449</SpaceShip>
1450
1451<SpaceShip position="-10000, -22000, 24000" lookat="-11000, -22000, 23000" name="lastGuard" visible="true" radarname="Pirate" >
1452  <events>
1453    <visibility>
1454      <EventListener event="guard2trigger4" />
1455    </visibility>
1456  </events>
1457  <templates>
1458    <Template link=spaceshippirate />
1459  </templates>
1460  <controller>
1461    <WaypointPatrolController alertnessradius=2000 team=1 active=false>
1462      <waypoints>
1463        <Model mesh="cube.mesh" scale=10 position="-10500, -22000, 23000" />
1464        <Model mesh="cube.mesh" scale=10 position="-11000, -20000, 23000" />
1465        <Model mesh="cube.mesh" scale=10 position="-10000, -20000, 24000" />       
1466        <Model mesh="cube.mesh" scale=10 position="-9500, -22000, 24000" />
1467      </waypoints>
1468      <events>
1469        <activity>
1470          <EventListener event="guard2trigger4" />
1471        </activity>
1472      </events>
1473    </WaypointPatrolController>
1474  </controller>
1475</SpaceShip>
1476
1477<SpaceShip position="-11000, -22000, 23000" lookat="-11000, -20000, 23000" name="lastGuard" visible="true" radarname="Pirate" >
1478  <events>
1479    <visibility>
1480      <EventListener event="guard2trigger4" />
1481    </visibility>
1482  </events>
1483  <templates>
1484    <Template link=spaceshippirate />
1485  </templates>
1486  <controller>
1487    <WaypointPatrolController alertnessradius=2000 team=1 active=false>
1488      <waypoints>
1489        <Model mesh="cube.mesh" scale=10 position="-11000, -20000, 23000" />
1490        <Model mesh="cube.mesh" scale=10 position="-10000, -20000, 24000" />       
1491        <Model mesh="cube.mesh" scale=10 position="-9500, -22000, 24000" />
1492        <Model mesh="cube.mesh" scale=10 position="-10500, -22000, 23000" />
1493      </waypoints>
1494      <events>
1495        <activity>
1496          <EventListener event="guard2trigger4" />
1497        </activity>
1498      </events>
1499    </WaypointPatrolController>
1500  </controller>
1501</SpaceShip>
1502
1503<SpaceShip position="-11000, -20000, 23000" lookat="-10000, -20000, 24000" name="lastGuard" visible="true" radarname="Pirate" >
1504  <events>
1505    <visibility>
1506      <EventListener event="guard2trigger4" />
1507    </visibility>
1508  </events>
1509  <templates>
1510    <Template link=spaceshippirate />
1511  </templates>
1512  <controller>
1513    <WaypointPatrolController alertnessradius=2000 team=1 active=false>
1514      <waypoints>
1515        <Model mesh="cube.mesh" scale=10 position="-10000, -20000, 24000" />       
1516        <Model mesh="cube.mesh" scale=10 position="-9500, -22000, 24000" />
1517        <Model mesh="cube.mesh" scale=10 position="-10500, -22000, 23000" />
1518        <Model mesh="cube.mesh" scale=10 position="-11000, -20000, 23000" />
1519      </waypoints>
1520      <events>
1521        <activity>
1522          <EventListener event="guard2trigger4" />
1523        </activity>
1524      </events>
1525    </WaypointPatrolController>
1526  </controller>
1527</SpaceShip>
1528
1529<!-- Additional pirates if the spion has warned the mainship -->
1530<SpaceShip position="-10500, -20000, 23500" lookat="-10000, -21000, 24000" name="lastGuard" visible="true" radarname="Pirate" >
1531  <events>
1532    <visibility>
1533      <EventListener event="spionTrigger" />
1534    </visibility>
1535  </events>
1536  <templates>
1537    <Template link=spaceshippirate />
1538  </templates>
1539  <controller>
1540    <WaypointPatrolController alertnessradius=2000 team=1 active=false>
1541      <waypoints>
1542        <Model mesh="cube.mesh" scale=10 position="-9750, -21000, 24000" />
1543        <Model mesh="cube.mesh" scale=10 position="-10000, -22000, 23500" />
1544        <Model mesh="cube.mesh" scale=10 position="-10750, -21000, 23000" />
1545        <Model mesh="cube.mesh" scale=10 position="-10500, -20000, 23500" />
1546      </waypoints>
1547      <events>
1548        <activity>
1549          <EventListener event="spionTrigger" />
1550        </activity>
1551      </events>
1552    </WaypointPatrolController>
1553  </controller>
1554</SpaceShip>
1555
1556<SpaceShip position="-10500, -22000, 23500" lookat="-11000, -21000, 23000" name="lastGuard" visible="true" radarname="Pirate" >
1557  <events>
1558    <visibility>
1559      <EventListener event="spionTrigger" />
1560    </visibility>
1561  </events>
1562  <templates>
1563    <Template link=spaceshippirate />
1564  </templates>
1565  <controller>
1566    <WaypointPatrolController alertnessradius=2000 team=1 active=false>
1567      <waypoints>
1568        <Model mesh="cube.mesh" scale=10 position="-10750, -21000, 23000" />
1569        <Model mesh="cube.mesh" scale=10 position="-10500, -20000, 23500" />
1570        <Model mesh="cube.mesh" scale=10 position="-9750, -21000, 24000" />
1571        <Model mesh="cube.mesh" scale=10 position="-10000, -22000, 23500" />
1572      </waypoints>
1573      <events>
1574        <activity>
1575          <EventListener event="spionTrigger" />
1576        </activity>
1577      </events>
1578    </WaypointPatrolController>
1579  </controller>
1580</SpaceShip>
1581
1582<!-- FRIEND-SHIPS -->
1583<SpaceShip position="8500, 2000, 17000" lookat="0, -1000, 18000" name="friend" visible="true" radarname="Hood" >
1584  <events>
1585    <visibility>
1586      <EventListener event="guard2trigger4" />
1587    </visibility>
1588  </events>
1589  <templates>
1590    <Template link=spaceshipswallow />
1591  </templates>
1592  <controller>
1593    <WaypointPatrolController alertnessradius=5000 team=0 active=false>
1594      <waypoints>
1595        <Model mesh="cube.mesh" scale=0 position="-4000, -18000, 19000" />
1596        <Model mesh="cube.mesh" scale=0 position="-11500, -22000, 25000" />
1597      </waypoints>
1598      <events>
1599        <activity>
1600          <EventListener event="reached" />
1601        </activity>
1602      </events>
1603    </WaypointPatrolController>
1604  </controller>
1605</SpaceShip>
1606
1607<BlinkingBillboard position="10000, 2000, 17000" colour="1.0, 1.0, 0.0" frequency=0.5 amplitude=20 material="Examples/Flare" >
1608  <events>
1609    <visibility>
1610      <EventTrigger>
1611        <EventTrigger invert=true>
1612          <events>
1613            <trigger>
1614              <EventListener event="reached" />
1615            </trigger>
1616          </events>
1617        </EventTrigger>
1618        <events>
1619          <trigger>
1620            <EventListener event="spion5" />
1621          </trigger>
1622        </events>
1623      </EventTrigger>
1624    </visibility>
1625  </events>
1626</BlinkingBillboard>
1627
1628<SimpleNotification message="Your friend Captain Hood is dead..."  broadcast="true">
1629        <events>
1630                <trigger>
1631                        <EventListener event="friend" />
1632                </trigger>
1633        </events>
1634</SimpleNotification>
1635
1636<EventTrigger name="frienddelay" activations="1" stayactive="true" delay=5.1 >
1637  <events>
1638    <trigger>
1639      <EventListener event="friend" />
1640    </trigger>
1641  </events>
1642</EventTrigger>
1643
1644<SimpleNotification message="He died in a fight like he wished it!"  broadcast="true">
1645        <events>
1646                <trigger>
1647                        <EventListener event="frienddelay" />
1648                </trigger>
1649        </events>
1650</SimpleNotification>
1651
1652<!-- ----------------------------------------------------- -->
1653
1654<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" />
1655
1656
1657
1658<!-- ASTEROIDS & ASTEROID-FIELDS -->
1659        <!-- Asteroids -->
1660        <Model  position="9800, -5000, 5700"
1661                yaw="90"
1662                pitch="-90"
1663                roll="0"
1664                scale="200"
1665                mesh="asteroid_ice.mesh" />
1666
1667        <!-- triple large belt around the planet  -->
1668        <?lua
1669                dofile("includes/asteroidField.lua")
1670                asteroidBelt(2000, -250, 9000, 30, 0, 30, 30, 50, 7190, 7800, 250, 1)
1671        ?>
1672
1673        <?lua
1674                dofile("includes/asteroidField.lua")
1675                asteroidBelt(2000, -250, 9000, 30, 0, 30, 30, 50, 10000, 11000, 300, 1)
1676        ?>
1677
1678        <?lua
1679                dofile("includes/asteroidField.lua")
1680                asteroidBelt(2000, -250, 9000, 30, 0, 30, 30, 50, 14000, 15000, 350, 1)
1681        ?>
1682
1683        <!-- other asteroid fileds -->
1684
1685        <!-- left before guard 1 -->   
1686        <?lua
1687                dofile("includes/asteroidField.lua")
1688                asteroidField(-5000, -5000, -20000, 20, 50, 10000, 200, 0)
1689        ?>
1690
1691        <!-- left behind guard 1 -->
1692        <?lua
1693                dofile("includes/asteroidField.lua")
1694                asteroidField(20000, -10000, -12000, 30, 100, 10000, 200, 0)
1695        ?>
1696
1697        <!-- between guard 2 & mainship -->
1698                <!-- Core -->   
1699                <?lua
1700                        dofile("includes/asteroidField.lua")
1701                        asteroidField(-5000, -10000, 30000, 10, 700, 8000, 80, 0)
1702                ?>
1703       
1704                <!-- Peripherie -->
1705                <?lua
1706                        dofile("includes/asteroidField.lua")
1707                        asteroidField(-5000, -10000, 30000, 10, 50, 10000, 100, 0)
1708                ?>
1709
1710                <?lua
1711                        dofile("includes/asteroidField.lua")
1712                        asteroidBelt(-10000, -12500, 0, 0, 0, 30, 30, 500, 0, 7850, 150, 0)
1713                ?>
1714
1715        <!-- PLANETS -->
1716        <Planet         position="2000,-250,9000"
1717                        scale=5000
1718                        pitch=1
1719                        mesh="iceplanet.mesh"
1720                        atmosphere="atmosphere1"
1721                        rotationaxis="1,1,0"
1722                        rotationrate="0.5"
1723                        atmospheresize=224.0f
1724                        imagesize=1024.0f
1725                        mass="10000000"
1726                        angularDamping=0
1727                        collisiondamage=2
1728                        enablecollisiondamage=true
1729                        collisionType="dynamic" />
1730
1731
1732<!-- ----------------Rotating SpaceStation--------------- -->
1733        <!-- first guard -->
1734        <StaticEntity position="9000,0,0" collisionType=static yaw=112 pitch=67 >
1735          <attached>
1736            <?lua
1737              createSpaceStationPar(0,2,1,2,1,4,1,50)
1738            ?>
1739          </attached>
1740        </StaticEntity>
1741
1742        <!-- second guard -->
1743        <StaticEntity position="18000,5000,18000" collisionType=static yaw=12 pitch=75 >
1744          <attached>
1745            <?lua
1746              createSpaceStationPar(0,2,1,2,1,4,1,50)
1747            ?>
1748          </attached>
1749        </StaticEntity>
1750
1751<!-- ------------------------- Mainship ------------------ -->
1752    <SpaceShip
1753        team      = 1
1754        position  = "-12000, -22000, 25000"
1755        mass      = 10000000000
1756        health    = 100000 initialhealth=100000 maxhealth="100000"
1757        name      = "Mainship"
1758        radarname = "Mainship"
1759        visible   = "true" >
1760      <controller>
1761        <WaypointController team=1 active="true" >
1762          <waypoints/>
1763          <events>
1764            <activity>
1765              <EventListener event=spawntrigger2 />
1766            </activity>
1767          </events>
1768        </WaypointController>
1769      </controller>
1770      <attached>
1771        <Model scale=200 mesh="drone.mesh" position = "0,0,0" lookat="40000, 4000, 27000" />
1772        <Model mesh="cube.mesh" mass=10 position="-445,110,120" scale3D="45,45,150"  yaw=56 pitch=-4 roll=0 />
1773        <Model mesh="cube.mesh" mass=10 position="-295,125,220" scale3D="28,28,28" yaw=56 pitch=-4 roll=0 />
1774        <Model mesh="cube.mesh" mass=10 position="-400,350,-200" scale3D="80,280,800" yaw=56 pitch=-4 roll=5 />
1775        <Model mesh="cube.mesh" mass=10 position="-300,630,-100" scale3D="250,50,500" yaw=56 pitch=-4 roll=5 />
1776        <Model mesh="cube.mesh" mass=10 position="-150,-150,-550" scale3D="80,280,800"  yaw=56 pitch=-4 roll=65 />
1777        <Model mesh="cube.mesh" mass=10 position="140,0,240" scale3D="250,50,500" yaw=0 pitch=0 roll=0 />
1778<!--    <Model mesh="cube.mesh" mass=10 position="0,530,0" scale3D="172,52,298" />
1779        <Model mesh="cube.mesh" mass=10 position="0,530,0" scale3D="172,52,298" yaw=-120/>
1780        <Model mesh="cube.mesh" mass=10 position="0,530,0" scale3D="172,52,298" yaw=-240/>
1781        <Model mesh="cube.mesh" mass=10 position="0,400,0" scale3D="43,110,26" yaw=-30 />
1782        <Model mesh="cube.mesh" mass=10 position="-200,100,0" scale3D="26,50,43" />
1783        <Model mesh="cube.mesh" mass=10 position="100,100,-173" scale3D="43,50,26" yaw=-30/>
1784        <Model mesh="cube.mesh" mass=10 position="100,100,173" scale3D="43,50,26" yaw=30/>
1785        <Model mesh="cube.mesh" mass=10 position="-100,264,0" scale3D="26,105,43" roll=-49/>
1786        <Model mesh="cube.mesh" mass=10 position="50,264,-87" scale3D="26,105,43" roll=-49 yaw=-120/>
1787        <Model mesh="cube.mesh" mass=10 position="50,264,87" scale3D="26,105,43" roll=-49 yaw=-240/> -->
1788      </attached>
1789      <collisionShapes>
1790        <BoxCollisionShape  position="-560,0,0" halfExtents="115,100,245" /> <!-- Three lower boxes -->
1791<!--    <BoxCollisionShape  position="290,0,-480" halfExtents="115,100,245" yaw=-120 />
1792        <BoxCollisionShape  position="290,0,480" halfExtents="115,100,245" yaw=-240 />
1793        <BoxCollisionShape  position="-280,0,0" halfExtents="163,50,50" /> <!-- Three lower connections --
1794        <BoxCollisionShape  position="140,0,-240" halfExtents="163,50,50" yaw=-120 />
1795        <BoxCollisionShape  position="140,0,240" halfExtents="163,50,50" yaw=-240 />
1796        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" /> <!-- Upper Tower --
1797        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-120 />
1798        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-240 />
1799        <BoxCollisionShape  position="0,400,0" halfExtents="43,110,26" yaw=-30 /> <!-- Middle one--
1800        <BoxCollisionShape  position="-200,100,0" halfExtents="26,50,43" /> <!--Three lower legs --
1801        <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=-30 />
1802        <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=30 />
1803        <BoxCollisionShape  position="-100,264,0" halfExtents="26,105,43" roll=-49 /> <!--Three upper legs --
1804        <BoxCollisionShape  position="50,264,-87" halfExtents="26,105,43" roll=-49 yaw=-120 />
1805        <BoxCollisionShape  position="50,264,87" halfExtents="26,105,43" roll=-49 yaw=-240 />  -->
1806      </collisionShapes>
1807      <events>
1808        <visibility>
1809          <EventListener event="negativeTimerEnd" />
1810        </visibility>
1811      </events>
1812    </SpaceShip>
1813
1814    <!-- PARTICLE EFFECT -->
1815
1816    <ParticleSpawner position="-12000, -22000, 25000" source="Orxonox/RingExp" autostart="false" lifetime=500 loop=0 startdelay=2.5>
1817        <events>
1818            <spawn>
1819                <EventListener event="timerEnd" />
1820            </spawn>
1821        </events>
1822    </ParticleSpawner>
1823    <ParticleSpawner position="-12000, -22000, 25000" source="Orxonox/RingExp2" autostart="false" lifetime=500 loop=0 startdelay=2>
1824        <events>
1825            <spawn>
1826                <EventListener event="timerEnd" />
1827            </spawn>
1828        </events>
1829    </ParticleSpawner>
1830    <ParticleSpawner position="-12000, -22000, 25000" source="Orxonox/RingExp3" autostart="false" lifetime=500 loop=0 startdelay=2>
1831        <events>
1832            <spawn>
1833                <EventListener event="timerEnd" />
1834            </spawn>
1835        </events>
1836    </ParticleSpawner>
1837
1838  </Scene>
1839</Level>
1840
Note: See TracBrowser for help on using the repository browser.