Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/missionOne.oxw @ 12006

Last change on this file since 12006 was 11052, checked in by landauf, 9 years ago

merged branch presentationHS15 back to trunk

  • Property svn:eol-style set to native
File size: 63.3 KB
RevLine 
[9939]1<!---->
[8773]2<LevelInfo
[8824]3 name = "Mission One"
[9941]4 description = "Codename: Awakening - First Guided Steps in the Orxonoxian Universe."
[9016]5 screenshot = "missionOne.png"
6 tags = "mission"
[8773]7/>
8
9<?lua
10  include("stats.oxo")
11  include("HUDTemplates3.oxo")
12  include("templates/lodInformation.oxt")
[8800]13  include("templates/spaceshipAssff.oxt")
[8773]14  include("templates/spaceshipPirate.oxt")
[8851]15  include("templates/spaceshipSpacecruiser.oxt")
[8869]16  include("templates/spaceshipTransporter.oxt")
[8773]17?>
18
[8800]19<?lua
20include("templates/pickupRepresentationTemplates.oxt")
21?>
22
[8773]23<Level
[9016]24 gametype     = "Mission"
[8773]25>
26  <templates>
27    <Template link=lodtemplate_default />
28  </templates>
29  <?lua include("includes/notifications.oxi") ?>
30
[8800]31  <NotificationQueueCEGUI
32    name="narrative"
33    targets="simpleNotification"
[8872]34    size=3
35    displayTime=3.9
[8800]36    position="0.2, 0, 0.1, 0"
[8872]37    fontSize="23"
[8800]38    fontColor="0.3, 1, 0.2, 0.8"
39    alignment="HorzCentred"
40    displaySize="0.6, 0, 0, 0"
41    />
[8773]42  <Scene
43    ambientlight = "0.8, 0.8, 0.8"
44    skybox       = "Orxonox/Starbox"
45  >
[8800]46    <?lua
47      include("includes/pickups.oxi")
48    ?>
[8773]49
[9016]50    <WorldAmbientSound source="Earth.ogg" looping="true" playOnLoad="true" /> <!-- AlphaCentauri.ogg, Mars.ogg-->
[8871]51
[8773]52    <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"/>
[9016]53<!-- END OF INCLUDES & NECESSARITIES -->
[8773]54
[9016]55<!-- SPAWNPOINT & START OF QUESTS via spawntrigger -->
56    <EventMultiTrigger name=spawntrigger>
57        <events>
58            <trigger>
59                <TeamSpawnPoint team=0 position="800,700,600" direction="-1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff>
60                  <EventTrigger invert=true>
61                    <events>
62                      <trigger>
63                        <EventListener event="attack" />
64                      </trigger>
65                    </events>
66                  </EventTrigger>
67                </TeamSpawnPoint>
68            </trigger>
69        </events>
70    </EventMultiTrigger>
[8875]71
[9016]72        <QuestEffectBeacon times=1>
73            <effects>
74                <AddQuest questId="missionOne.basicFlying" />
75                <!--AddQuestHint hintId ="quest1hint3" /-->
76            </effects>
77            <events>
78                <execute>
79                    <EventListener event=spawntrigger />
80                </execute>
81            </events>
82        </QuestEffectBeacon>
[8800]83
[9016]84        <QuestEffectBeacon times=1>
85            <effects>
86                <CompleteQuest questId="missionOne.basicFlying" />
87            </effects>
88            <events>
89                <execute>
90                    <EventListener event="flying4" />
91                </execute>
92            </events>
93        </QuestEffectBeacon>
94
95        <QuestEffectBeacon times=1>
96            <effects>
97                <CompleteQuest questId="missionOne.navigation" />
98            </effects>
99            <events>
100                <execute>
101                    <EventListener event="navigationend" />
102                </execute>
103            </events>
104        </QuestEffectBeacon>
105
106<!--helper trigger to end the weaponsystemI quest -->
107    <DistanceTrigger name="boxend" position="0,0,0" distance=950 target="SpaceShip" stayActive="false" delay=0.1>
108              <EventTrigger>
109                <events>
110                  <trigger>
111                    <EventListener event="boxtrigger4" />
112                  </trigger>
113                </events>
114              </EventTrigger>
115    </DistanceTrigger>
116
117        <QuestEffectBeacon times=1>
118            <effects>
119                <CompleteQuest questId="missionOne.weaponsystemI" />
120            </effects>
121            <events>
122                <execute>
123                    <EventListener event="boxend" />
124                </execute>
125            </events>
126        </QuestEffectBeacon>
127
128<!--helper trigger to end the weaponsystemII quest -->
129    <DistanceTrigger name="piratesend" position="0,0,0" distance=2000 target="SpaceShip" stayActive="false" delay=0.1>
130              <EventTrigger>
131                <events>
132                  <trigger>
133                    <EventListener event="movingpirates2" />
134                  </trigger>
135                </events>
136              </EventTrigger>
137    </DistanceTrigger>
138
139        <QuestEffectBeacon times=1>
140            <effects>
141                <CompleteQuest questId="missionOne.weaponsystemII" />
142            </effects>
143            <events>
144                <execute>
145                    <EventListener event=piratesend />
146                </execute>
147            </events>
148        </QuestEffectBeacon>
149
150<!--helper trigger to end the DuBallStation quest -->
151    <DistanceTrigger name="duballend" position="-1000,-300,700" distance=2000 target="SpaceShip" stayActive="false" delay=0.1>
152              <EventTrigger>
153                <events>
154                  <trigger>
155                    <EventListener event="duball3" />
156                  </trigger>
157                </events>
158              </EventTrigger>
159    </DistanceTrigger>
160
161
162        <QuestEffectBeacon times=1>
163            <effects>
164                <CompleteQuest questId="missionOne.DuballStation" />
165            </effects>
166            <events>
167                <execute>
168                    <EventListener event=duballend />
169                </execute>
170            </events>
171        </QuestEffectBeacon>
172
173        <QuestEffectBeacon times=1> <!--  alternative quest end  -->
174            <effects>
175                <CompleteQuest questId="missionOne.DuballStation" />
176            </effects>
177            <events>
178                <execute>
179                    <EventListener event=toHydroFarmer />
180                </execute>
181            </events>
182        </QuestEffectBeacon>
183
184<!--helper trigger to end the getHelp quest -->
185    <DistanceTrigger name="getHelpEnd" position="-47000,-1000,1300" distance=1400 target="SpaceShip" stayActive="false" delay=0.1>
186              <EventTrigger>
187                <events>
188                  <trigger>
189                    <EventListener event="ondock" />
190                  </trigger>
191                </events>
192              </EventTrigger>
193    </DistanceTrigger>
194
195        <QuestEffectBeacon times=1>
196            <effects>
197                <CompleteQuest questId="missionOne.getHelp" />
198            </effects>
199            <events>
200                <execute>
201                    <EventListener event=getHelpEnd />
202                </execute>
203            </events>
204        </QuestEffectBeacon>
205
206<!--helper trigger to end the getHome quest -->
207    <DistanceTrigger name="getHomeEnd" position="0,0,0" distance=4000 target="SpaceShip" stayActive="false" delay=0.1>
208              <EventTrigger>
209                <events>
210                  <trigger>
211                    <EventListener event="attack" />
212                  </trigger>
213                </events>
214              </EventTrigger>
215    </DistanceTrigger>
216
217        <QuestEffectBeacon times=1>
218            <effects>
219                <CompleteQuest questId="missionOne.getHome" />
220            </effects>
221            <events>
222                <execute>
223                    <EventListener event=getHomeEnd />
224                </execute>
225            </events>
226        </QuestEffectBeacon>
227
228<!--helper trigger to end the defence quest -->
229    <DistanceTrigger name="defenceEnd" position="0,0,0" distance=4000 target="SpaceShip" stayActive="false" delay=0.1>
230              <EventTrigger>
231                <events>
232                  <trigger>
233                    <EventListener event="attacktrigger6" />
234                  </trigger>
235                </events>
236              </EventTrigger>
237    </DistanceTrigger>
238
239        <QuestEffectBeacon times=1>
240            <effects>
241                <CompleteQuest questId="missionOne.defence" />
242            </effects>
243            <events>
244                <execute>
245                    <EventListener event=defenceEnd />
246                </execute>
247            </events>
248        </QuestEffectBeacon>
249
250<!-- End the quest after own destruction of spacecruiser -->
251        <QuestEffectBeacon position="-100,0,0" times=1>
252            <effects>
253                <FailQuest questId="missionOne.getHelp" />
254            </effects>
255            <events>
256                <execute>
257                    <EventListener event="failQuest" />
258                </execute>
259            </events>
260            <attached>
261                <DistanceTrigger name="failQuest" position="-47000,-1000,1300" distance=2300 target="SpaceShip">
262                  <EventTrigger>
263                    <events>
264                      <trigger>
265                        <EventListener event="gameEnd" />
266                      </trigger>
267                    </events>
268                  </EventTrigger>
269                </DistanceTrigger>
270            </attached>
271        </QuestEffectBeacon>
272
273
274
275
[8875]276    <LocalQuest id="missionOne.basicFlying">
[9016]277        <QuestDescription title="Flying" description="Can you see the blinking light straight ahead? Your goal is to fly through it.
278Use (W) to accelerate and steer with your mouse.
279
280Further flying moves:
281break (S)
282roll     (Q) and (E)
283boost (Space)
284
285Whenever a new quest is added you can view it by pressing (F3). Quit this menu via (Esc)." failmessage="" completeMessage="" />
[8878]286        <complete-effects>
[9016]287            <AddQuest questId="missionOne.navigation" />
[8878]288        </complete-effects>
289    </LocalQuest>
290
[9016]291    <LocalQuest id="missionOne.navigation">
292        <QuestDescription title="Navigation" description="The next goal is to find and move towards the test targets for your weaponsystem. The three arrows that just appeared down in the right corner of your screen indicate in which direction you have to turn your spacefighter to find your next targets.
293
294Alternative navigation: There's a green circle in the left corner - the radar. The red dots on the radar represent your targets. If you manage to move your spaceship in a way such that a dot is at the center of the radar, you will be able to see the concerning object straight ahead." failmessage="" completeMessage="" />
295        <complete-effects>
296            <AddQuest questId="missionOne.weaponsystemI" />
297        </complete-effects>
298    </LocalQuest>
299
[8878]300            <LocalQuest id ="missionOne.weaponsystemI">
[9016]301                <QuestDescription title="Destroy the Boxes" description="Test your four different weapons on the four boxes:
3021. laser (left click)
3032. plasma (right click)
3043. target seeking rockets (middle click)
3054. manual rockets (T)
306
307Attention if you use manual rockets: Press (T) only once to start the rocket. If you miss your target you can get out of the rocket, by clicking or pressing (T) once more." failmessage="" completeMessage="" />
308                    <hints>
309                        <QuestHint id="missionOne.weaponsystem.laser">
310                            <QuestDescription title="Laser" description="The laser is a standard weapon. It is fast and precise but does not deal much damage." />
311                        </QuestHint>
312                        <QuestHint id="missionOne.weaponsystem.lightningGun">
313                            <QuestDescription title="Lightninggun" description="That was the lightning gun. Its plasma munition is quite slow, but a normal spaceship can't take more than three hits of such a strong weapon. That could be your favourite weapon for close range combat or if you want to hit a really slow enemy." />
314                        </QuestHint>
315                        <QuestHint id="missionOne.weaponsystem.targetSeekingRocket">
316                            <QuestDescription title="Target Seeking Rocket" description="The target seeking rockets follow slow targets on their own." />
317                        </QuestHint>
318                        <QuestHint id="missionOne.weaponsystem.manualrocket">
319                            <QuestDescription title="Manual Rocket" description="Manual rockets are your most powerful weapon. But since you have to steer it to your target yourself, you will leave your spaceship unprotected for a while. The total amount of both manual and target seeking rockets is limited to 10." />
320                        </QuestHint>
321                    </hints>
[8878]322                <complete-effects>
323                    <AddQuest questId="missionOne.weaponsystemII" />
324                </complete-effects>
325            </LocalQuest>
[9016]326
[8878]327            <LocalQuest id="missionOne.weaponsystemII">
[9016]328                <QuestDescription title="Kill the pirates" description="Get rid of the patrolling pirates.
329Find out which weapon is best to tackle moving targets. Get close enough." failmessage="" completeMessage="" />
[8878]330                <complete-effects>
331                    <AddQuest questId="missionOne.DuballStation" />
332                </complete-effects>
333            </LocalQuest>
[8871]334
[8878]335    <LocalQuest id="missionOne.DuballStation">
[9016]336        <QuestDescription title="Duball Space Station" description="Fly towards the Duball Space Station. The grey radar marker will lead you to its position." failmessage="" completeMessage="" />
[8878]337        <complete-effects>
338            <AddQuest questId="missionOne.getHelp" />
339        </complete-effects>
340    </LocalQuest>
[8871]341
[8878]342    <LocalQuest id="missionOne.getHelp">
[9016]343        <QuestDescription title="Get Help" description="There are several enemies approaching. You can't handle it on your own. Fortunately there's a shortcut to the next friendly unit. Use the portal (grey dot) to get near the Hydrogen Farmer.
344The Hydrogen Farmer is a large spaceship with three legs.
345There you might get help - as far as we know there should be a strong spaceruiser docked to the Hydrogen Farmer. In order to be able to use that stronger spaceship, you have to dock to the Hydrogen Farmer.
346Simply fly to the center of the Hydrogen Farmer, which is between its three legs.
347
348How to dock: Accept the dialogue, take your hands off the keyboard and watch." failmessage="" completeMessage="" />
[8878]349        <complete-effects>
350            <AddQuest questId="missionOne.getHome" />
351        </complete-effects>
352    </LocalQuest>
[8871]353
[8878]354    <LocalQuest id="missionOne.getHome">
[9016]355        <QuestDescription title="Return ASAP" description="So you managed to get the spacecruiser. Use the portal to return to the DuBall Space Station.
356Hurry! Your help is desperately needed." failmessage="" completeMessage="" />
[8875]357        <complete-effects>
[8878]358            <AddQuest questId="missionOne.defence" />
359        </complete-effects>
[8875]360    </LocalQuest>
[8871]361
[8878]362    <LocalQuest id="missionOne.defence">
[9016]363        <QuestDescription title="Defence" description="Seven enemies were detected that seem to launch a coordinated attack.
364Do not hesitate to fight or you will be the target.
365
366Always take care of the enemy that is the closest to you." failmessage="" completeMessage="Yeah! You did it." />
[8878]367    </LocalQuest>
[9016]368<!-- --------------------- END OF QUESTS -------------------------- -->
[8871]369
370
[9016]371    <DistanceTrigger name="spawndelaytrigger0" position="800,700,600" target="Pawn" distance=10 stayActive="true" delay=2/>
372    <SimpleNotification message="Press (F3) to see your mission briefing.">
[8871]373        <events>
374            <trigger>
375                <EventListener event="spawndelaytrigger0" />
376            </trigger>
377        </events>
378    </SimpleNotification>
[8880]379
[9016]380<!-- Blinking Billboard should be replaced with WAYPOINT -->
381<BlinkingBillboard position="-900,640,600" frequency=0.6 amplitude=3 material="Flares/lensflare" colour="1,1,0.05">
[8880]382          <events>
383            <visibility>
384              <EventTrigger invert=true>
385                <events>
386                  <trigger>
387                    <EventListener event=flying4 />
388                  </trigger>
389                </events>
390              </EventTrigger>
391            </visibility>
392          </events>
393</BlinkingBillboard>
394<Billboard position="-900,640,600" amplitude=1 material="Flares/lensflare" colour="0,0.8,0.1">
395          <events>
396            <visibility>
397              <EventTrigger>
398                <events>
399                  <trigger>
400                    <EventListener event=flying4 />
401                  </trigger>
402                </events>
403              </EventTrigger>
404            </visibility>
405          </events>
406</Billboard>
[9016]407
[8872]408<!-------------------------------------- PART ZERO: How to fly --------------------------------------->
[9016]409
410    <DistanceTrigger name="flying1" position="800,700,600" target="Pawn" distance=10 stayActive="true" delay=6/>
[8880]411    <SimpleNotification message="Let's fly to the blinking light.">
412        <events>
413            <trigger>
414                <EventListener event="flying1" />
415            </trigger>
416        </events>
417    </SimpleNotification>
[8872]418
[9016]419    <DistanceTrigger name="flying2" position="800,700,600" target="Pawn" distance=10 stayActive="true" delay=10/>
420    <SimpleNotification message="Use (W) to accelerate and the mouse to steer.">
[8880]421        <events>
422            <trigger>
423                <EventListener event="flying2" />
424            </trigger>
425        </events>
426    </SimpleNotification>
[8875]427
[9016]428<!-- QUEST-Trigger && Message Trigger: navigationend is activated after flying4 was triggered -->
429    <DistanceTrigger name="navigationend" position="0,0,0" distance=950 target="SpaceShip" stayActive="false" delay=1.1>
430        <DistanceTrigger name="flying4" position="-900,640,600" target="Pawn" distance=60 stayActive="true" delay=1/>
431    </DistanceTrigger>
[8875]432
[9016]433
434    <SimpleNotification message="Three arrows just appeared.">
[8880]435        <events>
436            <trigger>
437                <EventListener event="flying4" />
438            </trigger>
439        </events>
440    </SimpleNotification>
[8875]441
[8880]442    <DistanceTrigger name="flying5" position="-900,640,600" target="Pawn" distance=60 stayActive="true" delay=5/>
[9016]443    <SimpleNotification message="Follow those arrows.">
[8880]444        <events>
445            <trigger>
446                <EventListener event="flying5" />
447            </trigger>
448        </events>
449    </SimpleNotification>
[8875]450
[9016]451<!-------------------------------------- PART ONE : Destroy boxes --------------------------------------->
452<!-- @ triggers: spawndelaytriggerX: textoutput only if no box was destroyed -->
453    <Trigger name="spawndelaytrigger1" mode="and" stayActive="true">
454        <DistanceTrigger position="-900,640,600" target="Pawn" distance=60 stayActive="true" delay=9 />
455        <EventTrigger activations="1" invert="true">
456          <events>
457            <trigger>
458              <EventListener event="boxtrigger1" />
459            </trigger>
460          </events>
461        </EventTrigger>
462    </Trigger>
[8875]463
[9016]464    <Trigger name="spawndelaytrigger2" mode="and" stayActive="true">
465        <DistanceTrigger position="-900,640,600" target="Pawn" distance=60 stayActive="true" delay=13 />
466        <EventTrigger activations="1" invert="true">
467          <events>
468            <trigger>
469              <EventListener event="boxtrigger1" />
470            </trigger>
471          </events>
472        </EventTrigger>
473    </Trigger>
[8875]474
[9016]475    <Trigger name="spawndelaytrigger3" mode="and" stayActive="true">
476        <DistanceTrigger position="-900,640,600" target="Pawn" distance=60 stayActive="true" delay=17 />
477        <EventTrigger activations="1" invert="true">
478          <events>
479            <trigger>
480              <EventListener event="boxtrigger1" />
481            </trigger>
482          </events>
483        </EventTrigger>
484    </Trigger>
485
486<!-- @Text: How to shoot-->
487    <SimpleNotification message="Destroy the four boxes." broadcast="true">
[8800]488        <events>
489            <trigger>
[8871]490                <EventListener event="spawndelaytrigger1" />
[8800]491            </trigger>
492        </events>
493    </SimpleNotification>
494
[9016]495    <SimpleNotification message=" 1. Aim the a red cycle." broadcast="true">
[8800]496        <events>
497            <trigger>
[8871]498                <EventListener event="spawndelaytrigger2" />
[8800]499            </trigger>
500        </events>
501    </SimpleNotification>
502
[9016]503    <SimpleNotification message="2. Click! (hold the left mouse button)" broadcast="true">
[8800]504        <events>
505            <trigger>
[8871]506                <EventListener event="spawndelaytrigger3" />
[8800]507            </trigger>
508        </events>
509    </SimpleNotification>
[8880]510
[8871]511<!-- @Objects: 4 boxes (uncontrolled pawns) -->
[9798]512    <Pawn health=30 position="0,0,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box radarname = "Box 4" >
[9016]513        <events>
514          <visibility>
515            <EventListener event="flying4" />
516          </visibility>
517        </events>
518        <attached>
519            <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
520        </attached>
521        <collisionShapes>
522            <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
523        </collisionShapes>
[9798]524        <controller>
525            <WaypointController team=1>
526            </WaypointController>
527        </controller>
[11052]528        <explosion >
529            <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_flash2" effect2="orxonox/explosion_flame2" />
530            <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_shockwave2" effect2="orxonox/explosion_sparks2" />
531            <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_streak2" effect2="orxonox/explosion_afterglow" />
532        </explosion>
[9016]533    </Pawn>
[8800]534
[9798]535    <Pawn health=30 position="0,100,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box radarname = "Box 3">
[9016]536        <events>
537          <visibility>
538            <EventListener event="flying4" />
539          </visibility>
540        </events>
541        <attached>
542           <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
543        </attached>
544        <collisionShapes>
545            <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
546        </collisionShapes>
[9798]547        <controller>
548            <WaypointController team=1>
549            </WaypointController>
550        </controller>
[11052]551        <explosion >
552            <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_flash2" effect2="orxonox/explosion_flame2" />
553            <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_shockwave2" effect2="orxonox/explosion_sparks2" />
554            <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_streak2" effect2="orxonox/explosion_afterglow" />
555        </explosion>
[9016]556    </Pawn>
[8871]557
[9798]558    <Pawn health=30 position="0,200,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box radarname = "Box 2">
[9016]559        <events>
560          <visibility>
561            <EventListener event="flying4" />
562          </visibility>
563        </events>
564        <attached>
565           <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
566        </attached>
[9798]567        <controller>
568            <WaypointController team=1>
569            </WaypointController>
570        </controller>
[9016]571        <collisionShapes>
572            <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
573        </collisionShapes>
[11052]574        <explosion >
575            <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_flash2" effect2="orxonox/explosion_flame2" />
576            <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_shockwave2" effect2="orxonox/explosion_sparks2" />
577            <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_streak2" effect2="orxonox/explosion_afterglow" />
578        </explosion>
[9016]579    </Pawn>
580
[9798]581    <Pawn health=30 position="0,300,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box radarname = "Box 1">
[9016]582        <events>
583          <visibility>
584            <EventListener event="flying4" />
585          </visibility>
586        </events>
587        <attached>
588            <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
589        </attached>
590        <collisionShapes>
591           <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
592        </collisionShapes>
[9798]593        <controller>
594            <WaypointController team=1>
595            </WaypointController>
596        </controller>
[11052]597        <explosion >
598            <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_flash2" effect2="orxonox/explosion_flame2" />
599            <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_shockwave2" effect2="orxonox/explosion_sparks2" />
600            <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_streak2" effect2="orxonox/explosion_afterglow" />
601        </explosion>
[9016]602    </Pawn>
603
[8871]604<!-- @Triggers: boxtrigger1 <-> one   box   destroyed
605                boxtrigger2 <-> two   boxes destroyed
606                boxtrigger3 <-> three boxes destroyed
607                boxtrigger4 <-> four  boxes destroyed  -->
[8872]608    <EventTrigger name="boxtrigger4" activations="1" stayactive="true" delay=0.1>
[8871]609      <events>
610        <trigger>
611          <EventListener event="box" />
612        </trigger>
613      </events>
[8872]614      <EventTrigger name="boxtrigger3" activations="1" stayactive="true" delay=0.1>
[8871]615        <events>
616          <trigger>
617            <EventListener event="box" />
618          </trigger>
619        </events>
[8872]620        <EventTrigger name="boxtrigger2" activations="1" stayactive="true" delay=0.1>
[8871]621          <events>
622            <trigger>
623              <EventListener event="box" />
[8824]624            </trigger>
[8871]625          </events>
[8872]626          <EventTrigger name="boxtrigger1" activations="1" stayactive="true" delay=0.1>
[8871]627            <events>
628              <trigger>
629                <EventListener event="box" />
630              </trigger>
631            </events>
632          </EventTrigger>
633        </EventTrigger>
634      </EventTrigger>
635    </EventTrigger>
636
637
638  <SimpleNotification message="Right click on the next target." broadcast="true">
639        <events>
640            <trigger>
641                <EventListener event="boxtrigger1" />
642            </trigger>
[8824]643        </events>
644    </SimpleNotification>
[8800]645
[8871]646  <SimpleNotification message="Middle click on the next target." broadcast="true">
647        <events>
648            <trigger>
649                <EventListener event="boxtrigger2" />
650            </trigger>
651        </events>
652    </SimpleNotification>
[8847]653
[9016]654  <SimpleNotification message="Aim at the last target and press (T)." broadcast="true">
[8800]655        <events>
656            <trigger>
[8871]657                <EventListener event="boxtrigger3" />
[8800]658            </trigger>
659        </events>
660    </SimpleNotification>
661
[8880]662  <SimpleNotification message="Try to hit the pirates while you are flying." broadcast="true">
[8824]663        <events>
664            <trigger>
[8871]665                <EventListener event="boxtrigger4" />
[8824]666            </trigger>
667        </events>
668    </SimpleNotification>
[8800]669
670
671<!--------------------------------------PART TWO: Moving targets --------------------------------------->
672
[8880]673<!-- @Objects: 2 pirates moving in squares, nonlethal -->
[9257]674                <SpaceShip position="0,2000,200" lookat="0,0,0" name="movingtarget" radarname="Pirate">
[8878]675                            <events>
676                                <visibility>
677                                    <EventListener event="boxtrigger4" />
678                                </visibility>
679                            </events>
[8838]680                    <templates>
681                      <Template link=spaceshippirate />
682                    </templates>
683                    <controller>
[9016]684                      <WaypointController team=1>
[8838]685                         <waypoints>
686                          <Model mesh="cube.mesh" scale=8 position="  0,1700,-200" />
687                          <Model mesh="cube.mesh" scale=8 position="  0,1700,-700" />
688                          <Model mesh="cube.mesh" scale=8 position="500,1700,-700" />
689                          <Model mesh="cube.mesh" scale=8 position="500,1700,-200" />
690                       </waypoints>
691                    </WaypointController>
692                  </controller>
693                </SpaceShip>
[8800]694
[9257]695                <SpaceShip position="0,2000,400" lookat="0,0,0" name="movingtarget" radarname="Pirate">
[8878]696                            <events>
697                                <visibility>
698                                    <EventListener event="boxtrigger4" />
699                                </visibility>
700                            </events>
[8838]701                  <templates>
702                    <Template link=spaceshippirate />
703                  </templates>
704                  <controller>
[9016]705                    <WaypointController team=1>
[8838]706                      <waypoints>
707                        <Model mesh="cube.mesh" scale=8 position="  0,2400,1000" />
[8871]708                        <Model mesh="cube.mesh" scale=8 position="  0,2400, 500" />
709                        <Model mesh="cube.mesh" scale=8 position="500,2400, 500" />
710                        <Model mesh="cube.mesh" scale=8 position="500,2400,1000" />
[8838]711                      </waypoints>
712                    </WaypointController>
713                  </controller>
714                </SpaceShip>
[8871]715
716<!-- @Triggers: movingpirates1 <-> one  pirate  dead
717                movingpirates2 <-> both pirates dead  -->
[8872]718    <EventTrigger name="movingpirates2" activations="1" stayactive="true" delay=0.1>
[8871]719      <events>
720        <trigger>
721          <EventListener event="movingtarget" />
722        </trigger>
723      </events>
[8872]724      <EventTrigger name="movingpirates1" activations="1" stayactive="true" delay=0.1>
[8871]725        <events>
726          <trigger>
727            <EventListener event="movingtarget" />
728          </trigger>
729        </events>
730      </EventTrigger>
731    </EventTrigger>
732
733
734    <SimpleNotification message="Now get the other one."  broadcast="true">
735        <events>
736            <trigger>
737                <EventListener event="movingpirates1" />
[8838]738            </trigger>
739        </events>
740    </SimpleNotification>
741
[8871]742    <SimpleNotification message="Fly towards the space station (grey dot)."  broadcast="true">
743        <events>
744            <trigger>
745                <EventListener event="movingpirates2" />
746            </trigger>
747        </events>
748    </SimpleNotification>
749
750
751
752<!--------------------------------------PART THREE: the space station --------------------------------------->
[8880]753    <DistanceTrigger name="duball1" position="-1000,-300,700" target="Pawn" distance=700 stayActive="true" delay=1 >
754      <events>
755        <activity>
756          <EventListener event="movingpirates2" />
757        </activity>
758      </events>
759    </DistanceTrigger>
760
[9016]761    <Trigger name="duball2" mode="and" stayActive="true">
762        <EventTrigger activations="1" stayactive="true" delay=4 >
763           <events>
764              <trigger>
765                 <EventListener event="duball1" />
766              </trigger>
767           </events>
768        </EventTrigger>
769        <EventTrigger activations="1" invert="true">
770          <events>
771            <trigger>
772              <EventListener event="toHydroFarmer" />
773            </trigger>
774          </events>
775        </EventTrigger>
776    </Trigger>
[8880]777
[9016]778    <Trigger name="duball3" mode="and" stayActive="true">
779        <EventTrigger activations="1" stayactive="true" delay=4 >
780           <events>
781              <trigger>
782                 <EventListener event="duball2" />
783              </trigger>
784           </events>
785        </EventTrigger>
786        <EventTrigger activations="1" invert="true">
787          <events>
788            <trigger>
789              <EventListener event="toHydroFarmer" />
790            </trigger>
791          </events>
792        </EventTrigger>
793    </Trigger>
[8880]794
[9016]795
[8800]796    <SimpleNotification message="Welcome to the Duball Space Station!">
797        <events>
798            <trigger>
799                <EventListener event=duball1 />
800            </trigger>
801        </events>
802    </SimpleNotification>
803
[8880]804    <SimpleNotification message="Warning: Something big is coming." broadcast="true">
[8800]805        <events>
806            <trigger>
807                <EventListener event=duball2 />
808            </trigger>
809        </events>
810    </SimpleNotification>
811
[8880]812    <SimpleNotification message="Use the portals to get help. (grey dot)" broadcast="true">
[8800]813        <events>
814            <trigger>
815                <EventListener event=duball3 />
816            </trigger>
817        </events>
818    </SimpleNotification>
819
[8871]820
821<!-- @Objects: DuBall Space Station, (no pawn!) -->
822    <StaticEntity position="-1000,-300,700" collisionType=static>
[8869]823      <attached>
824        <Model scale=13 mesh="DuBall1.mesh" position = "-100,0,0"/>
825        <Model scale=13 mesh="DuBall2.mesh" position = "100,0,0"/>
826        <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "-100,0,0"/>
[9016]827        <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "100,0,0"/>
[8869]828      </attached>
829      <collisionShapes>
830        <SphereCollisionShape radius="80"            position = "-100,0,0" />
831        <SphereCollisionShape radius="120"           position = "100,0,0" />
832        <BoxCollisionShape    halfExtents="90,25,45" position = "-155,0,40" />
833      </collisionShapes>
[8871]834    </StaticEntity>
[8838]835
836
[8871]837<!-- @Objects: PORTAL: from DuBall to HydroHarvester  -->
[8838]838    <Template name=PortalDefault>
839        <PortalEndPoint>
840            <attached>
841                <Billboard material="Portals/Default" />
842            </attached>
843        </PortalEndPoint>
844    </Template>
845
[8869]846    <PortalEndPoint position="-1400,-500,800" id="1" distance="50" target="MobileEntity" design="PortalDefault">
[8873]847          <events>
848            <activity>
849              <Trigger mode="or" activations="2">
850                <Trigger mode="and" activations="1">
851                  <EventTrigger>
852                    <events>
853                      <trigger>
854                        <EventListener event="movingpirates2" />
855                      </trigger>
856                    </events>
857                  </EventTrigger>
858                  <EventTrigger invert=true>
859                    <events>
860                      <trigger>
[8874]861                        <EventListener event="toHydroFarmer" />
[8873]862                      </trigger>
863                    </events>
864                  </EventTrigger>
865                </Trigger>
866                <Trigger mode="and" activations="1">
867                  <EventTrigger>
868                    <events>
869                      <trigger>
[8874]870                        <EventListener event="ondock" />
[8873]871                      </trigger>
872                    </events>
873                  </EventTrigger>
874                  <EventTrigger invert=true>
875                    <events>
876                      <trigger>
[8874]877                        <EventListener event="attack" />
[8873]878                      </trigger>
879                    </events>
880                  </EventTrigger>
881                </Trigger>
[8874]882                <EventTrigger>
883                  <events>
884                    <trigger>
885                      <EventListener event="HydroFarmer" />
886                    </trigger>
887                  </events>
888                </EventTrigger>
[8873]889              </Trigger>
890            </activity>
891          </events>
[8838]892    </PortalEndPoint>
893
[8873]894    <PortalEndPoint position="-47000,-1000,1300" id="2" distance="70" target="MobileEntity" design="PortalDefault">
895          <events>
896            <activity>
[8874]897              <Trigger mode="or" activations="3">
[8873]898                <Trigger mode="and" activations="1">
899                  <EventTrigger>
900                    <events>
901                      <trigger>
902                        <EventListener event="movingpirates2" />
903                      </trigger>
904                    </events>
905                  </EventTrigger>
906                  <EventTrigger invert=true>
907                    <events>
908                      <trigger>
[8874]909                        <EventListener event="toHydroFarmer" />
[8873]910                      </trigger>
911                    </events>
912                  </EventTrigger>
913                </Trigger>
914                <Trigger mode="and" activations="1">
915                  <EventTrigger>
916                    <events>
917                      <trigger>
[8874]918                        <EventListener event="ondock" />
[8873]919                      </trigger>
920                    </events>
921                  </EventTrigger>
922                  <EventTrigger invert=true>
923                    <events>
924                      <trigger>
[8874]925                        <EventListener event="attack" />
[8873]926                      </trigger>
927                    </events>
928                  </EventTrigger>
929                </Trigger>
[8874]930                <EventTrigger>
931                  <events>
932                    <trigger>
933                      <EventListener event="HydroFarmer" />
934                    </trigger>
935                  </events>
936                </EventTrigger>
[8873]937              </Trigger>
938            </activity>
939          </events>
940    </PortalEndPoint>
[8838]941    <PortalLink fromID="1" toID="2" />
942    <PortalLink fromID="2" toID="1" />
[8874]943<!-- ????????????????????????????????????????????????????? why does this NOT work ??
944                <Trigger mode="and" activations="1">
945                  <EventTrigger>
946                    <events>
947                      <trigger>
948                        <EventListener event="HydroFarmer" />
949                      </trigger>
950                    </events>
951                  </EventTrigger>
952                  <EventTrigger invert=true>
953                    <events>
954                      <trigger>
955                        <EventListener event="attack" />
956                      </trigger>
957                    </events>
958                  </EventTrigger>
959                </Trigger>
960-->
[8838]961<!-- PORTALS END-->
962
[8874]963
[9016]964    <SimpleNotification message="Dock to the Hydrogen Farmer." broadcast="true">
[8800]965        <events>
966            <trigger>
[8869]967                <EventListener event=toHydroFarmer />
[8800]968            </trigger>
969        </events>
[8869]970    </SimpleNotification>
[8871]971
[9016]972<!-------------------------------------- PART FOUR : Get Help --------------------------------------->
973
974    <Trigger name="famer1" mode="and" stayActive="true">
975        <DistanceTrigger position="-48200,100,0" target="Pawn" distance=650 stayActive="true" delay=0 />
976        <EventTrigger name="notGameEnd" activations="1" invert="true">
977          <events>
978            <trigger>
979              <EventListener event="gameEnd" />
980            </trigger>
981          </events>
982        </EventTrigger>
983    </Trigger>
984
985    <Trigger name="famer2" mode="and" stayActive="true">
986        <DistanceTrigger position="-48200,100,0" target="Pawn" distance=650 stayActive="true" delay=4 />
987        <EventTrigger activations="1" invert="true">
988          <events>
989            <trigger>
990              <EventListener event="gameEnd" />
991            </trigger>
992          </events>
993        </EventTrigger>
994    </Trigger>
995
996    <SimpleNotification message="We just received a message from DuBall." broadcast="true">
[8847]997        <events>
998            <trigger>
999                <EventListener event=famer1 />
1000            </trigger>
1001        </events>
1002    </SimpleNotification>
[8773]1003
[9016]1004
1005    <SimpleNotification message="We will lend you our strongest ship." broadcast="true">
[8847]1006        <events>
1007            <trigger>
1008                <EventListener event=famer2 />
1009            </trigger>
1010        </events>
1011    </SimpleNotification>
[8838]1012
[8869]1013
[8871]1014<!-- @Objects: HYDROGEN FARMER & DOCKING -->
[9016]1015    <SpaceShip
[9257]1016        team      = 0
1017        position  = "-48900,100,0"
1018        roll      = 90   yaw=0  pitch=20
1019        mass      = 10000
1020        health    = 100000 initialhealth=100000 maxhealth="100000"
1021        name      = "HydroFarmer"
1022        radarname = "Hydrogen Farmer" >
[8847]1023      <attached>
1024        <!-- Docking -->
[8851]1025        <DistanceTriggerBeacon name="bcnDestroyer" />
1026        <DockingTarget name="destroyer" />
[8838]1027
[8847]1028        <Model mesh="HydroHarvester.mesh" mass=10 position="0,0,0" scale=50 />
1029   <!-- <Model mesh="cube.mesh" mass=10 position="-560,0,0" scale3D="115,100,245"  />
1030        <Model mesh="cube.mesh" mass=10 position="290,0,-480" scale3D="115,100,245" yaw=-120 />
1031        <Model mesh="cube.mesh" mass=10 position="290,0,480" scale3D="115,100,245" yaw=-240 />
1032        <Model mesh="cube.mesh" mass=10 position="-280,0,0" scale3D="163,50,50" />
1033        <Model mesh="cube.mesh" mass=10 position="140,0,-240" scale3D="163,50,50"  yaw=-120/>
1034        <Model mesh="cube.mesh" mass=10 position="140,0,240" scale3D="163,50,50" yaw=-240/>
1035        <Model mesh="cube.mesh" mass=10 position="0,530,0" scale3D="172,52,298" />
1036        <Model mesh="cube.mesh" mass=10 position="0,530,0" scale3D="172,52,298" yaw=-120/>
1037        <Model mesh="cube.mesh" mass=10 position="0,530,0" scale3D="172,52,298" yaw=-240/>
1038        <Model mesh="cube.mesh" mass=10 position="0,400,0" scale3D="43,110,26" yaw=-30 />
1039        <Model mesh="cube.mesh" mass=10 position="-200,100,0" scale3D="26,50,43" />
1040        <Model mesh="cube.mesh" mass=10 position="100,100,-173" scale3D="43,50,26" yaw=-30/>
1041        <Model mesh="cube.mesh" mass=10 position="100,100,173" scale3D="43,50,26" yaw=30/>
1042        <Model mesh="cube.mesh" mass=10 position="-100,264,0" scale3D="26,105,43" roll=-49/>
1043        <Model mesh="cube.mesh" mass=10 position="50,264,-87" scale3D="26,105,43" roll=-49 yaw=-120/>
1044        <Model mesh="cube.mesh" mass=10 position="50,264,87" scale3D="26,105,43" roll=-49 yaw=-240/>     -->
1045      </attached>
1046      <collisionShapes>
1047        <BoxCollisionShape  position="-560,0,0" halfExtents="115,100,245" /><!-- Three lower boxes -->
1048        <BoxCollisionShape  position="290,0,-480" halfExtents="115,100,245" yaw=-120 />
1049        <BoxCollisionShape  position="290,0,480" halfExtents="115,100,245" yaw=-240 />
1050        <BoxCollisionShape  position="-280,0,0" halfExtents="163,50,50" /><!-- Three lower connections -->
1051        <BoxCollisionShape  position="140,0,-240" halfExtents="163,50,50" yaw=-120 />
1052        <BoxCollisionShape  position="140,0,240" halfExtents="163,50,50" yaw=-240 />
1053        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" /><!-- Upper Tower -->
1054        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-120 />
1055        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-240 />
1056        <BoxCollisionShape  position="0,400,0" halfExtents="43,110,26" yaw=-30 /><!-- Middle one-->
1057        <BoxCollisionShape  position="-200,100,0" halfExtents="26,50,43" /><!--Three lower legs -->
1058        <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=-30 />
1059        <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=30 />
1060        <BoxCollisionShape  position="-100,264,0" halfExtents="26,105,43" roll=-49 /><!--Three upper legs -->
1061        <BoxCollisionShape  position="50,264,-87" halfExtents="26,105,43" roll=-49 yaw=-120 />
1062        <BoxCollisionShape  position="50,264,87" halfExtents="26,105,43" roll=-49 yaw=-240 />
1063      </collisionShapes>
1064    </SpaceShip>
[8838]1065
[8869]1066    <Dock position="-48900,0,0" roll=90 yaw=180 >
[8851]1067        <animations>
1068            <MoveToDockingTarget target="destroyer" />
1069        </animations>
1070        <effects>
1071            <DockToShip target="spaceShip" />
1072        </effects>
1073        <events>
1074            <execute>
1075                <EventListener event="dockMe" />
1076            </execute>
[9016]1077            <activity>
1078                <EventListener event=notGameEnd />
1079            </activity>
[8851]1080        </events>
1081        <attached>
1082            <DistanceTrigger position="10,-202, -42" distance="800" target="Pawn"
1083                beaconMode="exclude" targetname="bcnDestroyer" name="dockMe"
1084            />
1085        </attached>
[9016]1086
[8851]1087    </Dock>
[8838]1088
[9016]1089<!--@Objects: SpaceCruiser as docking target -->
1090    <SpaceShip
1091        template            = "spaceshipspacecruiser"
1092        team                = "0"
1093        position            = "-48900,800,0"
1094        orientation         = "-0.14, 0.68, 0.68, 0.223"
1095        health              = "400"
1096        initialhealth       = "400"
1097        maxhealth           = "500"
1098        shieldhealth        = "80"
1099        initialshieldhealth = "80"
1100        maxshieldhealth     = "120"
1101        shieldabsorption    = "0.8"
[11052]1102        shieldrechargerate  = "1"
1103        shieldrechargewaittime = "1"
[9016]1104        name                = "cruiser"
[9257]1105        radarname           = "Spacecruiser" >
[8851]1106      <attached>
1107        <DockingTarget name="spaceShip" />
1108      </attached>
1109    </SpaceShip>
[8874]1110
1111
[9016]1112<!-- cruiserKilled: if cuiser is killed & player hasn't taken control of spacecrusier -->
[8880]1113          <Trigger name="cruiserKilled" mode="and" stayActive="true">
1114            <EventTrigger  stayActive="true">
[8874]1115              <events>
1116                <trigger>
[8880]1117                  <EventListener event="cruiser"/>
[8874]1118                </trigger>
1119              </events>
1120            </EventTrigger>
1121            <EventTrigger invert=true>
1122              <events>
1123                <trigger>
1124                  <EventListener event="ondock" />
1125                </trigger>
1126              </events>
1127            </EventTrigger>
1128          </Trigger>
1129
1130
[9016]1131<!-- triggers when either hydrofarmer or cruiser is killed -->
1132            <Trigger mode=or name="gameEnd">
1133                <EventTrigger activations="1">
1134                  <events>
1135                    <trigger>
1136                      <EventListener event="HydroFarmer" />
1137                    </trigger>
1138                  </events>
1139                </EventTrigger>
1140                <EventTrigger activations="1">
1141                  <events>
1142                    <trigger>
1143                      <EventListener event="cruiserKilled" />
1144                    </trigger>
1145                  </events>
1146                </EventTrigger>
1147            </Trigger>
[8880]1148
[9016]1149<!-- triggers delayed when either hydrofarmer or cruiser is killed -->
[8880]1150            <EventTrigger delay=4 name="earlyEnd">
1151              <events>
1152                <trigger>
[9016]1153                  <EventListener event="gameEnd" />
[8880]1154                </trigger>
1155              </events>
1156              <events>
1157                <activity>
1158                  <EventListener event="movingpirates2" />
1159                </activity>
1160              </events>
1161            </EventTrigger>
1162
1163
[8878]1164    <SimpleNotification message="Oh no! You killed the Hydrogen Farmer!" broadcast="true">
[8874]1165        <events>
1166            <trigger>
1167                <EventListener event="HydroFarmer" />
1168            </trigger>
1169        </events>
1170    </SimpleNotification>
1171
[8878]1172    <SimpleNotification message="Oh no! You killed the SpaceCruiser!" broadcast="true">
[8874]1173        <events>
1174            <trigger>
[8880]1175                <EventListener event="cruiserKilled" />
[8874]1176            </trigger>
1177        </events>
1178    </SimpleNotification>
1179
[9016]1180    <SimpleNotification message="Press (Esc) and restart the mission." broadcast="true">
[8880]1181        <events>
1182            <trigger>
1183                <EventListener event="earlyEnd" />
1184            </trigger>
1185        </events>
1186    </SimpleNotification>
[8874]1187
[8871]1188<!-- hydrogen farmer & docking END -->
[8847]1189
[8851]1190
[8871]1191<!-- @Objects: Pickup - find better place !! -->
[9348]1192    <PickupSpawner pickup=hugeshieldpickup position="-48650,700,100" triggerDistance="70" respawnTime="30" maxSpawnedItems="1" />
[8871]1193
1194
[8869]1195    <DistanceTrigger name="pickup" position="-48650,700,100" target="Pawn" distance=60 stayActive="true" delay=0 />
1196    <SimpleNotification message="This pickup protects your spaceship.">
[8847]1197        <events>
1198            <trigger>
[8851]1199                <EventListener event=pickup />
[8847]1200            </trigger>
1201        </events>
1202    </SimpleNotification>
1203<!-- Pickup-->
1204
1205
[8871]1206<!-- @Objects: planet && spaceboundaries  -->
[8838]1207    <Planet
[8847]1208      position="-44000,0,0"
1209      scale="2500"
[8838]1210      collisionType="dynamic"
1211      linearDamping="0.8"
1212      angularDamping="0"
1213      mass="10000000"
1214      pitch="0"
1215      mesh="planets/muunilinst.mesh"
1216      atmosphere="atmosphere1"
1217      rotationaxis="1,0,0"
1218      rotationrate="1.0"
1219      atmospheresize="80.0f"
1220      imagesize="1024.0f"
[8872]1221      collisiondamage = "2"
1222      enablecollisiondamage = "false"
[8838]1223    >
[8847]1224      <!--attached>
[9016]1225        <ForceField position="0,0,0" mode="sphere" diameter="10000" velocity="-50" />
[8847]1226      </attached-->  <!-- Forcefield kills HYDROGEN FARMER-->
[8838]1227      <collisionShapes>
[8872]1228        <SphereCollisionShape radius="2500" position="0,0,0" />
[8838]1229      </collisionShapes>
1230    </Planet>
1231
1232
[8869]1233<!-------------------------------------- The attack --------------------------------------->
1234<!-- TODO:
1235     - update spaceshipTransporter
[9016]1236     - bots do friendly fire (is drone function reusable?)
[8869]1237-->
[8871]1238
[9016]1239<!-- Fallback Spawnpoint: on cruiserdeath caused by pirates. Unfortunately unstable behaviour concerning activity. -->
1240    <TeamSpawnPoint team=0 position="2000,1500,-1500" direction="-1,-1,1" spawnclass=SpaceShip pawndesign=spaceshipspacecruiser>
1241        <events>
1242            <activity>
1243                <EventListener event="attack" />
1244            </activity>
1245        </events>
1246    </TeamSpawnPoint>
1247
[8871]1248<!-- @Triggers: toHydroFamer <-> first  portal usage
1249                ondock       <-> successfull docking
1250                attack       <-> second portal usage -->
1251
[9016]1252    <DistanceTrigger name="attack" position="-1400,-500,800" target="Pawn" distance=100 stayActive="true" mode="and">
[8871]1253        <EventTrigger name="ondock" activations="1" stayactive="true" delay=6>
1254          <events>
1255            <trigger>
1256              <EventListener event="dockMe" />
1257            </trigger>
1258          </events>
[9016]1259            <Trigger mode=and>
1260              <DistanceTrigger name="toHydroFarmer" position="-47000,-1000,1300" target="Pawn" distance=100 stayActive="true" />
1261              <EventTrigger activations="1" invert="true">
1262                <events>
1263                  <trigger>
1264                    <EventListener event="gameEnd" />
1265                  </trigger>
1266                </events>
1267              </EventTrigger>
1268            </Trigger>
[8871]1269        </EventTrigger>
[9016]1270        <EventTrigger activations="1" invert="true">
1271          <events>
1272            <trigger>
1273              <EventListener event="earlyEnd" />
1274            </trigger>
1275          </events>
1276        </EventTrigger>
[8871]1277    </DistanceTrigger>
1278
[9016]1279    <SimpleNotification message="Return before it's too late. Boost with (Space)." broadcast="true">
[8871]1280        <events>
1281            <trigger>
1282                <EventListener event=ondock />
1283            </trigger>
1284        </events>
1285    </SimpleNotification>
1286
1287    <SimpleNotification message="Several serious enemies are approaching!">
1288        <events>
1289            <trigger>
1290                <EventListener event=attack />
1291            </trigger>
1292        </events>
1293    </SimpleNotification>
1294
1295
1296<!-- @Objects: 6 pirates, heading towards DuBall, attacking  -->
[9016]1297<!-- TODO: re-hide pirates on early end-->
[8869]1298<!-- 1 -->
[8872]1299    <SpaceShip position="3000,-4000,4000" lookat="-1300,-600,900" name="attacker"visible="true">
1300        <events>
1301            <visibility>
1302                <EventListener event="ondock" />
1303            </visibility>
1304        </events>
[8869]1305        <templates>
1306            <Template link=spaceshippirate /> <!--spaceshipTransporter -->
1307        </templates>
1308        <controller>
[8878]1309            <WaypointPatrolController alertnessradius=3129 team=1 active=false>
[8869]1310                <waypoints>
1311                    <Model mesh="cube.mesh" scale=0 position="-1300,-600,900" />
1312                    <Model mesh="cube.mesh" scale=0 position="0,0,0" />
1313                </waypoints>
1314                <events>
1315                    <activity>
1316                        <EventListener event="attack" /> <!-- activates enemies-->
1317                     </activity>
1318                </events>
1319            </WaypointPatrolController>
1320        </controller>
1321    </SpaceShip>
1322<!-- 2 -->
[8872]1323    <SpaceShip position="3000,-4000,-4000" lookat="-1300,-600,900" name="attacker" visible="true">
1324        <events>
1325            <visibility>
1326                <EventListener event="ondock" />
1327            </visibility>
1328        </events>
[8869]1329        <templates>
1330            <Template link=spaceshippirate /> <!--spaceshipTransporter -->
1331        </templates>
1332        <controller>
[8878]1333            <WaypointPatrolController alertnessradius=3129 team=1 active=false>
[8869]1334                <waypoints>
1335                    <Model mesh="cube.mesh" scale=0 position="-1300,-600,900" />
1336                    <Model mesh="cube.mesh" scale=0 position="0,0,0" />
1337                </waypoints>
1338                <events>
1339                    <activity>
1340                        <EventListener event="attack" /> <!-- activates enemies-->
1341                     </activity>
1342                </events>
1343            </WaypointPatrolController>
1344        </controller>
1345    </SpaceShip>
1346<!-- 3 -->
[8872]1347    <SpaceShip position="-4000,-3000,4000" lookat="-1300,-600,900" name="attacker" visible="true">
1348        <events>
1349            <visibility>
1350                <EventListener event="ondock" />
1351            </visibility>
1352        </events>
[8869]1353        <templates>
1354            <Template link=spaceshippirate /> <!--spaceshipTransporter -->
1355        </templates>
1356        <controller>
[8878]1357            <WaypointPatrolController alertnessradius=3129 team=1 active=false>
[8869]1358                <waypoints>
1359                    <Model mesh="cube.mesh" scale=0 position="-1300,-600,900" />
1360                    <Model mesh="cube.mesh" scale=0 position="0,0,0" />
1361                </waypoints>
1362                <events>
1363                    <activity>
1364                        <EventListener event="attack" /> <!-- activates enemies-->
1365                     </activity>
1366                </events>
1367            </WaypointPatrolController>
1368        </controller>
1369    </SpaceShip>
1370<!-- 4 -->
[8872]1371    <SpaceShip position="-3000,-3000,-5000" lookat="-1300,-600,900" name="attacker" visible="true">
1372        <events>
1373            <visibility>
1374                <EventListener event="ondock" />
1375            </visibility>
1376        </events>
[8869]1377        <templates>
1378            <Template link=spaceshippirate /> <!--spaceshipTransporter -->
1379        </templates>
1380        <controller>
[8878]1381            <WaypointPatrolController alertnessradius=3129 team=1 active=false>
[8869]1382                <waypoints>
1383                    <Model mesh="cube.mesh" scale=0 position="-1300,-600,900" />
1384                    <Model mesh="cube.mesh" scale=0 position="0,0,0" />
1385                </waypoints>
1386                <events>
1387                    <activity>
1388                        <EventListener event="attack" /> <!-- activates enemies-->
1389                     </activity>
1390                </events>
1391            </WaypointPatrolController>
1392        </controller>
1393    </SpaceShip>
1394<!-- 5 -->
[8872]1395    <SpaceShip position="4000,4000,3000" lookat="-1300,-600,900" name="attacker"visible="true">
1396        <events>
1397            <visibility>
1398                <EventListener event="ondock" />
1399            </visibility>
1400        </events>
[8869]1401        <templates>
1402            <Template link=spaceshippirate /> <!--spaceshipTransporter -->
1403        </templates>
1404        <controller>
[8878]1405            <WaypointPatrolController alertnessradius=3129 team=1 active=false>
[8869]1406                <waypoints>
1407                    <Model mesh="cube.mesh" scale=0 position="-1300,-600,900" />
1408                    <Model mesh="cube.mesh" scale=0 position="0,0,0" />
1409                </waypoints>
1410                <events>
1411                    <activity>
1412                        <EventListener event="attack" /> <!-- activates enemies-->
1413                     </activity>
1414                </events>
1415            </WaypointPatrolController>
1416        </controller>
1417    </SpaceShip>
1418<!-- 6 -->
[8872]1419    <SpaceShip position="2000,-4000,5000" lookat="-1300,-600,900" name="attacker" visible="true">
1420        <events>
1421            <visibility>
1422                <EventListener event="ondock" />
1423            </visibility>
1424        </events>
[8869]1425        <templates>
1426            <Template link=spaceshippirate /> <!--spaceshipTransporter -->
1427        </templates>
1428        <controller>
[8878]1429            <WaypointPatrolController alertnessradius=3129 team=1 active=false>
[8869]1430                <waypoints>
1431                    <Model mesh="cube.mesh" scale=0 position="-1300,-600,900" />
1432                    <Model mesh="cube.mesh" scale=0 position="0,0,0" />
1433                </waypoints>
1434                <events>
1435                    <activity>
1436                        <EventListener event="attack" /> <!-- activates enemies-->
1437                     </activity>
1438                </events>
1439            </WaypointPatrolController>
1440        </controller>
1441    </SpaceShip>
[8847]1442
[9016]1443
[8871]1444<!-- @Triggers: attacktriggerX <-> X enemies destroyed , X is an element of [1,6] -->
1445    <EventTrigger name="attacktrigger6" activations="1" stayactive="true">
1446      <events>
1447        <trigger>
1448          <EventListener event="attacker" />
1449        </trigger>
1450      </events>
[8872]1451      <EventTrigger name="attacktrigger5" activations="1" stayactive="true" delay=0.1>
[8871]1452        <events>
1453          <trigger>
1454            <EventListener event="attacker" />
1455          </trigger>
1456        </events>
[8872]1457        <EventTrigger name="attacktrigger4" activations="1" stayactive="true" delay=0.1>
[8871]1458          <events>
1459            <trigger>
1460              <EventListener event="attacker" />
1461            </trigger>
1462          </events>
[8872]1463          <EventTrigger name="attacktrigger3" activations="1" stayactive="true" delay=0.1>
[8871]1464            <events>
1465              <trigger>
1466                <EventListener event="attacker" />
1467              </trigger>
1468            </events>
[8872]1469            <EventTrigger name="attacktrigger2" activations="1" stayactive="true" delay=0.1>
[8871]1470              <events>
1471                <trigger>
1472                  <EventListener event="attacker" />
1473                </trigger>
1474              </events>
[8872]1475              <EventTrigger name="attacktrigger1" activations="1" stayactive="true" delay=0.1>
[8871]1476                <events>
1477                  <trigger>
1478                    <EventListener event="attacker" />
1479                  </trigger>
1480                </events>
1481              </EventTrigger>
1482            </EventTrigger>
1483          </EventTrigger>
1484        </EventTrigger>
1485      </EventTrigger>
1486    </EventTrigger>
[8847]1487
[8871]1488
1489    <SimpleNotification message="5 enemies left!" broadcast="true">
1490      <events>
1491        <trigger>
1492          <EventListener event="attacktrigger1" />
1493        </trigger>
1494      </events>
1495    </SimpleNotification>
1496
1497    <SimpleNotification message="4 enemies left!" broadcast="true">
1498      <events>
1499        <trigger>
1500          <EventListener event="attacktrigger2" />
1501        </trigger>
1502      </events>
1503    </SimpleNotification>
1504
1505    <SimpleNotification message="3 enemies left!" broadcast="true">
1506      <events>
1507        <trigger>
1508          <EventListener event="attacktrigger3" />
1509        </trigger>
1510      </events>
1511    </SimpleNotification>
1512
1513    <SimpleNotification message="2 enemies left!" broadcast="true">
1514      <events>
1515        <trigger>
1516          <EventListener event="attacktrigger4" />
1517        </trigger>
1518      </events>
1519    </SimpleNotification>
[9016]1520
[8871]1521    <SimpleNotification message="One enemy left!" broadcast="true">
1522      <events>
1523        <trigger>
1524          <EventListener event="attacktrigger5" />
1525        </trigger>
1526      </events>
1527    </SimpleNotification>
[9016]1528
[8871]1529    <SimpleNotification message="Well done. You finished this tutorial." broadcast="true">
1530      <events>
1531        <trigger>
1532          <EventListener event="attacktrigger6" />
1533        </trigger>
1534      </events>
1535    </SimpleNotification>
1536
1537<!-- @Triggers: postAttack <-> delayed attacktrigger6 -->
[9016]1538    <EventTrigger name="postAttack1" activations="1" stayactive="true" delay=4.1>
[8871]1539      <events>
1540        <trigger>
1541          <EventListener event="attacktrigger6" />
1542        </trigger>
1543      </events>
1544    </EventTrigger>
1545
[9016]1546    <EventTrigger name="postAttack2" activations="1" stayactive="true" delay=8.2>
[8871]1547      <events>
1548        <trigger>
1549          <EventListener event="attacktrigger6" />
1550        </trigger>
1551      </events>
1552    </EventTrigger>
1553
[9016]1554    <SimpleNotification message="Either quit by pressing (Esc) or ..." broadcast="true">
[8871]1555      <events>
1556        <trigger>
1557          <EventListener event="postAttack1" />
1558        </trigger>
1559      </events>
1560    </SimpleNotification>
1561
[8872]1562    <SimpleNotification message="... stay here to learn some tricks." broadcast="true">
[8871]1563      <events>
1564        <trigger>
1565          <EventListener event="postAttack2" />
1566        </trigger>
1567      </events>
1568    </SimpleNotification>
1569
[8869]1570<!-------------------------------------- |Bonus Part| --------------------------------------->
[8872]1571<!-- @Triggers: "bonusX" <->  delayed "attacktrigger6" -->
[9016]1572    <EventTrigger name="bonus1" activations="1" stayactive="true" delay=12.3>
[8872]1573      <events>
1574        <trigger>
1575          <EventListener event="attacktrigger6" />
1576        </trigger>
1577      </events>
1578    </EventTrigger>
[9016]1579    <EventTrigger name="bonus2" activations="1" stayactive="true" delay=16.4>
[8872]1580      <events>
1581        <trigger>
1582          <EventListener event="attacktrigger6" />
1583        </trigger>
1584      </events>
1585    </EventTrigger>
1586    <EventTrigger name="bonus3" activations="1" stayactive="true" delay=22>
1587      <events>
1588        <trigger>
1589          <EventListener event="attacktrigger6" />
1590        </trigger>
1591      </events>
1592    </EventTrigger>
[9016]1593    <EventTrigger name="bonus4" activations="1" stayactive="true" delay=28.1>
[8872]1594      <events>
1595        <trigger>
1596          <EventListener event="attacktrigger6" />
1597        </trigger>
1598      </events>
1599    </EventTrigger>
[9016]1600    <EventTrigger name="bonus5" activations="1" stayactive="true" delay=32.3>
[8872]1601      <events>
1602        <trigger>
1603          <EventListener event="attacktrigger6" />
1604        </trigger>
1605      </events>
1606    </EventTrigger>
[9016]1607    <EventTrigger name="bonus6" activations="1" stayactive="true" delay=36.5>
[8872]1608      <events>
1609        <trigger>
1610          <EventListener event="attacktrigger6" />
1611        </trigger>
1612      </events>
1613    </EventTrigger>
[9016]1614    <EventTrigger name="bonus7" activations="1" stayactive="true" delay=4.1>
[8872]1615      <events>
1616        <trigger>
1617          <EventListener event="bonus6" />
1618        </trigger>
1619      </events>
1620    </EventTrigger>
[8869]1621
1622
1623
[9016]1624    <SimpleNotification message="Rotate your ship. Press (Q) or (E). "  broadcast="true">
[8869]1625        <events>
[8847]1626            <trigger>
[8869]1627                <EventListener event=bonus1 />
[8847]1628            </trigger>
1629        </events>
[8869]1630    </SimpleNotification>
[8847]1631
[9016]1632    <SimpleNotification message="Switch the camera's position. Press (C). "  broadcast="true">
[8869]1633        <events>
1634            <trigger>
1635                <EventListener event=bonus2 />
1636            </trigger>
1637        </events>
1638    </SimpleNotification>
[8847]1639
[9016]1640    <SimpleNotification message="360° view: press (Ctrl) + use the mouse "  broadcast="true">
[8869]1641        <events>
1642            <trigger>
1643                <EventListener event=bonus3 />
1644            </trigger>
1645        </events>
1646    </SimpleNotification>
[8847]1647
[8872]1648    <SimpleNotification message="Have a look at the main menu's settings."  broadcast="true">
[8869]1649        <events>
1650            <trigger>
1651                <EventListener event=bonus4 />
1652            </trigger>
1653        </events>
1654    </SimpleNotification>
[8847]1655
[8872]1656    <SimpleNotification message="E.g: Settings > Miscellaneous > Nr. of bots"  broadcast="true">
[8869]1657        <events>
1658            <trigger>
1659                <EventListener event=bonus5 />
1660            </trigger>
1661        </events>
1662    </SimpleNotification>
[8847]1663
[8872]1664    <SimpleNotification message="You successfully finished Mission One!"  broadcast="true">
[8869]1665        <events>
1666            <trigger>
1667                <EventListener event=bonus6 />
1668            </trigger>
1669        </events>
1670    </SimpleNotification>
[8871]1671
[9016]1672    <SimpleNotification message="Press (Esc) and return to the main menu."  broadcast="true">
[8869]1673        <events>
1674            <trigger>
[8872]1675                <EventListener event=bonus7 />
1676            </trigger>
1677        </events>
1678    </SimpleNotification>
1679
[9985]1680<!-- @Triggers: HACK. The attacktrigger6 Event is created, but does not trigger the Script.
[11052]1681(WTF?) TODO: looks like a BUG
[9985]1682Thus a distanceTrigger is created, that gets enabled, when the inner trigger gets activated.
1683Due to the large radius it is likely that it actually gets triggered.
1684-->
[8872]1685
[11052]1686  <DistanceTrigger name="testDistanceTrigger" position="0,0,0" distance=10000 target="Pawn" stayActive="true" delay=37.0>
[9985]1687    <EventTrigger name="testEventTrigger" activations="1" stayactive="true" delay=0.1>
1688      <events>
1689        <trigger>
1690          <EventListener event="attacktrigger6" />
1691        </trigger>
1692      </events>
1693    </EventTrigger>
1694  </DistanceTrigger>
1695
1696    <Script code="Mission endMission true" onLoad="false">
1697        <events>
1698            <trigger>
1699                <EventListener event="testDistanceTrigger" />
1700            </trigger>
1701        </events>
1702    </Script>
1703
1704    <Script code="Mission endMission false" onLoad="false">
1705        <events>
1706            <trigger>
1707                <EventListener event="gameEnd" />
1708            </trigger>
1709        </events>
1710    </Script>
1711
1712
1713
1714
1715
1716
[8872]1717    <!--Script code="addBots 3" onLoad="false">
1718        <events>
1719            <trigger>
[8869]1720                <EventListener event=bonus6 />
1721            </trigger>
1722        </events>
1723    </Script>
1724
[8871]1725    <Script code="artificialcontroller setbotlevel 0.1" onLoad="false">
[8869]1726        <events>
1727            <trigger>
1728                <EventListener event=bonus6 />
1729            </trigger>
1730        </events>
[8872]1731    </Script-->
[8875]1732    <!-- Script code="artificialcontroller setbotlevel 0.1" /-->
[8773]1733  </Scene>
1734</Level>
[9016]1735
1736<!-- TODO:
1737- Story & more precise Questmessages; more quest hints; fail-quest;
1738- Colouring: Show who is friend or foe via the colour
1739- Waypoints: show the player the way
1740- Foolproof text messages (e.g. verspätete Nachrichten unterdrücken ~done )
[8880]1741- End Tutorial, if either the Hydrogen Farmer or the SpaceCruiser gets destroyed. (~done)
[8871]1742 -->
Note: See TracBrowser for help on using the repository browser.