Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

some more details…

File size: 52.8 KB
RevLine 
[9718]1<!--Spacefight-->
2
3<!--
4To Do:
[9873]5- Discuss between Player and Captain Hood
[9806]6- If possible, do the spion with DistanceTriggerBeacon
[9888]7- Place the explosion right (time and place)
[9873]8- bigger explosion?
9- collisionShape for mainship
10- DistanceTriggerBeacon for Captain Hood
[9718]11-->
[9849]12
[9718]13<LevelInfo
14 name = "Spacefight"
15 description = "Level with the big Spacefight"
[9726]16 tags = "mission"
[9718]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")
[9750]31  include("templates/pickupRepresentationTemplates.oxt")
[9767]32  include("templates/spaceshipCollateralDamage.oxt")
[9750]33?>
34<?lua
[9718]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
[9746]47
[9718]48  <NotificationQueueCEGUI
49    name="narrative"
50    targets="simpleNotification"
51    size=3
[9883]52    displayTime=4.9
[9718]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
[9726]60<Scene
[9718]61    ambientlight = "0.8, 0.8, 0.8"
62    skybox       = "Orxonox/Starbox"
63  >
[9746]64  <?lua include("includes/pickups.oxi") ?>
65
[9873]66<Script code="showGUI NotificationLayer false true" needsGraphics="true" />
67<OverlayGroup name="spacefightHUD" scale = "1, 1">
68  <CountDown
69     position    = "0.51, 0.05"
[9872]70     pickpoint   = "0.0, 0.0"
71     font        = "ShareTechMono"
[9873]72     textsize    = 0.1
[9872]73     colour      = "1.0, 1.0, 1.0, 1.0"
[9873]74     align       = "center"                 
[9872]75     counter     = "10.0"
[9873]76     speedfactor = "1.0"
[9872]77     active      = "false"
[9870]78  >
[9873]79    <events>
80      <activity>
81        <EventListener event="timer1" />
82      </activity>
83    </events>
84  </CountDown>
85</OverlayGroup>
[9718]86
[9778]87<!-- SPAWNTRIGGER -->
[9894]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 -->
[9809]90          <events>
91            <activity>
92              <EventListener event="flying12" />
93            </activity>
94          </events>
[9806]95        </SpawnPoint>
[9718]96
[9809]97        <EventTrigger name="flying12" invert="true" >
98          <events>
99            <trigger>
100              <EventListener event="flying1" />
101            </trigger>
102          </events>
103        </EventTrigger>
[9806]104
[9894]105        <!-- Second Spawnpoint (after first guard) --
106        <SpawnPoint team=0 position="13500, 2500, 10500" lookat="18000,5000,18000" spawnclass=SpaceShip pawndesign=spaceshipswallow > <!-- pawndesign=spaceshipcollateraldamage --
[9809]107          <events>
108            <activity>
[9873]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>
[9809]123            </activity>
[9873]124          </events>
[9806]125        </SpawnPoint>
[9849]126       
[9894]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 --
[9849]129          <events>
130            <activity>
[9888]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>
[9849]145            </activity>
[9873]146          </events>
[9849]147        </SpawnPoint>
[9806]148
[9894]149        <!-- Distance-Spawn-Trigger (0, 0, 0) -->
150        <DistanceTrigger name=spawntrigger2 position="-12350, -21950, 25500" target="SpaceShip" distance=10 stayActive="true" delay=0 />
[9778]151
[9767]152        <!-- Drone pickup -->
[9883]153        <PickupSpawner pickup=dronepickup position="9750, -5350, 5650" triggerDistance="100" respawnTime="30" maxSpawnedItems="2" />
[9746]154
[9894]155<!-- QUEST DESCRIPTION -->
[9718]156        <LocalQuest id="spacefight.guard1">
157                <QuestDescription
[9735]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!"
[9718]164                        failMessage="You've lost all your ships!"
165                        completeMessage="Well done!" />
166        </LocalQuest>
167
168        <LocalQuest id="spacefight.upgrade1">
169                <QuestDescription
[9758]170                        title="Prepare for the fight (optional)"
[9718]171                        description="Your friends has an arsenal left behind near by your position.
[9758]172                                perhaps you find something useful there...
173                                Hint: look for a big asteroid."
[9735]174                        failMessage="You've lost all your ships!"
[9767]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!" />
[9718]177        </LocalQuest>
178
179        <LocalQuest id="spacefight.guard2">
180                <QuestDescription
[9735]181                        title="The second guard!"
[9806]182                        description="There is also a second guard. The blinking light shows you the direction.
183                                Destroy also this guard!"
[9718]184                        failMessage="You've lost all your ships!"
185                        completeMessage="" />
186        </LocalQuest>
[9894]187<!--
[9718]188        <LocalQuest id="spacefight.escape">
189                <QuestDescription
[9735]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!" />
[9718]197        </LocalQuest>
198
[9826]199<!-- 2 different possibilitys --
200        <!-- Spion is destroyed --
[9778]201        <LocalQuest id="spacefight.mainfight(min)" >
[9726]202                <QuestDescription
[9778]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!!!"
[9735]209                        failMessage="You've lost all your ships!"
[9778]210                        completeMessage="YEEEHAAA!
211                                You managed it! For that you will get the golden medal of the united space armies." />
[9785]212                <complete-effects>
213                        <AddQuest questId="spacefight.rescue" />
214                </complete-effects>
[9735]215        </LocalQuest>
216
[9826]217        <!-- Spion isn't destroyed --
[9778]218        <LocalQuest id="spacefight.mainfight(max)" >
[9735]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.
[9778]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!"
[9735]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." />
[9785]229                <complete-effects>
230                        <AddQuest questId="spacefight.rescue" />
231                </complete-effects>
[9735]232        </LocalQuest>
[9826]233<!-- --
[9735]234
[9741]235        <LocalQuest id="spacefight.rescue" >
[9735]236                <QuestDescription
[9741]237                        title="Rescue and place the bomb"
[9785]238                        description="Now you have to free the commander and place a bomb in the pirates' mainship."
[9741]239                        failMessage="You've lost all your ships!"
[9726]240                        completeMessage="" />
[9785]241                <complete-effects>
242                        <AddQuest questId="spacefight.moveAway" />
243                </complete-effects>
[9726]244        </LocalQuest>
[9718]245
[9741]246        <LocalQuest id="spacefight.moveAway" >
[9735]247                <QuestDescription
[9741]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!" />
[9735]252        </LocalQuest>
253
[9785]254        <!-- GRAND EXPLOSION IF POSSIBLE -->
255        <!-- Next Part -->
[9826]256-->
[9718]257       
258<!-- ---------------------------------------------------------------------- -->
[9735]259
[9741]260<!-- QuestEffectBeacon's -->
[9757]261        <!-- START -->
[9718]262        <QuestEffectBeacon times=0>
263                <effects>
[9791]264                        <AddQuest questId="spacefight.guard1" />
[9718]265                </effects>
266                <events>
[9735]267                        <execute>
268                                <EventListener event=spawntrigger2 />
269                        </execute>
[9718]270                </events>
271        </QuestEffectBeacon>
272
[9757]273        <QuestEffectBeacon times=0>
[9727]274                <events>
275                        <execute>
276                                <EventListener event="flying1" />
[9738]277                        </execute>
278                </events>
[9757]279                <effects>
280                        <CompleteQuest questId="spacefight.guard1" />
281                </effects>
[9738]282        </QuestEffectBeacon>
[9758]283
[9843]284        <SimpleNotification message="Well done!"  broadcast="true">
[9806]285                <events>
286                        <trigger>
287                                <EventListener event="flying1" />
288                        </trigger>
289                </events>
290        </SimpleNotification>
[9788]291
[9883]292        <EventTrigger name="flying1delay" activations="1" stayactive="true" delay=5.1 >
[9849]293          <events>
294            <trigger>
295              <EventListener event="flying1" />
296            </trigger>
297          </events>
298        </EventTrigger>
299
[9892]300        <SimpleNotification message="The green light shows you the way!"  broadcast="true" >
[9843]301                <events>
302                        <trigger>
[9849]303                                <EventListener event="flying1delay" />
[9843]304                        </trigger>
305                </events>
306        </SimpleNotification>
[9806]307
[9892]308        <BlinkingBillboard position="11000, 1000, 7000" colour="0.0, 1.0, 0.0" frequency=0.5 amplitude=10 material="Examples/Flare" >
[9778]309          <events>
310            <visibility>
311              <EventTrigger>
[9806]312                <EventTrigger invert=true>
313                  <events>
314                    <trigger>
315                      <EventListener event="flying2" />
316                    </trigger>
317                  </events>
318                </EventTrigger>
[9778]319                <events>
320                  <trigger>
[9791]321                    <EventListener event="flying1" />
[9778]322                  </trigger>
323                </events>
324              </EventTrigger>
325            </visibility>
326          </events>
327        </BlinkingBillboard>
328       
[9758]329        <!-- Drone (optional) -->
330        <QuestEffectBeacon times=0>
331                <effects>
[9791]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>
[9758]343                        <CompleteQuest questId="spacefight.upgrade1" />
344                </effects>
345                <events>
346                        <execute>
[9894]347                                <EventListener event="drone1" />
[9758]348                        </execute>
349                </events>
350        </QuestEffectBeacon>
[9894]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>
[9757]362       
[9758]363        <!-- Guard 2 -->
[9757]364        <QuestEffectBeacon times=0>
365                <effects>
[9894]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>
[9806]377                        <CompleteQuest questId="spacefight.guard2" />
[9778]378                </effects>
379                <events>
380                        <execute>
[9894]381                                <EventListener event="flying2" />
[9757]382                        </execute>             
383                </events>
384        </QuestEffectBeacon>
[9843]385
[9788]386        <!-- ESCAPE -->
[9843]387        <SimpleNotification message="A scout is startet to the mainship!"  broadcast="true">
[9778]388                <events>
389                        <trigger>
390                                <EventListener event="guard2trigger1" />
391                        </trigger>
392                </events>
393        </SimpleNotification>
[9757]394
[9778]395        <QuestEffectBeacon times=0>
396                <effects>
397                        <AddQuest questId="spacefight.escape" />
398                </effects>
399                <events>
400                        <execute>
[9809]401                                <EventListener event="escape10" />
[9778]402                        </execute>
403                </events>
404        </QuestEffectBeacon>
[9809]405
[9788]406        <!-- ESCAPE ENDING -->
407        <!-- Spion escaped -->
[9778]408        <QuestEffectBeacon times=0>
409                <effects>
410                        <CompleteQuest questId="spacefight.escape" />
[9788]411                        <AddQuest questId="spacefight.mainfight(max)" />
[9778]412                </effects>
413                <events>
414                        <execute>
[9788]415                                <EventListener event="spionTrigger" />
[9778]416                        </execute>
417                </events>
418        </QuestEffectBeacon>
419
[9809]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
[9788]432        <!-- Spion destroyed -->
[9778]433        <QuestEffectBeacon>
434                <effects>
435                        <CompleteQuest questId="spacefight.escape" />
436                        <AddQuest questId="spacefight.mainfight(min)" />
437                </effects>
438                <events>
439                        <execute>
[9809]440                                <EventListener event="spion5" />
[9778]441                        </execute>
442                </events>
443        </QuestEffectBeacon>
444
[9785]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
[9726]494<!-- ---------------------------------------------------------------------- -->
[9791]495        <!-- Helper-Trigger for first guard -->
[9806]496        <DistanceTrigger name="flying1" position="9000, 0, 0" target="SpaceShip" distance=10000 stayActive="true" delay=0.1 >
[9791]497                <EventTrigger>
498                        <events>
499                                <trigger>
500                                        <EventListener event="guard1trigger4" />
501                                </trigger>
502                        </events>
503                </EventTrigger>
504        </DistanceTrigger>
[9843]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 />
[9883]508        <SimpleNotification message="Need an Upgrade?"  broadcast="true">
[9826]509                <events>
510                        <trigger>
[9843]511                                <EventListener event="droneTrigger" />
[9826]512                        </trigger>
513                </events>
[9843]514        </SimpleNotification>
[9718]515
[9894]516        <EventTrigger name="droneTriggerDelay" stayactive="true" delay=5 >
517                <events>
518                        <trigger>
519                                <EventListener event="droneTrigger" />
520                        </trigger>
521                </events>
522        </EventTrigger>
[9883]523
524        <SimpleNotification message="Search the drone!"  broadcast="true" >
[9767]525                <events>
526                        <trigger>
[9883]527                                <EventListener event="droneTriggerDelay" />
[9767]528                        </trigger>
529                </events>
[9826]530        </SimpleNotification>
531                       
[9806]532
533        <!-- Helper-Trigger for the drone(s) -->
[9883]534        <DistanceTrigger name="drone1" position="9750, -5350, 5650" target="SpaceShip" distance=100 stayActive="true" delay=0.1 />
[9806]535        <SimpleNotification message="Now your are prepared best!"  broadcast="true">
536                <events>
537                        <trigger>
538                                <EventListener event="drone1" />
539                        </trigger>
540                </events>
[9767]541        </SimpleNotification>
[9791]542
[9883]543        <EventTrigger name="drone1Delay" stayactive="true" delay=5.1 >
544                <events>
545                        <trigger>
546                                <EventListener event="drone1" />
547                        </trigger>
548                </events>
549        </EventTrigger>
550
[9894]551        <SimpleNotification message="Fly back to the green light."  broadcast="true">
[9883]552                <events>
553                        <trigger>
554                                <EventListener event="drone1Delay" />
555                        </trigger>
556                </events>
557        </SimpleNotification>
558
[9894]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
[9791]599        <!-- Helper-Trigger for second guard -->
[9809]600        <DistanceTrigger name="flying2" position="18000, 5000, 21000" target="SpaceShip" distance=10000 stayActive="true" delay=0.1 >
[9806]601                <EventTrigger>
602                        <events>
603                                <trigger>
[9809]604                                        <EventListener event="guard2trigger4" />
[9806]605                                </trigger>
606                        </events>
607                </EventTrigger>
[9883]608        </DistanceTrigger>     
[9843]609
[9883]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
[9894]659        <SimpleNotification message="Before he reachs the red light..."  broadcast="true" >
[9883]660                <events>
661                        <trigger>
662                                <EventListener event="flying2delay2" />
663                        </trigger>
664                </events>
665        </SimpleNotification>
666
[9843]667        <!-- DistanceTrigger for spion -->
[9888]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
[9849]679        <SimpleNotification message="Scout is arrived!"  broadcast="true">
[9767]680                <events>
681                        <trigger>
[9843]682                                <EventListener event="spionTrigger" />
[9767]683                        </trigger>
684                </events>
[9883]685        </SimpleNotification>
[9757]686
[9883]687        <EventTrigger name="spionTriggerDelay" stayactive="true" delay=5 >
688                <events>
689                        <trigger>
690                                <EventListener event="spionTrigger" />
691                        </trigger>
692                </events>
693        </EventTrigger>
[9873]694
[9883]695        <SimpleNotification message="Now the mainship is alarmed..."  broadcast="true">
[9788]696                <events>
697                        <trigger>
[9883]698                                <EventListener event="spionTriggerDelay" />
[9788]699                        </trigger>
700                </events>
[9883]701        </SimpleNotification>
[9826]702
[9892]703        <BlinkingBillboard position="15000, 1000, 25000" colour="1.0, 0.0, 0.0" frequency=0.3 amplitude=7 material="Examples/Flare" >
[9883]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
[9809]724        <!-- If spion destroyed -->
[9843]725        <SimpleNotification message="Scout destroyed!"  broadcast="true">
[9788]726                <events>
727                        <trigger>
[9843]728                                <EventListener event="spion5" />
[9788]729                        </trigger>
730                </events>
731        </SimpleNotification>
732
[9883]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>
[9843]752          <events>
753            <trigger>
[9883]754              <EventListener event="spionEnd" />
[9843]755            </trigger>
756          </events>
757        </EventTrigger>
[9788]758
[9883]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
[9843]785        <SimpleNotification message="Your friend, Captain Hood, is near by you!"  broadcast="true">
786                <events>
787                        <trigger>
[9883]788                                <EventListener event="introHoodDelay1" />
[9843]789                        </trigger>
790                </events>
791        </SimpleNotification>
792
[9883]793        <EventTrigger name="introHoodDelay2" activations="1" stayactive="true" delay=5 >
[9843]794          <events>
795            <trigger>
[9883]796              <EventListener event="introHoodDelay1" />
[9843]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>
[9883]804                                <EventListener event="introHoodDelay2" />
[9843]805                        </trigger>
806                </events>
[9883]807        </SimpleNotification>   
[9843]808
[9883]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
[9849]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
[9873]838        <!-- End of Mainfight -->
[9888]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>
[9873]855
[9888]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
[9894]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">
[9888]915                <events>
916                        <trigger>
[9894]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>
[9888]925                                <EventListener event="victoryDelay1" />
926                        </trigger>
927                </events>
928        </SimpleNotification>
929
930        <EventTrigger name="victoryDelay2" delay=5 >
931          <events>
932            <trigger>
[9894]933              <EventListener event="victoryDelay1.1" />
[9888]934            </trigger>
935          </events>
936        </EventTrigger>
937
[9894]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">
[9888]947                <events>
948                        <trigger>
[9894]949                                <EventListener event="victoryDelay2.1" />
950                        </trigger>
951                </events>
952        </SimpleNotification>
953
954        <SimpleNotification message="free the Commander!"  broadcast="true">
955                <events>
956                        <trigger>
[9888]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
[9786]978        <!-- Rescue the commander -->
[9894]979        <BlinkingBillboard position="-12470, -21870, 25200" colour="0.0, 0.0, 1.0" frequency=0.5 amplitude=5 material="Examples/Flare" >
[9873]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>
[9894]992                    <EventListener event=spawntrigger2 /> <!-- "victory" -->
[9873]993                  </trigger>
994                </events>
995              </EventTrigger>
996            </visibility>
997          </events>
998        </BlinkingBillboard>
999       
[9894]1000        <DistanceTrigger name="dock" position="-12470, -21870, 25200" target="SpaceShip" distance=50 stayActive="true" delay=0 />
[9873]1001        <SimpleNotification message="The Commander is on board!"  broadcast="true">
1002                <events>
1003                        <trigger>
1004                                <EventListener event="dock" />
1005                        </trigger>
1006                </events>
1007        </SimpleNotification>
[9888]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       
[9873]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
[9888]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
[9873]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
[9888]1042
1043    <EventTrigger name="timer1" activations="1" stayactive="true" delay=5 >
[9873]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
[9888]1067<!-- ----------------------------------------------------- -->   
[9791]1068<!-- For Guard 1 -->
[9757]1069<!-- @Triggers: attacktriggerX <-> X enemies destroyed , X is an element of [1,4] -->
1070    <EventTrigger name="guard1trigger4" activations="1" stayactive="true" delay=0.1>
[9718]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>
[9726]1097    </EventTrigger>
[9718]1098
[9791]1099<!-- For Guard 2 -->
[9757]1100<!-- @Triggers: attacktriggerX <-> X enemies destroyed , X is an element of [1,4] -->
1101    <EventTrigger name="guard2trigger4" activations="1" stayactive="true" delay=0.1>
[9743]1102      <events>
1103        <trigger>
[9757]1104          <EventListener event="secondPatrol" />
[9743]1105        </trigger>
1106      </events>
[9757]1107      <EventTrigger name="guard2trigger3" activations="1" stayactive="true" delay=0.1>
[9738]1108        <events>
[9743]1109          <trigger>
[9757]1110            <EventListener event="secondPatrol" />
[9743]1111          </trigger>
1112        </events>
[9757]1113        <EventTrigger name="guard2trigger2" activations="1" stayactive="true" delay=0.1>
[9743]1114          <events>
[9738]1115            <trigger>
[9757]1116              <EventListener event="secondPatrol" />
[9743]1117            </trigger>
1118          </events>
[9757]1119          <EventTrigger name="guard2trigger1" activations="1" stayactive="true" delay=0.1>
[9743]1120            <events>
1121              <trigger>
[9757]1122                <EventListener event="secondPatrol" />
[9743]1123              </trigger>
1124            </events>
1125          </EventTrigger>
1126        </EventTrigger>
1127      </EventTrigger>
1128    </EventTrigger>
[9738]1129
[9778]1130<!-- For Escape -->
[9894]1131        <EventTrigger name="spion5" stayactive="true" >
[9806]1132          <events>
1133            <trigger>
1134              <EventListener event="spion" />
1135            </trigger>
1136          </events>
[9894]1137        </EventTrigger>
[9785]1138
1139<!-- For last fight -->
[9791]1140    <EventTrigger name="guard3trigger6" activations="1" stayactive="true" delay=0.1 >
[9785]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>
[9888]1181    </EventTrigger>
[9778]1182       
[9718]1183<!-- ----------------------------------------------------- -->
[9888]1184<!-- Passive Pirates: Guard 1 -->
[9757]1185<SpaceShip position="8000,1000,0" lookat="-1,0,0" name="firstPatrol" radarname="Patrol">
[9718]1186  <events>
1187    <visibility>
[9727]1188      <EventListener event=spawntrigger2 />
[9718]1189    </visibility>
1190  </events>
1191  <templates>
1192    <Template link=spaceshippirate />
1193  </templates>
1194  <controller>
1195    <WaypointController team=1>
1196      <waypoints>
[9738]1197        <Model mesh="cube.mesh" scale=0 position="8000,-1000,0" />
1198        <Model mesh="cube.mesh" scale=0 position="8000,1000,0" />
[9718]1199      </waypoints>
1200    </WaypointController>
1201  </controller>
1202</SpaceShip>
1203
[9757]1204<SpaceShip position="8000,0,0" lookat="-1,0,0" name="firstPatrol" radarname="Patrol">
[9718]1205  <events>
1206    <visibility>
[9727]1207      <EventListener event=spawntrigger2 />
[9718]1208    </visibility>
1209  </events>
1210  <templates>
1211    <Template link=spaceshippirate />
1212  </templates>
1213  <controller>
1214    <WaypointController team=1>
1215      <waypoints>
[9738]1216        <Model mesh="cube.mesh" scale=0 position="8000,0,-1000" />
1217        <Model mesh="cube.mesh" scale=0 position="8000,0,1000" />
[9718]1218      </waypoints>
1219    </WaypointController>
1220  </controller>
1221</SpaceShip>
1222
[9757]1223
[9888]1224<!-- Active Pirates: Guard 1 -->
[9757]1225<SpaceShip position="8000,-1000,1000" lookat="8000,1000,-1000" name="firstPatrol" visible="true" radarname="Patrol" >
[9718]1226  <events>
1227    <visibility>
[9727]1228      <EventListener event=spawntrigger2 />
[9718]1229    </visibility>
1230  </events>
1231  <templates>
1232    <Template link=spaceshippirate />
1233  </templates>
1234  <controller>
1235    <WaypointPatrolController alertnessradius=2000 team=1 active=false>
1236      <waypoints>
[9738]1237        <Model mesh="cube.mesh" scale=0 position="8000,1000,-1000" />
1238        <Model mesh="cube.mesh" scale=0 position="8000,-1000,1000" />
[9718]1239      </waypoints>
1240      <events>
1241        <activity>
[9727]1242          <EventListener event=spawntrigger2 />
[9718]1243        </activity>
1244      </events>
1245    </WaypointPatrolController>
1246  </controller>
1247</SpaceShip>
1248
[9757]1249<SpaceShip position="8000,-500,-500" lookat="8000,1000,1000" name="firstPatrol" visible="true" radarname="Patrol">
[9718]1250  <events>
1251    <visibility>
[9727]1252      <EventListener event=spawntrigger2 />
[9718]1253    </visibility>
1254  </events>
1255  <templates>
1256    <Template link=spaceshippirate />
1257  </templates>
1258  <controller>
1259    <WaypointPatrolController alertnessradius=2000 team=1 active=false>
1260      <waypoints>
[9738]1261        <Model mesh="cube.mesh" scale=0 position="8000,1000,1000" />
1262        <Model mesh="cube.mesh" scale=0 position="8000,-1000,-1000" />
[9718]1263      </waypoints>
1264      <events>
1265        <activity>
[9727]1266          <EventListener event=spawntrigger2 />
[9718]1267        </activity>
1268      </events>
1269    </WaypointPatrolController>
1270  </controller>
1271</SpaceShip>
[9757]1272
[9888]1273<!-- Active Pirates: Guard 2 -->
[9822]1274<SpaceShip position="19000,5000,18000" lookat="19000,4900,21000" name="secondPatrol" visible="true" radarname="Patrol">
[9738]1275  <events>
1276    <visibility>
[9873]1277      <EventListener event="guard1trigger4" />
[9738]1278    </visibility>
1279  </events>
1280  <templates>
1281    <Template link=spaceshippirate />
1282  </templates>
1283  <controller>
1284    <WaypointPatrolController alertnessradius=2000 team=1 active=false>
1285      <waypoints>
[9822]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" />
[9738]1294      </waypoints>
1295      <events>
1296        <activity>
[9806]1297          <EventListener event="guard1trigger4" />
[9738]1298        </activity>
1299      </events>
1300    </WaypointPatrolController>
1301  </controller>
1302</SpaceShip>
[9735]1303
[9822]1304<SpaceShip position="17000,5000,18000" lookat="17000,5100,21000" name="secondPatrol" visible="true" radarname="Patrol">
[9738]1305  <events>
1306    <visibility>
[9873]1307      <EventListener event="guard1trigger4" />
[9738]1308    </visibility>
1309  </events>
1310  <templates>
1311    <Template link=spaceshippirate />
1312  </templates>
1313  <controller>
1314    <WaypointPatrolController alertnessradius=2000 team=1 active=false>
1315      <waypoints>
[9822]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" />
[9738]1324      </waypoints>
1325      <events>
1326        <activity>
[9806]1327          <EventListener event="guard1trigger4" />
[9738]1328        </activity>
1329      </events>
1330    </WaypointPatrolController>
1331  </controller>
1332</SpaceShip>
1333
[9822]1334<SpaceShip position="18000,4000,18000" lookat="17000,4000,21000" name="secondPatrol" visible="true" radarname="Patrol">
[9738]1335  <events>
1336    <visibility>
[9873]1337      <EventListener event="guard1trigger4" />
[9738]1338    </visibility>
1339  </events>
1340  <templates>
1341    <Template link=spaceshippirate />
1342  </templates>
1343  <controller>
1344    <WaypointPatrolController alertnessradius=2000 team=1 active=false>
1345      <waypoints>
[9822]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" />
[9738]1354      </waypoints>
1355      <events>
1356        <activity>
[9806]1357          <EventListener event="guard1trigger4" />
[9738]1358        </activity>
1359      </events>
1360    </WaypointPatrolController>
1361  </controller>
1362</SpaceShip>
1363
[9822]1364<SpaceShip position="18000,6000,18000" lookat="19000,6000,21000" name="secondPatrol" visible="true" radarname="Patrol">
[9738]1365  <events>
1366    <visibility>
[9873]1367      <EventListener event="guard1trigger4" />
[9738]1368    </visibility>
1369  </events>
1370  <templates>
1371    <Template link=spaceshippirate />
1372  </templates>
1373  <controller>
1374    <WaypointPatrolController alertnessradius=2000 team=1 active=false>
1375      <waypoints>
[9822]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" />
[9738]1384      </waypoints>
1385      <events>
1386        <activity>
[9806]1387          <EventListener event="guard1trigger4" />
[9738]1388        </activity>
1389      </events>
1390    </WaypointPatrolController>
1391  </controller>
1392</SpaceShip>
1393
[9788]1394<!-- Escape-Ship (Spion) -->
[9843]1395<SpaceShip position="17000,4000,19000" lookat="-12000, -22000, 25000" name="spion" visible="true" radarname="Scout" >
[9778]1396  <events>
1397    <visibility>
[9788]1398      <EventListener event="guard2trigger1" />
[9778]1399    </visibility>
1400  </events>
1401  <templates>
1402    <Template link=spaceshippirate />
1403  </templates>
1404  <controller>
1405    <WaypointController team=1>
1406      <waypoints>
[9883]1407        <Model mesh="cube.mesh" scale=0 position="15000, 1000, 25000" />
1408        <Model mesh="cube.mesh" scale=0 position="0, -10000, 42000" />
[9778]1409      </waypoints>
1410      <events>
1411        <activity>
1412          <EventListener event="guard2trigger1" />
1413        </activity>
1414      </events>
1415    </WaypointController>
1416  </controller>
[9849]1417<!--  Should be realized, if possible...
[9788]1418  <attached>
1419    <DistanceTriggerBeacon name="spionBeacon" />
1420  </attached>
[9806]1421-->
[9778]1422</SpaceShip>
[9738]1423
[9784]1424<!-- Mainship - Pirates -->
[9892]1425<SpaceShip position="-10000, -20000, 24000" lookat="-10000, -22000, 24000" name="lastGuard" visible="true" radarname="Pirate" >
[9784]1426  <events>
1427    <visibility>
[9849]1428      <EventListener event="guard2trigger4" />
[9784]1429    </visibility>
1430  </events>
1431  <templates>
1432    <Template link=spaceshippirate />
1433  </templates>
1434  <controller>
[9843]1435    <WaypointPatrolController alertnessradius=2000 team=1 active=false>
[9784]1436      <waypoints>
[9894]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" />
[9892]1439        <Model mesh="cube.mesh" scale=10 position="-11000, -20000, 23000" />
1440        <Model mesh="cube.mesh" scale=10 position="-10000, -20000, 24000" />
[9784]1441      </waypoints>
1442      <events>
1443        <activity>
[9849]1444          <EventListener event="guard2trigger4" />
[9784]1445        </activity>
1446      </events>
[9843]1447    </WaypointPatrolController>
[9784]1448  </controller>
1449</SpaceShip>
1450
[9892]1451<SpaceShip position="-10000, -22000, 24000" lookat="-11000, -22000, 23000" name="lastGuard" visible="true" radarname="Pirate" >
[9784]1452  <events>
1453    <visibility>
[9849]1454      <EventListener event="guard2trigger4" />
[9784]1455    </visibility>
1456  </events>
1457  <templates>
1458    <Template link=spaceshippirate />
1459  </templates>
1460  <controller>
[9843]1461    <WaypointPatrolController alertnessradius=2000 team=1 active=false>
[9784]1462      <waypoints>
[9894]1463        <Model mesh="cube.mesh" scale=10 position="-10500, -22000, 23000" />
[9892]1464        <Model mesh="cube.mesh" scale=10 position="-11000, -20000, 23000" />
1465        <Model mesh="cube.mesh" scale=10 position="-10000, -20000, 24000" />       
[9894]1466        <Model mesh="cube.mesh" scale=10 position="-9500, -22000, 24000" />
[9784]1467      </waypoints>
1468      <events>
1469        <activity>
[9849]1470          <EventListener event="guard2trigger4" />
[9784]1471        </activity>
1472      </events>
[9843]1473    </WaypointPatrolController>
[9784]1474  </controller>
1475</SpaceShip>
1476
[9892]1477<SpaceShip position="-11000, -22000, 23000" lookat="-11000, -20000, 23000" name="lastGuard" visible="true" radarname="Pirate" >
[9784]1478  <events>
1479    <visibility>
[9849]1480      <EventListener event="guard2trigger4" />
[9784]1481    </visibility>
1482  </events>
1483  <templates>
1484    <Template link=spaceshippirate />
1485  </templates>
1486  <controller>
[9843]1487    <WaypointPatrolController alertnessradius=2000 team=1 active=false>
[9784]1488      <waypoints>
[9892]1489        <Model mesh="cube.mesh" scale=10 position="-11000, -20000, 23000" />
1490        <Model mesh="cube.mesh" scale=10 position="-10000, -20000, 24000" />       
[9894]1491        <Model mesh="cube.mesh" scale=10 position="-9500, -22000, 24000" />
1492        <Model mesh="cube.mesh" scale=10 position="-10500, -22000, 23000" />
[9784]1493      </waypoints>
1494      <events>
1495        <activity>
[9849]1496          <EventListener event="guard2trigger4" />
[9784]1497        </activity>
1498      </events>
[9843]1499    </WaypointPatrolController>
[9784]1500  </controller>
1501</SpaceShip>
1502
[9892]1503<SpaceShip position="-11000, -20000, 23000" lookat="-10000, -20000, 24000" name="lastGuard" visible="true" radarname="Pirate" >
[9784]1504  <events>
1505    <visibility>
[9849]1506      <EventListener event="guard2trigger4" />
[9784]1507    </visibility>
1508  </events>
1509  <templates>
1510    <Template link=spaceshippirate />
1511  </templates>
1512  <controller>
[9843]1513    <WaypointPatrolController alertnessradius=2000 team=1 active=false>
[9784]1514      <waypoints>
[9892]1515        <Model mesh="cube.mesh" scale=10 position="-10000, -20000, 24000" />       
[9894]1516        <Model mesh="cube.mesh" scale=10 position="-9500, -22000, 24000" />
1517        <Model mesh="cube.mesh" scale=10 position="-10500, -22000, 23000" />
[9892]1518        <Model mesh="cube.mesh" scale=10 position="-11000, -20000, 23000" />
[9784]1519      </waypoints>
1520      <events>
1521        <activity>
[9849]1522          <EventListener event="guard2trigger4" />
[9784]1523        </activity>
1524      </events>
[9843]1525    </WaypointPatrolController>
[9784]1526  </controller>
1527</SpaceShip>
1528
1529<!-- Additional pirates if the spion has warned the mainship -->
[9892]1530<SpaceShip position="-10500, -20000, 23500" lookat="-10000, -21000, 24000" name="lastGuard" visible="true" radarname="Pirate" >
[9784]1531  <events>
1532    <visibility>
[9849]1533      <EventListener event="spionTrigger" />
[9784]1534    </visibility>
1535  </events>
1536  <templates>
1537    <Template link=spaceshippirate />
1538  </templates>
1539  <controller>
[9843]1540    <WaypointPatrolController alertnessradius=2000 team=1 active=false>
[9784]1541      <waypoints>
[9894]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" />
[9892]1545        <Model mesh="cube.mesh" scale=10 position="-10500, -20000, 23500" />
[9784]1546      </waypoints>
1547      <events>
1548        <activity>
[9849]1549          <EventListener event="spionTrigger" />
[9784]1550        </activity>
1551      </events>
[9843]1552    </WaypointPatrolController>
[9784]1553  </controller>
1554</SpaceShip>
1555
[9892]1556<SpaceShip position="-10500, -22000, 23500" lookat="-11000, -21000, 23000" name="lastGuard" visible="true" radarname="Pirate" >
[9784]1557  <events>
1558    <visibility>
[9849]1559      <EventListener event="spionTrigger" />
[9784]1560    </visibility>
1561  </events>
1562  <templates>
1563    <Template link=spaceshippirate />
1564  </templates>
1565  <controller>
[9843]1566    <WaypointPatrolController alertnessradius=2000 team=1 active=false>
[9784]1567      <waypoints>
[9894]1568        <Model mesh="cube.mesh" scale=10 position="-10750, -21000, 23000" />
[9892]1569        <Model mesh="cube.mesh" scale=10 position="-10500, -20000, 23500" />
[9894]1570        <Model mesh="cube.mesh" scale=10 position="-9750, -21000, 24000" />
1571        <Model mesh="cube.mesh" scale=10 position="-10000, -22000, 23500" />
[9784]1572      </waypoints>
1573      <events>
1574        <activity>
[9849]1575          <EventListener event="spionTrigger" />
[9784]1576        </activity>
1577      </events>
[9843]1578    </WaypointPatrolController>
[9784]1579  </controller>
1580</SpaceShip>
1581
[9843]1582<!-- FRIEND-SHIPS -->
[9849]1583<SpaceShip position="8500, 2000, 17000" lookat="0, -1000, 18000" name="friend" visible="true" radarname="Hood" >
[9843]1584  <events>
1585    <visibility>
1586      <EventListener event="guard2trigger4" />
1587    </visibility>
1588  </events>
1589  <templates>
1590    <Template link=spaceshipswallow />
1591  </templates>
1592  <controller>
[9888]1593    <WaypointPatrolController alertnessradius=5000 team=0 active=false>
[9843]1594      <waypoints>
[9873]1595        <Model mesh="cube.mesh" scale=0 position="-4000, -18000, 19000" />
1596        <Model mesh="cube.mesh" scale=0 position="-11500, -22000, 25000" />
[9843]1597      </waypoints>
1598      <events>
1599        <activity>
1600          <EventListener event="reached" />
1601        </activity>
1602      </events>
1603    </WaypointPatrolController>
1604  </controller>
1605</SpaceShip>
[9784]1606
[9894]1607<BlinkingBillboard position="10000, 2000, 17000" colour="1.0, 1.0, 0.0" frequency=0.5 amplitude=20 material="Examples/Flare" >
[9843]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
[9873]1628<SimpleNotification message="Your friend Captain Hood is dead..."  broadcast="true">
[9849]1629        <events>
1630                <trigger>
1631                        <EventListener event="friend" />
1632                </trigger>
1633        </events>
1634</SimpleNotification>
[9843]1635
[9883]1636<EventTrigger name="frienddelay" activations="1" stayactive="true" delay=5.1 >
[9849]1637  <events>
1638    <trigger>
1639      <EventListener event="friend" />
1640    </trigger>
1641  </events>
1642</EventTrigger>
1643
[9873]1644<SimpleNotification message="He died in a fight like he wished it!"  broadcast="true">
[9849]1645        <events>
1646                <trigger>
1647                        <EventListener event="frienddelay" />
1648                </trigger>
1649        </events>
1650</SimpleNotification>
1651
[9718]1652<!-- ----------------------------------------------------- -->
1653
[9873]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" />
[9718]1655
[9778]1656
[9873]1657
[9758]1658<!-- ASTEROIDS & ASTEROID-FIELDS -->
[9778]1659        <!-- Asteroids -->
[9822]1660        <Model  position="9800, -5000, 5700"
1661                yaw="90"
1662                pitch="-90"
1663                roll="0"
[9883]1664                scale="200"
[9822]1665                mesh="asteroid_ice.mesh" />
[9758]1666
[9778]1667        <!-- triple large belt around the planet  -->
[9758]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
[9778]1683        <!-- other asteroid fileds -->
[9718]1684
[9849]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 -->   
[9778]1699                <?lua
1700                        dofile("includes/asteroidField.lua")
[9849]1701                        asteroidField(-5000, -10000, 30000, 10, 700, 8000, 80, 0)
[9778]1702                ?>
[9849]1703       
1704                <!-- Peripherie -->
[9778]1705                <?lua
1706                        dofile("includes/asteroidField.lua")
[9849]1707                        asteroidField(-5000, -10000, 30000, 10, 50, 10000, 100, 0)
[9778]1708                ?>
[9735]1709
[9849]1710                <?lua
1711                        dofile("includes/asteroidField.lua")
1712                        asteroidBelt(-10000, -12500, 0, 0, 0, 30, 30, 500, 0, 7850, 150, 0)
1713                ?>
[9735]1714
[9849]1715        <!-- PLANETS -->
[9778]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
[9822]1724                        imagesize=1024.0f
1725                        mass="10000000"
1726                        angularDamping=0
1727                        collisiondamage=2
1728                        enablecollisiondamage=true
1729                        collisionType="dynamic" />
[9718]1730
[9822]1731
[9718]1732<!-- ----------------Rotating SpaceStation--------------- -->
[9778]1733        <!-- first guard -->
[9826]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>
[9718]1741
[9778]1742        <!-- second guard -->
[9826]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>
[9778]1749        </StaticEntity>
[9718]1750
[9741]1751<!-- ------------------------- Mainship ------------------ -->
[9873]1752    <SpaceShip
1753        team      = 1
1754        position  = "-12000, -22000, 25000"
[9894]1755        mass      = 10000000000
[9873]1756        health    = 100000 initialhealth=100000 maxhealth="100000"
1757        name      = "Mainship"
1758        radarname = "Mainship"
1759        visible   = "true" >
[9883]1760      <controller>
[9888]1761        <WaypointController team=1 active="true" >
[9883]1762          <waypoints/>
1763          <events>
1764            <activity>
1765              <EventListener event=spawntrigger2 />
1766            </activity>
1767          </events>
[9888]1768        </WaypointController>
[9883]1769      </controller>
[9873]1770      <attached>
[9888]1771        <Model scale=200 mesh="drone.mesh" position = "0,0,0" lookat="40000, 4000, 27000" />
[9894]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" />
[9873]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/>
[9894]1787        <Model mesh="cube.mesh" mass=10 position="50,264,87" scale3D="26,105,43" roll=-49 yaw=-240/> -->
[9873]1788      </attached>
1789      <collisionShapes>
[9894]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 />
[9873]1792        <BoxCollisionShape  position="290,0,480" halfExtents="115,100,245" yaw=-240 />
[9894]1793        <BoxCollisionShape  position="-280,0,0" halfExtents="163,50,50" /> <!-- Three lower connections --
[9873]1794        <BoxCollisionShape  position="140,0,-240" halfExtents="163,50,50" yaw=-120 />
1795        <BoxCollisionShape  position="140,0,240" halfExtents="163,50,50" yaw=-240 />
[9894]1796        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" /> <!-- Upper Tower --
[9873]1797        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-120 />
1798        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-240 />
[9894]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 --
[9873]1801        <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=-30 />
1802        <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=30 />
[9894]1803        <BoxCollisionShape  position="-100,264,0" halfExtents="26,105,43" roll=-49 /> <!--Three upper legs --
[9873]1804        <BoxCollisionShape  position="50,264,-87" halfExtents="26,105,43" roll=-49 yaw=-120 />
[9894]1805        <BoxCollisionShape  position="50,264,87" halfExtents="26,105,43" roll=-49 yaw=-240 />  -->
[9873]1806      </collisionShapes>
1807      <events>
1808        <visibility>
1809          <EventListener event="negativeTimerEnd" />
1810        </visibility>
1811      </events>
1812    </SpaceShip>
[9758]1813
[9873]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
[9718]1838  </Scene>
1839</Level>
1840
Note: See TracBrowser for help on using the repository browser.