Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

bug with the drone fixed.

File size: 22.5 KB
Line 
1<!--Spacefight-->
2
3<!--
4To Do:
5Naechster Quest bei Erreichen des roten Lichtes...
6-->
7<LevelInfo
8 name = "Spacefight"
9 description = "Level with the big Spacefight"
10 tags = "mission"
11 screenshot = "emptylevel.png"
12/>
13
14<?lua
15  include("stats.oxo")
16  include("HUDTemplates3.oxo")
17  include("templates/lodInformation.oxt")
18?>
19
20<?lua
21  include("templates/spaceshipAssff2.oxt")
22  include("templates/spaceshipPirate.oxt")
23  include("templates/spaceshipEscort.oxt")
24  include("templates/spaceshipSwallow.oxt")
25  include("templates/pickupRepresentationTemplates.oxt")
26  include("templates/spaceshipCollateralDamage.oxt")
27?>
28<?lua
29    dofile("includes/CuboidSpaceStation.lua")
30?>
31
32<Level
33  gametype = "Mission"
34>
35  <templates>
36    <Template link=lodtemplate_default />
37  </templates>
38
39  <?lua include("includes/notifications.oxi") ?>
40
41
42  <NotificationQueueCEGUI
43    name="narrative"
44    targets="simpleNotification"
45    size=3
46    displayTime=3.9
47    position="0.2, 0, 0.1, 0"
48    fontSize="23"
49    fontColor="0.3, 1, 0.2, 0.8"
50    alignment="HorzCentred"
51    displaySize="0.6, 0, 0, 0"
52    />
53
54<Scene
55    ambientlight = "0.8, 0.8, 0.8"
56    skybox       = "Orxonox/Starbox"
57  >
58  <?lua include("includes/pickups.oxi") ?>
59
60 <Script code="showGUI NotificationLayer false true" needsGraphics="true" />
61
62<!-- QUESTS & SPAWNTRIGGER -->
63
64<!-- Spawntrigger -->
65        <EventMultiTrigger name=spawntrigger>
66          <events>
67            <trigger>
68              <SpawnPoint team=0 position="0,0,0" lookat="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipcollateraldamage >
69                <EventTrigger invert=true>
70                  <events>
71                    <trigger>
72                      <EventListener event="spacefight.flying2" />
73                    </trigger>
74                  </events>
75                </EventTrigger>
76              </SpawnPoint>
77            </trigger>
78          </events>
79        </EventMultiTrigger>
80
81        <!-- Drone pickup -->
82        <PickupSpawner pickup=dronepickup position="9750, -5350, 5650" triggerDistance="20" respawnTime="30" maxSpawnedItems="2" />
83
84<!-- QUEST DESCRIPTION-->
85        <LocalQuest id="spacefight.flying1">
86                <QuestDescription
87                        title="To the first guard!"
88                        description="Reach the station ahead."
89                        completeMessage="Well done!" />
90                <complete-effects>
91                        <AddQuest questId="spacefight.guard1" />
92                </complete-effects>
93        </LocalQuest>
94       
95        <LocalQuest id="spacefight.guard1">
96                <QuestDescription
97                        title="Eliminate the first guard!"
98                        description="You've reached the enemys Station and they haven't seen you yet.
99
100                                Ahead you see the first little patrol.
101                                There are two little battleships and also two unarmed ships.
102                                The unarmed could not attack you. So first destroy the battleships!"
103                        failMessage="You've lost all your ships!"
104                        completeMessage="Well done!" />
105                <complete-effects>
106                        <AddQuest questId="spacefight.upgrade1" />
107                        <AddQuest questId="spacefight.flying2" />
108                </complete-effects>
109        </LocalQuest>
110
111        <LocalQuest id="spacefight.upgrade1">
112                <QuestDescription
113                        title="Prepare for the fight (optional)"
114                        description="Your friends has an arsenal left behind near by your position.
115                                perhaps you find something useful there...
116                                Hint: look for a big asteroid."
117                        failMessage="You've lost all your ships!"
118                        completeMessage="Your ship is prepared best for the second and last guard on the way to the mainship.
119                                Now attack the second guard!" />
120        </LocalQuest>
121
122        <LocalQuest id="spacefight.flying2">
123                <QuestDescription
124                        title="To the second guard!"
125                        description="There is another sentry on the way to the big mainship.
126                                unfortunately, we also have to destroy this one."
127                        failMessage="You've lost all your ships!"
128                        completeMessage="" />
129                <complete-effects>
130                        <AddQuest questId="spacefight.guard2" />
131                </complete-effects>
132        </LocalQuest>
133
134        <LocalQuest id="spacefight.guard2">
135                <QuestDescription
136                        title="The second guard!"
137                        description="Destroy also this guard!"
138                        failMessage="You've lost all your ships!"
139                        completeMessage="" />
140                <complete-effects>
141                        <AddQuest questId="spacefight.escape" />
142                </complete-effects>
143        </LocalQuest>
144
145        <LocalQuest id="spacefight.escape">
146                <QuestDescription
147                        title="Catch the messenger!"
148                        description="A messenger is on the way to warn the troups of the mainship.
149                                Destroy him before he is near by the mainship.
150                                Else the fight against the enemys troups will be much more difficult."
151                        failMessage="The messenger has reached the mainship.
152                                Prepare to fight against a strong enmey!"
153                        completeMessage="Well done! Now the element of surprise will be ours!" />
154                <complete-effects>
155                        <AddQuest questId="spacefight.flying3" />
156                </complete-effects>
157        </LocalQuest>
158
159        <LocalQuest id="spacefight.flying3" >
160                <QuestDescription
161                        title="Prepared for the big fight?"
162                        description=""
163                        failMessage="You've lost all your ships!"
164                        completeMessage="" />
165        </LocalQuest>
166
167        <LocalQuest id="spacefight.mainfight" >
168                <QuestDescription
169                        title="The big fight!"
170                        description="Now the time is come!
171                                You've done all you can to prepare you for this spacebattle.
172                                Let us see, if it was enough.
173                               
174                                ATTACK!!!"
175                        failMessage="You've lost all your ships!"
176                        completeMessage="YEEEHAAA!
177                                You managed it! For that you will get the golden medal of the united space armies." />
178        </LocalQuest>
179
180        <LocalQuest id="spacefight.rescue" >
181                <QuestDescription
182                        title="Rescue and place the bomb"
183                        description="Now you have to free the commander and place the bomb."
184                        failMessage="You've lost all your ships!"
185                        completeMessage="" />
186        </LocalQuest>
187
188        <LocalQuest id="spacefight.moveAway" >
189                <QuestDescription
190                        title="Get away!"
191                        description="Get away of the mainship before the bomb detonates."
192                        failMessage="You've lost all your ships!"
193                        completeMessage="Done!" />
194        </LocalQuest>
195
196       
197<!-- ---------------------------------------------------------------------- -->
198
199<!-- QuestEffectBeacon's -->
200
201        <!-- START -->
202        <QuestEffectBeacon times=0>
203                <effects>
204                        <AddQuest questId="spacefight.flying1" />
205                </effects>
206                <events>
207                        <execute>
208                                <EventListener event=spawntrigger2 />
209                        </execute>
210                </events>
211        </QuestEffectBeacon>
212
213        <!-- Guard 1 -->
214        <QuestEffectBeacon times=0>
215                <effects>
216                        <CompleteQuest questId="spacefight.flying1" />
217                </effects>
218                <events>
219                        <execute>
220                                <EventListener event="flying1" />
221                        </execute>             
222                </events>
223        </QuestEffectBeacon>
224
225        <QuestEffectBeacon times=0>
226                <events>
227                        <execute>
228                                <EventListener event="flying2" /> <!-- eigentlich "guard1trigger4", aber funkt. nicht! -->
229                        </execute>
230                </events>
231                <effects>
232                        <CompleteQuest questId="spacefight.guard1" />
233                </effects>
234                <attached>
235                        <BlinkingBillboard position="13500, 2500, 10500" color="1,1,0" frequency=0.6 amplitude=10 material="Examples/Flare" />
236                </attached>
237        </QuestEffectBeacon>
238
239        <!-- Drone (optional) -->
240        <QuestEffectBeacon times=0>
241                <effects>
242                        <CompleteQuest questId="spacefight.upgrade1" />
243                </effects>
244                <events>
245                        <execute>
246                                <EventListener event="drone" />
247                        </execute>
248                </events>
249        </QuestEffectBeacon>
250       
251        <!-- Guard 2 -->
252        <QuestEffectBeacon times=0>
253                <effects>
254                        <CompleteQuest questId="spacefight.flying2" />
255                </effects>
256                <events>
257                        <execute>
258                                <EventListener event="flying2" />
259                        </execute>             
260                </events>
261        </QuestEffectBeacon>
262
263        <QuestEffectBeacon times=0>
264                <effects>
265                        <CompleteQuest questId="spacefight.guard2" />
266                        <CompleteQuest questId="spacefight.upgrade1" />
267                </effects>
268                <events>
269                        <execute>
270                                <EventListener event="flying3" /> <!-- eigentlich "guard2trigger4", aber funkt. nicht! -->
271                        </execute>             
272                </events>
273        </QuestEffectBeacon>
274
275        <!-- Escape -->
276
277<!-- ---------------------------------------------------------------------- -->
278        <!-- Second Spawntrigger -->
279        <DistanceTrigger name=spawntrigger2 position="0,0,0" target="SpaceShip" distance=10 stayActive="true" delay=0 />
280
281        <!--Helper-Trigger for first guard -->
282        <DistanceTrigger name="flying1" position="4000,0,0" target="SpaceShip" distance=2000 stayActive="true" delay=0 />
283
284        <!-- Helper-Trigger for second guard -->
285        <DistanceTrigger name="flying2" position="13500, 2500, 10500" target="SpaceShip" distance=7000 stayActive="true" delay=0 />
286        <SimpleNotification message="search the drone!?"  broadcast="true">
287                <events>
288                        <trigger>
289                                <EventListener event="flying2" />
290                        </trigger>
291                </events>
292        </SimpleNotification>
293       
294        <!-- Helper-Trigger for mainship -->
295        <DistanceTrigger name="flying3" position="11000, 3000, 21000" target="SpaceShip" distance=1000 stayActive="true" delay=0 />
296        <SimpleNotification message="Hauptschiff in Sicht!"  broadcast="true">
297                <events>
298                        <trigger>
299                                <EventListener event="flying3" />
300                        </trigger>
301                </events>
302        </SimpleNotification>
303
304        <!-- Helper-Trigger for the drone(s) -->
305        <DistanceTrigger name="drone1" position="9750, -5350, 5650" target="SpaceShip" distance=20 stayActive="true" delay=0 />
306        <SimpleNotification message="Now your are prepared best!"  broadcast="true">
307                <events>
308                        <trigger>
309                                <EventListener event="drone1" />
310                        </trigger>
311                </events>
312        </SimpleNotification>
313
314        <!-- <DistanceTrigger name="drone2" position="9750, -5350, 5650" target="SpaceShip" distance=20 stay Active="true" delay=0 /> -->
315        <SimpleNotification message="Now your are prepared best!"  broadcast="true">
316                <events>
317                        <trigger>
318                                <EventListener event="drone2" />
319                        </trigger>
320                </events>
321        </SimpleNotification>
322
323<!-- ----------------------------------------------------- -->
324
325<!-- EVENTTRIGGER -->
326   
327    <!-- for guard 1 -->
328    <SimpleNotification message="first"  broadcast="true">
329        <events>
330            <trigger>
331                <EventListener event="guard1trigger1" />
332            </trigger>
333        </events>
334    </SimpleNotification>
335
336    <SimpleNotification message="second"  broadcast="true">
337        <events>
338            <trigger>
339                <EventListener event="guard1trigger2" />
340            </trigger>
341        </events>
342    </SimpleNotification>
343
344    <SimpleNotification message="thirth"  broadcast="true">
345        <events>
346            <trigger>
347                <EventListener event="guard1trigger3" />
348            </trigger>
349        </events>
350    </SimpleNotification>
351
352    <SimpleNotification message="all shot! Fly to the blinking light"  broadcast="true">
353        <events>
354            <trigger>
355                <EventListener event="guard1trigger4" />
356            </trigger>
357        </events>
358    </SimpleNotification>
359
360<!-- @Triggers: attacktriggerX <-> X enemies destroyed , X is an element of [1,4] -->
361    <EventTrigger name="guard1trigger4" activations="1" stayactive="true" delay=0.1>
362      <events>
363        <trigger>
364          <EventListener event="firstPatrol" />
365        </trigger>
366      </events>
367      <EventTrigger name="guard1trigger3" activations="1" stayactive="true" delay=0.1>
368        <events>
369          <trigger>
370            <EventListener event="firstPatrol" />
371          </trigger>
372        </events>
373        <EventTrigger name="guard1trigger2" activations="1" stayactive="true" delay=0.1>
374          <events>
375            <trigger>
376              <EventListener event="firstPatrol" />
377            </trigger>
378          </events>
379          <EventTrigger name="guard1trigger1" activations="1" stayactive="true" delay=0.1>
380            <events>
381              <trigger>
382                <EventListener event="firstPatrol" />
383              </trigger>
384            </events>
385          </EventTrigger>
386        </EventTrigger>
387      </EventTrigger>
388    </EventTrigger>
389
390<!-- for guard 2 -->
391
392    <SimpleNotification message="first"  broadcast="true">
393        <events>
394            <trigger>
395                <EventListener event="guard2trigger1" />
396            </trigger>
397        </events>
398    </SimpleNotification>
399
400    <SimpleNotification message="second"  broadcast="true">
401        <events>
402            <trigger>
403                <EventListener event="guard2trigger2" />
404            </trigger>
405        </events>
406    </SimpleNotification>
407
408    <SimpleNotification message="thirth"  broadcast="true">
409        <events>
410            <trigger>
411                <EventListener event="guard2trigger3" />
412            </trigger>
413        </events>
414    </SimpleNotification>
415
416    <SimpleNotification message="all shot! Fly to the blinking light"  broadcast="true">
417        <events>
418            <trigger>
419                <EventListener event="guard2trigger4" />
420            </trigger>
421        </events>
422    </SimpleNotification>
423
424<!-- @Triggers: attacktriggerX <-> X enemies destroyed , X is an element of [1,4] -->
425    <EventTrigger name="guard2trigger4" activations="1" stayactive="true" delay=0.1>
426      <events>
427        <trigger>
428          <EventListener event="secondPatrol" />
429        </trigger>
430      </events>
431      <EventTrigger name="guard2trigger3" activations="1" stayactive="true" delay=0.1>
432        <events>
433          <trigger>
434            <EventListener event="secondPatrol" />
435          </trigger>
436        </events>
437        <EventTrigger name="guard2trigger2" activations="1" stayactive="true" delay=0.1>
438          <events>
439            <trigger>
440              <EventListener event="secondPatrol" />
441            </trigger>
442          </events>
443          <EventTrigger name="guard2trigger1" activations="1" stayactive="true" delay=0.1>
444            <events>
445              <trigger>
446                <EventListener event="secondPatrol" />
447              </trigger>
448            </events>
449          </EventTrigger>
450        </EventTrigger>
451      </EventTrigger>
452    </EventTrigger>
453
454<!-- ----------------------------------------------------- -->
455
456<!-- Passive Piraten: Guard 1 -->
457
458<SpaceShip position="8000,1000,0" lookat="-1,0,0" name="firstPatrol" radarname="Patrol">
459  <events>
460    <visibility>
461      <EventListener event=spawntrigger2 />
462    </visibility>
463  </events>
464  <templates>
465    <Template link=spaceshippirate />
466  </templates>
467  <controller>
468    <WaypointController team=1>
469      <waypoints>
470        <Model mesh="cube.mesh" scale=0 position="8000,-1000,0" />
471        <Model mesh="cube.mesh" scale=0 position="8000,1000,0" />
472      </waypoints>
473    </WaypointController>
474  </controller>
475</SpaceShip>
476
477<SpaceShip position="8000,0,0" lookat="-1,0,0" name="firstPatrol" radarname="Patrol">
478  <events>
479    <visibility>
480      <EventListener event=spawntrigger2 />
481    </visibility>
482  </events>
483  <templates>
484    <Template link=spaceshippirate />
485  </templates>
486  <controller>
487    <WaypointController team=1>
488      <waypoints>
489        <Model mesh="cube.mesh" scale=0 position="8000,0,-1000" />
490        <Model mesh="cube.mesh" scale=0 position="8000,0,1000" />
491      </waypoints>
492    </WaypointController>
493  </controller>
494</SpaceShip>
495
496
497<!-- Angreiffende Piraten: Guard 1 -->
498
499<SpaceShip position="8000,-1000,1000" lookat="8000,1000,-1000" name="firstPatrol" visible="true" radarname="Patrol" >
500  <events>
501    <visibility>
502      <EventListener event=spawntrigger2 />
503    </visibility>
504  </events>
505  <templates>
506    <Template link=spaceshippirate />
507  </templates>
508  <controller>
509    <WaypointPatrolController alertnessradius=2000 team=1 active=false>
510      <waypoints>
511        <Model mesh="cube.mesh" scale=0 position="8000,1000,-1000" />
512        <Model mesh="cube.mesh" scale=0 position="8000,-1000,1000" />
513      </waypoints>
514      <events>
515        <activity>
516          <EventListener event=spawntrigger2 />
517        </activity>
518      </events>
519    </WaypointPatrolController>
520  </controller>
521</SpaceShip>
522
523<SpaceShip position="8000,-500,-500" lookat="8000,1000,1000" name="firstPatrol" visible="true" radarname="Patrol">
524  <events>
525    <visibility>
526      <EventListener event=spawntrigger2 />
527    </visibility>
528  </events>
529  <templates>
530    <Template link=spaceshippirate />
531  </templates>
532  <controller>
533    <WaypointPatrolController alertnessradius=2000 team=1 active=false>
534      <waypoints>
535        <Model mesh="cube.mesh" scale=0 position="8000,1000,1000" />
536        <Model mesh="cube.mesh" scale=0 position="8000,-1000,-1000" />
537      </waypoints>
538      <events>
539        <activity>
540          <EventListener event=spawntrigger2 />
541        </activity>
542      </events>
543    </WaypointPatrolController>
544  </controller>
545</SpaceShip>
546
547<!-- Angreiffende Piraten: Guard 2 -->
548<SpaceShip position="19000,5000,21000" lookat="19000,4900,21000" name="secondPatrol" visible="true" radarname="Patrol">
549  <events>
550    <visibility>
551      <EventListener event="guard1trigger4" />
552    </visibility>
553  </events>
554  <templates>
555    <Template link=spaceshippirate />
556  </templates>
557  <controller>
558    <WaypointPatrolController alertnessradius=2000 team=1 active=false>
559      <waypoints>
560        <Model mesh="cube.mesh" scale=0 position="18700,4300,21000" />
561        <Model mesh="cube.mesh" scale=0 position="18000,4000,21000" />
562        <Model mesh="cube.mesh" scale=0 position="17300,4300,21000" />
563        <Model mesh="cube.mesh" scale=0 position="17000,5000,21000" />
564        <Model mesh="cube.mesh" scale=0 position="17300,5700,21000" />
565        <Model mesh="cube.mesh" scale=0 position="18000,6000,21000" />
566        <Model mesh="cube.mesh" scale=0 position="18700,5700,21000" />
567        <Model mesh="cube.mesh" scale=0 position="19000,5000,21000" />
568      </waypoints>
569      <events>
570        <activity>
571          <EventListener event="guard1trigger4" />
572        </activity>
573      </events>
574    </WaypointPatrolController>
575  </controller>
576</SpaceShip>
577
578<SpaceShip position="17000,5000,21000" lookat="17000,5100,21000" name="secondPatrol" visible="true" radarname="Patrol">
579  <events>
580    <visibility>
581      <EventListener event="guard1trigger4" />
582    </visibility>
583  </events>
584  <templates>
585    <Template link=spaceshippirate />
586  </templates>
587  <controller>
588    <WaypointPatrolController alertnessradius=2000 team=1 active=false>
589      <waypoints>
590        <Model mesh="cube.mesh" scale=0 position="17300,5700,21000" />
591        <Model mesh="cube.mesh" scale=0 position="18000,6000,21000" />
592        <Model mesh="cube.mesh" scale=0 position="18700,5700,21000" />
593        <Model mesh="cube.mesh" scale=0 position="19000,5000,21000" />
594        <Model mesh="cube.mesh" scale=0 position="18700,4300,21000" />
595        <Model mesh="cube.mesh" scale=0 position="18000,4000,21000" />
596        <Model mesh="cube.mesh" scale=0 position="17300,4300,21000" />
597        <Model mesh="cube.mesh" scale=0 position="17000,5000,21000" />
598      </waypoints>
599      <events>
600        <activity>
601          <EventListener event="guard1trigger4" />
602        </activity>
603      </events>
604    </WaypointPatrolController>
605  </controller>
606</SpaceShip>
607
608<SpaceShip position="18000,4000,21000" lookat="17000,4000,21000" name="secondPatrol" visible="true" radarname="Patrol">
609  <events>
610    <visibility>
611      <EventListener event="guard1trigger4" />
612    </visibility>
613  </events>
614  <templates>
615    <Template link=spaceshippirate />
616  </templates>
617  <controller>
618    <WaypointPatrolController alertnessradius=2000 team=1 active=false>
619      <waypoints>
620        <Model mesh="cube.mesh" scale=0 position="17300,4300,21000" />
621        <Model mesh="cube.mesh" scale=0 position="17000,5000,21000" />
622        <Model mesh="cube.mesh" scale=0 position="17300,5700,21000" />
623        <Model mesh="cube.mesh" scale=0 position="18000,6000,21000" />
624        <Model mesh="cube.mesh" scale=0 position="18700,5700,21000" />
625        <Model mesh="cube.mesh" scale=0 position="19000,5000,21000" />
626        <Model mesh="cube.mesh" scale=0 position="18700,4300,21000" />
627        <Model mesh="cube.mesh" scale=0 position="18000,4000,21000" />
628      </waypoints>
629      <events>
630        <activity>
631          <EventListener event="guard1trigger4" />
632        </activity>
633      </events>
634    </WaypointPatrolController>
635  </controller>
636</SpaceShip>
637
638<SpaceShip position="18000,6000,21000" lookat="19000,6000,21000" name="secondPatrol" visible="true" radarname="Patrol">
639  <events>
640    <visibility>
641      <EventListener event="guard1trigger4" />
642    </visibility>
643  </events>
644  <templates>
645    <Template link=spaceshippirate />
646  </templates>
647  <controller>
648    <WaypointPatrolController alertnessradius=2000 team=1 active=false>
649      <waypoints>
650        <Model mesh="cube.mesh" scale=0 position="18700,5700,21000" />
651        <Model mesh="cube.mesh" scale=0 position="19000,5000,21000" />
652        <Model mesh="cube.mesh" scale=0 position="18700,4300,21000" />
653        <Model mesh="cube.mesh" scale=0 position="18000,4000,21000" />
654        <Model mesh="cube.mesh" scale=0 position="17300,4300,21000" />
655        <Model mesh="cube.mesh" scale=0 position="17000,5000,21000" />
656        <Model mesh="cube.mesh" scale=0 position="17300,5700,21000" />
657        <Model mesh="cube.mesh" scale=0 position="18000,6000,21000" />
658      </waypoints>
659      <events>
660        <activity>
661          <EventListener event="guard1trigger4" />
662        </activity>
663      </events>
664    </WaypointPatrolController>
665  </controller>
666</SpaceShip>
667
668
669<!-- ----------------------------------------------------- -->
670
671    <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"/>
672
673    <SpawnPoint team=0 position="0,0,0" lookat="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipswallow />
674   
675<!-- ASTEROIDS & ASTEROID-FIELDS -->
676
677<!-- Asteroids -->
678
679      <Model position="9800, -5000, 5700" yaw="90" pitch="-90" roll="0" scale="300" mesh="asteroid_ice.mesh" />
680
681<!-- triple large belt around the planet  -->
682        <?lua
683                dofile("includes/asteroidField.lua")
684                asteroidBelt(2000, -250, 9000, 30, 0, 30, 30, 50, 7190, 7800, 250, 1)
685        ?>
686
687        <?lua
688                dofile("includes/asteroidField.lua")
689                asteroidBelt(2000, -250, 9000, 30, 0, 30, 30, 50, 10000, 11000, 300, 1)
690        ?>
691
692        <?lua
693                dofile("includes/asteroidField.lua")
694                asteroidBelt(2000, -250, 9000, 30, 0, 30, 30, 50, 14000, 15000, 350, 1)
695        ?>
696
697<!-- other asteroid fileds -->
698
699        <!-- left before guard 1 -->   
700        <?lua
701                dofile("includes/asteroidField.lua")
702                asteroidField(-5000, -5000, -20000, 20, 50, 10000, 200, 0)
703        ?>
704
705        <!-- left behind guard 1 -->
706        <?lua
707                dofile("includes/asteroidField.lua")
708                asteroidField(20000, -10000, -12000, 30, 100, 10000, 200, 0)
709        ?>
710
711        <!-- between guard 2 & mainship -->
712        <!-- Core -->   
713        <?lua
714                dofile("includes/asteroidField.lua")
715                asteroidField(-5000, -10000, 30000, 10, 700, 8000, 80, 0)
716        ?>
717       
718        <!-- Peripherie -->
719        <?lua
720                dofile("includes/asteroidField.lua")
721                asteroidField(-5000, -10000, 30000, 10, 50, 10000, 100, 0)
722        ?>
723
724        <?lua
725                dofile("includes/asteroidField.lua")
726                asteroidBelt(-10000, -12500, 0, 0, 0, 30, 30, 500, 0, 7850, 150, 0)
727        ?>
728
729<!-- PLANETS -->
730
731  <Planet       position="2000,-250,9000"
732                scale=5000
733                pitch=1
734                mesh="iceplanet.mesh"
735                atmosphere="atmosphere1"
736                rotationaxis="1,1,0"
737                rotationrate="0.5"
738                atmospheresize=224.0f
739                imagesize=1024.0f />
740
741
742<!-- ----------------Rotating SpaceStation--------------- -->
743
744<StaticEntity position="9000,0,0" yaw=112 pitch=67>
745  <attached>
746    <?lua
747      createSpaceStationPar(0,2,1,2,1,4,1,50)
748    ?>
749  </attached>
750</StaticEntity>
751
752<StaticEntity position="18000,5000,21000" yaw=12 pitch=75>
753  <attached>
754    <?lua
755      createSpaceStationPar(0,2,1,2,1,4,1,50)
756    ?>
757  </attached>
758</StaticEntity>
759
760<!-- ------------------------- Mainship ------------------ -->
761
762<StaticEntity position="-12000, -22000, 25000" yaw=112 pitch=67>
763        <attached>
764                <?lua
765                        createSpaceStationPar(0,2,1,2,1,4,1,50)
766                ?>
767        </attached>
768</StaticEntity>
769
770
771  </Scene>
772</Level>
773
Note: See TracBrowser for help on using the repository browser.