Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/expeditionSector.oxw @ 11052

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

merged branch presentationHS15 back to trunk

  • Property svn:eol-style set to native
File size: 30.5 KB
Line 
1<LevelInfo
2    name = "Expedition to Sector 5C"
3    description = "Commander, our scientists are reporting strange binary radio signals from a yet unexplored and thought to be uninhabited region, sector 5C. Explore the sector and get to the bottom of these messages!"
4    tags = "mission"
5    screenshot = "expeditionSector.png"
6/>
7
8<?lua
9    include("stats.oxo")
10    include("HUDTemplates3.oxo")
11    include("templates/lodInformation.oxt")
12
13    include("templates/spaceshipAssff.oxt")
14    include("templates/spaceshipPirate.oxt")
15    include("templates/spaceshipEscort.oxt")
16    include("templates/spaceshipShuttle.oxt")
17    include("templates/FPS.oxt")
18    include("templates/pickupRepresentationTemplates.oxt")
19?>
20
21<Level gametype = "Mission">
22    <templates>
23        <Template link="lodtemplate_default" />
24    </templates>
25
26    <?lua include("includes/notifications.oxi") ?>
27
28    <NotificationQueueCEGUI
29        name="narrative"
30        targets="simpleNotification"
31        size=3
32        displayTime=3.9
33        position="0.15, 0, 0.1, 0"
34        fontSize="15"
35        fontColor="0.3, 1, 0.2, 0.8"
36        alignment="HorzCentred"
37        displaySize="0.7, 0, 0, 0"
38    />
39
40    <!-- GLOBAL LUA VARIABLES -->
41    <?lua
42
43        --[[ Coordinates in (y,z,x). NOTE: Indexing starts at 1 in lua! Don´t forget to adapt the for loops, too! ]]--
44        cCenter = {0, 0, 0}
45        cSpawn = {-50, 0, 0}
46        cSector = {-15000, -5500, -9000}
47        cSectorEntry = {-4710, -5500, -2826}
48        cPathToEntry = {{0, -2000, 0}}
49        cBeacon = {-6500, -5500, -4400}
50
51        radSector = 12000
52
53            cStationA = {1400, 400, -800}
54        cNewShip = {1000, 250, -350}
55
56        cPlanet1 = {20000, 0, 29000}
57        cPlanet2 = {-22000, 0, -29000}
58
59        cEnemyBasePlanet = {-20000, -5500, -8000}
60
61        cEnemyBaseStation1 = {-12500, -4500, -3500}
62
63              cField1 = {-5000, -4000, -3000}
64              cField2 = {4000, 2000, 4500}
65
66        --[[ Function to print Coordinates. Quotes not included! ]]--
67        function printC(coord)
68          print(coord[1] .. [[,]] .. coord[2] .. [[,]] .. coord[3])
69        end
70
71        --[[ Function to add Coordinates.]]--
72        function addC(coord1, coord2)
73            return {coord1[1]+coord2[1], coord1[2]+coord2[2], coord1[3]+coord2[3]}
74        end
75    ?>
76
77    <Scene
78        ambientlight = "0.8, 0.8, 0.8"
79        skybox = "Orxonox/skyBoxMoreNebula"
80        hasPhysics = true
81    >
82
83    <SpawnPoint name="playerSpawn" team=0 position="<?lua printC(cSpawn) ?>" lookat="<?lua printC(cCenter) ?>" spawnclass=SpaceShip pawndesign=spaceshipescort />
84
85    <WorldAmbientSound source="Earth.ogg" looping="true" playOnLoad="true" />
86
87    <Light type=directional position="<?lua printC(cCenter) ?>" 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"/>
88
89    <!--QUEST DEFINITIONS-->
90
91    <GlobalQuest id="quest1">
92        <QuestDescription title="Get the scout ship" description="We received some extraterrestial binary radio signals from Sector 5C! We'd like you to get to the outer base in sector 4A and get a scout ship to explore the sector!" failMessage="" completeMessage="" />
93        <hints>
94        </hints>
95        <complete-effects>
96            <AddQuest questId="quest2" />
97        </complete-effects>
98    </GlobalQuest>
99
100    <GlobalQuest id="quest2">
101        <QuestDescription title="Explore the sector" description="Now then, Commander, fly over there to check out if life can be found in what we believed it to be an inhabitated region in space. We have marked 5B with red lights so you can easily find it." failMessage="" completeMessage="" />
102        <hints>
103        </hints>
104        <subquests>
105            <GlobalQuest id="quest2.1">
106                <QuestDescription title="> Get to the Field Source" description="We percieve a large magnetic field source at a certain spot in the sector. You should check it out! We have marked it with a blue light." failMessage="" completeMessage="" />
107                <hints>
108                </hints>
109                <complete-effects>
110                    <AddQuest questId="quest2.2" />
111                </complete-effects>
112            </GlobalQuest>
113            <GlobalQuest id="quest2.2">
114                <QuestDescription title="> Fight your way out" description="Oh no... this cannot be happening! We discovered an alien race, and it does not seem to be interested in peace. In fact, they seem to be planning an attack! You must get out of the hot zone. Fight if necessary!" failMessage="" completeMessage="" />
115                <hints>
116                </hints>
117                <complete-effects>
118                    <AddQuest questId="quest3" />
119                </complete-effects>
120            </GlobalQuest>
121        </subquests>
122    </GlobalQuest>
123
124    <GlobalQuest id="quest3">
125        <QuestDescription title="Get back to 4A" description="You made it out in one piece. Now report to base 4A to warn the others!" failMessage="" completeMessage="" />
126        <hints>
127        </hints>
128    </GlobalQuest>
129
130    <!--EVENTS AND TRIGGERS
131        Usable events and triggers:
132        spawntrigger
133        dockA
134        reachedSector
135        reachedEnemyStation
136        fightEnd
137        backToA
138
139        BASE-STORY-LINE:
140        We receive a message from commander (SimpleNotification -> SpawnTrigger) about alien radio activity in a nearby sector and are asked to change our spaceship
141        QUEST1: Dock to Station and get better Spaceship
142        TRIGGER: Docked to Station
143        EVENT: Change Spaceship and Sector 5C becomes visilbe
144
145        We are asked to go to the sector and explore it
146        QUEST2.1: Go to Sector 5C and see what you can find there
147        TRIGGER: Distance Trigger at enemy spacestation, with a rather large radius
148        EVENT: The 25 Enemies and there SpaceStation become visible, the planet should stay invisible; the patroling enemies on your way back become visible as well.
149
150        On your way back you discover the patroling enemy spaceships, they attack you, but you must survive and report to your commander about an possible upcoming attack from the aliens
151        QUEST2.2: Destroy the patroling spaceships, spare no one
152        TRIGGER: -------- The patroling spaceships should triggered bythemselves?
153        EVENT: After destroying all 5 enemy ships, you can return to your base and safety, the Distancetrigger for next quest is activated
154        FAIL: You fail if you die here
155
156        After destroying the enemy ships, you make it bake to your station in time to report about the hord of enemies you saw and start preparing for the upcoming fight!
157        QUEST3: Go back to spacestation
158        TRIGGER: Distancetrigger i suppose?
159        EVENT: You win this level, and the main level is unlocked.
160    -->
161
162    <EventMultiTrigger name="spawntrigger">
163        <events>
164            <trigger>
165                <EventListener event="playerSpawn" />
166            </trigger>
167        </events>
168    </EventMultiTrigger>
169
170    <!-- HACK: just waited out 3sec for animation. Cannot link an event to the COMPLETION of a dock. How is this not possible?? -->
171    <EventMultiTrigger name="dockedA" activations="1" stayactive="true" delay=3>
172        <events>
173            <trigger>
174                <EventListener event="dockA" />
175            </trigger>
176        </events>
177    </EventMultiTrigger>
178
179    <DistanceTrigger name="reachedSector" position="<?lua printC(cSector) ?>" distance="<?lua print(radSector) ?>" target="SpaceShip" beaconMode="identify" targetname="newSpaceShip" stayactive=true />
180
181    <DistanceTrigger name="reachedEnemyStation" position="<?lua printC(cEnemyBaseStation1) ?>" distance="5000" target="SpaceShip" beaconMode="identify" targetname="newSpaceShip" stayactive=true />
182
183    <!-- Recursive helper function for the fightEnd event -->
184    <?lua
185    function enemyTriggerRecursor(i)
186    if i > 0 then
187    return [[
188    <EventTrigger name=killedEnemy]] .. i .. [[ activations=1 stayactive=true delay=0.1>
189        <events>
190            <trigger>
191                <EventListener event=enemy />
192            </trigger>
193        </events>
194        ]] .. enemyTriggerRecursor(i-1) .. [[
195    </EventTrigger>
196    ]]
197    else return ""
198    end
199    end
200    ?>
201    <!-- Actual Event for the enemies. -->
202    <?lua print(enemyTriggerRecursor(5)) ?>
203    <EventMultiTrigger name="fightEnd" delay=0.1 stayactive=true>
204        <events>
205            <trigger>
206                <EventListener event="killedEnemy5" />
207            </trigger>
208        </events>
209    </EventMultiTrigger>
210
211    <DistanceTrigger active=false name="closeToPatrol" position="<?lua printC(cStationA) ?>" distance="6000" target="SpaceShip" beaconMode="identify" targetname="newSpaceShip" stayactive=true >
212        <events>
213            <activity>
214                <EventListener event="reachedEnemyStation" />
215            </activity>
216        </events>
217    </DistanceTrigger>
218
219    <DistanceTrigger active=false name="backToA" position="<?lua printC(cStationA) ?>" distance="600" target="SpaceShip" beaconMode="identify" targetname="newSpaceShip" stayactive=true >
220        <events>
221            <activity>
222                <EventListener event="fightEnd" />
223            </activity>
224        </events>
225    </DistanceTrigger>
226
227    <Script code="Mission endMission true" onLoad="false">
228        <events>
229            <trigger>
230                <EventListener event="backToA" />
231            </trigger>
232        </events>
233    </Script>
234
235    <DistanceTrigger invert=true active=false name="hasDied" position="<?lua printC(cSector) ?>" distance="100000" target="SpaceShip" beaconMode="identify" targetname="newSpaceShip" stayactive=true >
236        <events>
237            <activity>
238                <EventListener event="reachedSector" />
239            </activity>
240        </events>
241    </DistanceTrigger>
242
243    <Script code="Mission endMission fail" onLoad="false">
244        <events>
245            <trigger>
246                <EventListener event="hasDied" />
247            </trigger>
248        </events>
249    </Script>
250
251    <!--QUEST EFFECT BEACONS -->
252
253    <QuestEffectBeacon times=1>
254        <effects>
255            <AddQuest questId="quest1" />
256        </effects>
257        <events>
258            <execute>
259                <EventListener event="spawntrigger" />
260            </execute>
261        </events>
262    </QuestEffectBeacon>
263
264    <QuestEffectBeacon times=1>
265        <effects>
266            <CompleteQuest questId="quest1" />
267        </effects>
268        <events>
269            <execute>
270                <EventListener event="dockedA" />
271            </execute>
272        </events>
273    </QuestEffectBeacon>
274
275    <QuestEffectBeacon times=1>
276        <effects>
277            <AddQuest questId="quest2.1" />
278        </effects>
279        <events>
280            <execute>
281                <EventListener event="reachedSector" />
282            </execute>
283        </events>
284    </QuestEffectBeacon>
285
286    <QuestEffectBeacon times=1>
287        <effects>
288            <CompleteQuest questId="quest2.1" />
289            <AddQuest questId="quest2.2" />
290        </effects>
291        <events>
292            <execute>
293                <EventListener event="reachedEnemyStation" />
294            </execute>
295        </events>
296    </QuestEffectBeacon>
297
298    <QuestEffectBeacon times=1>
299        <effects>
300            <CompleteQuest questId="quest2.2" />
301            <CompleteQuest questId="quest2" />
302        </effects>
303        <events>
304            <execute>
305                <EventListener event="fightEnd" />
306            </execute>
307        </events>
308    </QuestEffectBeacon>
309
310    <!--NOTIFICATIONS -->
311
312    <SimpleNotification broadcast="true" message="Welcome, Commander.">
313        <events>
314            <trigger>
315                <EventTrigger stayactive="true" delay=4 >
316                   <events>
317                      <trigger>
318                         <EventListener event="spawntrigger" />
319                      </trigger>
320                   </events>
321                </EventTrigger>
322            </trigger>
323        </events>
324    </SimpleNotification>
325
326    <SimpleNotification broadcast="true" message="We've picked up strange radio Signals from Sector 5B!">
327        <events>
328            <trigger>
329                <EventTrigger stayactive="true" delay=8 >
330                   <events>
331                      <trigger>
332                         <EventListener event="spawntrigger" />
333                      </trigger>
334                   </events>
335                </EventTrigger>
336            </trigger>
337        </events>
338    </SimpleNotification>
339
340    <SimpleNotification broadcast="true" message="Please dock to the outer base and get into the scout ship!">
341        <events>
342            <trigger>
343                <EventTrigger stayactive="true" delay=12 >
344                   <events>
345                      <trigger>
346                         <EventListener event="spawntrigger" />
347                      </trigger>
348                   </events>
349                </EventTrigger>
350            </trigger>
351        </events>
352    </SimpleNotification>
353
354    <SimpleNotification broadcast="true" message="We have marked the sector in red Lights. Enter it!">
355        <events>
356            <trigger>
357                <EventTrigger stayactive="true" delay=0 >
358                   <events>
359                      <trigger>
360                         <EventListener event="dockedA" />
361                      </trigger>
362                   </events>
363                </EventTrigger>
364            </trigger>
365        </events>
366    </SimpleNotification>
367
368    <SimpleNotification broadcast="true" message="Huh? Something's emanating a strong field... We marked it in blue.">
369        <events>
370            <trigger>
371                <EventTrigger stayactive="true" delay=0 >
372                   <events>
373                      <trigger>
374                         <EventListener event="reachedSector" />
375                      </trigger>
376                   </events>
377                </EventTrigger>
378            </trigger>
379        </events>
380    </SimpleNotification>
381
382    <SimpleNotification broadcast="true" message="Woah! What the hell? We made alien contact!">
383        <events>
384            <trigger>
385                <EventTrigger stayactive="true" delay=0 >
386                   <events>
387                      <trigger>
388                         <EventListener event="reachedEnemyStation" />
389                      </trigger>
390                   </events>
391                </EventTrigger>
392            </trigger>
393        </events>
394    </SimpleNotification>
395
396    <SimpleNotification broadcast="true" message="It looks like they are getting ready to attack someone...">
397        <events>
398            <trigger>
399                <EventTrigger stayactive="true" delay=4 >
400                   <events>
401                      <trigger>
402                         <EventListener event="reachedEnemyStation" />
403                      </trigger>
404                   </events>
405                </EventTrigger>
406            </trigger>
407        </events>
408    </SimpleNotification>
409
410    <SimpleNotification broadcast="true" message="It must be us! Commander, get back to the base and report!">
411        <events>
412            <trigger>
413                <EventTrigger stayactive="true" delay=8 >
414                   <events>
415                      <trigger>
416                         <EventListener event="reachedEnemyStation" />
417                      </trigger>
418                   </events>
419                </EventTrigger>
420            </trigger>
421        </events>
422    </SimpleNotification>
423
424    <SimpleNotification broadcast="true" message="Oh no! A patrol! When did it get here?!">
425        <events>
426            <trigger>
427                <EventTrigger stayactive="true" delay=0 >
428                   <events>
429                      <trigger>
430                         <EventListener event="closeToPatrol" />
431                      </trigger>
432                   </events>
433                </EventTrigger>
434            </trigger>
435        </events>
436    </SimpleNotification>
437
438    <SimpleNotification broadcast="true" message="Phew, that was close. Now get back here!">
439        <events>
440            <trigger>
441                <EventTrigger stayactive="true" delay=0 >
442                   <events>
443                      <trigger>
444                         <EventListener event="fightEnd" />
445                      </trigger>
446                   </events>
447                </EventTrigger>
448            </trigger>
449        </events>
450    </SimpleNotification>
451
452    <!--STATIONS -->
453
454    <Template name="station">
455        <Pawn mass=10000000 collisionType=dynamic friction=0.01>
456            <attached>
457                <Model mesh="HydroHarvester.mesh" position="0,0,0" scale=50 />
458                <DistanceTriggerBeacon name="NPC" />
459            </attached>
460            <collisionShapes>
461                <BoxCollisionShape  position="-560,0,0" halfExtents="115,100,245" /><!-- Three lower boxes -->
462                <BoxCollisionShape  position="290,0,-480" halfExtents="115,100,245" yaw=-120 />
463                <BoxCollisionShape  position="290,0,480" halfExtents="115,100,245" yaw=-240 />
464                <BoxCollisionShape  position="-280,0,0" halfExtents="163,50,50" /><!-- Three lower connections -->
465                <BoxCollisionShape  position="140,0,-240" halfExtents="163,50,50" yaw=-120 />
466                <BoxCollisionShape  position="140,0,240" halfExtents="163,50,50" yaw=-240 />
467                <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" /><!-- Upper Tower -->
468                <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-120 />
469                <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-240 />
470                <BoxCollisionShape  position="0,400,0" halfExtents="43,110,26" yaw=-30 /><!-- Middle one-->
471                <BoxCollisionShape  position="-200,100,0" halfExtents="26,50,43" /><!--Three lower legs -->
472                <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=-30 />
473                <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=30 />
474                <BoxCollisionShape  position="-100,264,0" halfExtents="26,105,43" roll=-49 /><!--Three upper legs -->
475                <BoxCollisionShape  position="50,264,-87" halfExtents="26,105,43" roll=-49 yaw=-120 />
476                <BoxCollisionShape  position="50,264,87" halfExtents="26,105,43" roll=-49 yaw=-240 />
477            </collisionShapes>
478        </Pawn>
479    </Template>
480
481    <Pawn name="statA" team=0 radarname="Outer Base - Sector 4B" position="<?lua printC(cStationA) ?>" direction="<?lua printC(cSpawn) ?>" yaw=45 pitch=-5 roll=-25 initialhealth=10000 maxhealth=10000 >
482        <templates>
483            <Template link="station" />
484        </templates>
485        <attached>
486            <DockingTarget name="dockTargetA" />
487            <Dock position="0,0,0" active=true>
488                <animations>
489                    <MoveToDockingTarget target="dockTargetA" />
490                </animations>
491                <effects>
492                    <DockToShip target="newSpaceShip" />
493                </effects>
494                <events>
495                    <execute>
496                        <EventListener event="dockA" />
497                    </execute>
498                </events>
499                <attached>
500                    <DistanceTrigger position="0,0,0" distance="200" target="SpaceShip" beaconMode="exclude" targetname="NPC" name="dockA" />
501                    <Billboard position="0,0,0" amplitude=1 material="Flares/lensflare" colour="1,0,0.05" />
502                </attached>
503            </Dock>
504        </attached>
505    </Pawn>
506
507    <!-- EnemyStation -->
508
509    <!-- Marking Billboard -->
510    <Billboard visible=false position="<?lua printC(cEnemyBaseStation1) ?>" amplitude=30 scale=2 material="Flares/lensflare" colour="0,0,1">
511        <events>
512           <visibility>
513              <EventListener event="reachedSector" />
514          </visibility>
515        </events>
516    </Billboard>
517
518
519    <Pawn name="statB" team=1 radarname="EnemyBase" position="<?lua printC(cEnemyBaseStation1) ?>" direction="<?lua printC(cSpawn) ?>" yaw=45 pitch=-5 roll=-25 initialhealth=10000 maxhealth=10000 >
520        <templates>
521            <Template link="station" />
522        </templates>
523        <events>
524            <visibility>
525                <EventListener event="reachedEnemyStation" />
526            </visibility>
527            <activity>
528                <EventListener event="reachedEnemyStation" />
529            </activity>
530        </events>
531    </Pawn>
532
533    <!-- New SpaceShip as destination of dock A-->
534    <SpaceShip
535            template            = "spaceshipassff"
536            team                = "0"
537            position            = "<?lua printC(cNewShip) ?>"
538            lookat              = "<?lua printC(cSector) ?>"
539            health              = "1500"
540            initialhealth       = "1500"
541            maxhealth           = "1500"
542            shieldhealth        = "80"
543            initialshieldhealth = "80"
544            maxshieldhealth     = "120"
545            shieldabsorption    = "0.8"
546            reloadrate          = "1"
547            reloadwaittime      = "1"
548            name                = "newSpaceShip"
549            radarname           = "ScoutShip" >
550        <attached>
551            <DockingTarget name="newSpaceShip" />
552            <DistanceTriggerBeacon name="newSpaceShip" />
553        </attached>
554    </SpaceShip>
555
556    <!--ELEMENTS -->
557
558    <?lua
559    for i = 1, 64, 1
560    do
561    rBillboard = {math.sin(i*math.pi/32)*radSector, 0, math.cos(i*math.pi/32)*radSector}
562    cBillNow = addC(cSector,rBillboard)
563    ?>
564    <Billboard position="<?lua printC(cBillNow) ?>"  scale=10 material="Flares/lensflare" colour="1,0.2,0.2" visible=false>
565        <events>
566            <visibility>
567                <EventListener event="dockedA" />
568            </visibility>
569        </events>
570    </Billboard>
571    <?lua end ?>
572
573    <!-- Asteroids you have to fly through to get to the EnemyBase -->
574
575    <?lua
576        dofile("includes/asteroidField.lua")
577       asteroidField(cField1[1], cField1[2], cField1[3], 20, 30, 4500, 500, 0)
578    ?>
579
580    <!-- Other Asteroid-Fields -->
581
582    <?lua
583        dofile("includes/asteroidField.lua")
584       asteroidField(cField2[1], cField2[2], cField2[3], 20, 30, 4500, 500, 0)
585    ?>
586
587    <!-- Planets -->
588
589   <Planet
590        position="<?lua printC(cPlanet1) ?>"
591        scale="3000"
592        collisionType="dynamic"
593        linearDamping="0.8"
594        angularDamping="0"
595        mass="5000000"
596        pitch="0"
597        mesh="planets/muunilinst.mesh"
598        atmosphere="atmosphere1"
599        rotationaxis="1,0,0"
600        rotationrate="1.0"
601        atmospheresize="80.0f"
602        imagesize="1024.0f"
603        collisiondamage=2
604        enablecollisiondamage=true
605              visible=true
606              active=ture
607      >
608      <attached>
609        <ForceField position="0,0,0" mode="sphere" diameter="6000" velocity="-500" />
610        </attached>
611          <collisionShapes>
612            <SphereCollisionShape radius="3000" position="0,0,0" />
613      </collisionShapes>
614    </Planet>
615
616    <?lua
617        dofile("includes/asteroidField.lua")
618        asteroidBelt(cPlanet1[1], cPlanet1[2], cPlanet1[3], 30, 20, 100, 20, 40, 3400, 3700, 400, 1)
619    ?>
620
621    <Planet
622        position="<?lua printC(cPlanet2) ?>"
623        scale="2000"
624        collisionType="dynamic"
625        linearDamping="0.8"
626        angularDamping="0"
627        mass="5000000"
628        pitch="0"
629        mesh="planets/ganymede.mesh"
630        atmosphere="atmosphere1"
631        rotationaxis="1,0,0"
632        rotationrate="1.0"
633        atmospheresize="80.0f"
634        imagesize="1024.0f"
635        collisiondamage=2
636        enablecollisiondamage=true
637              visible=true
638              active=true
639      >
640      <attached>
641        <ForceField position="0,0,0" mode="sphere" diameter="4000" velocity="-500" />
642        </attached>
643          <collisionShapes>
644            <SphereCollisionShape radius="2000" position="0,0,0" />
645      </collisionShapes>
646    </Planet>
647
648    <?lua
649        dofile("includes/asteroidField.lua")
650        asteroidBelt(cPlanet2[1], cPlanet2[2], cPlanet2[3], 30, 20, 100, 20, 40, 3400, 3700, 400, 1)
651    ?>
652
653    <!-- EnemyPlanet(s) -->
654
655    <Planet
656        position="<?lua printC(cEnemyBasePlanet) ?>"
657        scale="5000"
658        collisionType="dynamic"
659        linearDamping="0.8"
660        angularDamping="0"
661        mass="5000000"
662        pitch="0"
663        mesh="planets/jupiter.mesh"
664        atmosphere="atmosphere1"
665        rotationaxis="1,0,0"
666        rotationrate="1.0"
667        atmospheresize="80.0f"
668        imagesize="1024.0f"
669        collisiondamage=2
670        enablecollisiondamage=true
671              visible=false
672              active=false
673      >
674      <attached>
675        <ForceField position="0,0,0" mode="sphere" diameter="10000" velocity="-500" />
676        </attached>
677          <collisionShapes>
678            <SphereCollisionShape radius="5000" position="0,0,0" />
679      </collisionShapes>
680    </Planet>
681
682    <?lua
683      xi = 5
684      zi = 5
685      for k = 1, xi, 1
686      do
687    ?>
688    <?lua
689      for j = 1, zi, 1
690      do
691      x = -2500+k*100
692      z = -4400+j*100
693    ?>
694    <SpaceShip visible=false active=false name="enemyStalled" radarname="Attacker" position="-11000,<?lua print(z)?>,<?lua print(x)?>" lookat="0,0,0" team=1>
695        <templates>
696            <Template link="spaceshippirate" />
697        </templates>
698        <events>
699            <visibility>
700                <EventListener event="reachedEnemyStation" />
701            </visibility>
702        </events>
703    </SpaceShip>
704    <?lua end ?>
705    <?lua end ?>
706
707    <SpaceShip visible=false active=false name="enemy" radarname="Guard" position="-2700,-800,-800" lookat="0,0,0" team=1>
708      <templates>
709        <Template link=spaceshippirate />
710      </templates>
711      <events>
712          <visibility>
713              <EventListener event="reachedEnemyStation" />
714          </visibility>
715          <activity>
716              <EventListener event="reachedEnemyStation" />
717          </activity>
718      </events>
719      <controller>
720        <WaypointPatrolController active=false accuracy=40 alertnessradius=2000 team=1>
721            <events>
722                <activity>
723                    <EventListener event="reachedEnemyStation" />
724                </activity>
725            </events>
726          <waypoints>
727            <StaticEntity position="-3400,-1200,-200" />
728            <StaticEntity position="-1600,-1000,-200" />
729            <StaticEntity position="-1700,-1400,-940" />
730            <StaticEntity position="-2100,-1200,-1250" />
731            <StaticEntity position="-2700,-800,-800" />
732          </waypoints>
733        </WaypointPatrolController>
734      </controller>
735    </SpaceShip>
736
737    <SpaceShip visible=false active=false name="enemy" radarname="Guard" position="-3400,-1200,-200" lookat="0,0,0" team=1>
738        <events>
739            <visibility>
740                <EventListener event="reachedEnemyStation" />
741            </visibility>
742            <activity>
743                <EventListener event="reachedEnemyStation" />
744            </activity>
745        </events>
746      <templates>
747        <Template link=spaceshippirate />
748      </templates>
749      <controller>
750        <WaypointPatrolController active=false accuracy=40 alertnessradius=2000 team=1>
751            <events>
752                <activity>
753                    <EventListener event="reachedEnemyStation" />
754                </activity>
755            </events>
756          <waypoints>
757            <StaticEntity position="-1600,-1000,-200" />
758            <StaticEntity position="-1700,-1400,-940" />
759            <StaticEntity position="-2100,-1200,-1250" />
760            <StaticEntity position="-2700,-800,-800" />
761            <StaticEntity position="-3400,-1200,-200" />
762          </waypoints>
763        </WaypointPatrolController>
764      </controller>
765    </SpaceShip>
766
767    <SpaceShip visible=false active=false name="enemy" radarname="Guard" position="-1600,-1000,-200" lookat="0,0,0" team=1>
768        <events>
769            <visibility>
770                <EventListener event="reachedEnemyStation" />
771            </visibility>
772            <activity>
773                <EventListener event="reachedEnemyStation" />
774            </activity>
775        </events>
776      <templates>
777        <Template link=spaceshippirate />
778      </templates>
779      <controller>
780        <WaypointPatrolController active=false accuracy=40 alertnessradius=2000 team=1>
781            <events>
782                <activity>
783                    <EventListener event="reachedEnemyStation" />
784                </activity>
785            </events>
786          <waypoints>
787            <StaticEntity position="-1700,-1400,-940" />
788            <StaticEntity position="-2100,-1200,-1250" />
789            <StaticEntity position="-2700,-800,-800" />
790            <StaticEntity position="-3400,-1200,-200" />
791            <StaticEntity position="-1600,-1000,-200" />
792          </waypoints>
793        </WaypointPatrolController>
794      </controller>
795    </SpaceShip>
796
797    <SpaceShip visible=false active=false name="enemy" radarname="Guard" position="-1700,-1400,-940" lookat="0,0,0" team=1>
798        <events>
799            <visibility>
800                <EventListener event="reachedEnemyStation" />
801            </visibility>
802            <activity>
803                <EventListener event="reachedEnemyStation" />
804            </activity>
805        </events>
806      <templates>
807        <Template link=spaceshippirate />
808      </templates>
809      <controller>
810        <WaypointPatrolController active=false accuracy=40 alertnessradius=2000 team=1>
811            <events>
812                <activity>
813                    <EventListener event="reachedEnemyStation" />
814                </activity>
815            </events>
816          <waypoints>
817            <StaticEntity position="-2100,-1200,-1250" />
818            <StaticEntity position="-2700,-800,-800" />
819            <StaticEntity position="-3400,-1200,-200" />
820            <StaticEntity position="-1600,-1000,-200" />
821            <StaticEntity position="-1700,-1400,-940" />
822          </waypoints>
823        </WaypointPatrolController>
824      </controller>
825    </SpaceShip>
826
827    <SpaceShip visible=false active=false name="enemy" radarname="Guard" position="-2100,-1200,-1250" lookat="0,0,0" team=1>
828        <events>
829            <visibility>
830                <EventListener event="reachedEnemyStation" />
831            </visibility>
832            <activity>
833                <EventListener event="reachedEnemyStation" />
834            </activity>
835        </events>
836      <templates>
837        <Template link=spaceshippirate />
838      </templates>
839      <controller>
840        <WaypointPatrolController active=false accuracy=40 alertnessradius=2000 team=1>
841            <events>
842                <activity>
843                    <EventListener event="reachedEnemyStation" />
844                </activity>
845            </events>
846          <waypoints>
847            <StaticEntity position="-2700,-800,-800" />
848            <StaticEntity position="-3400,-1200,-200" />
849            <StaticEntity position="-1600,-1000,-200" />
850            <StaticEntity position="-1700,-1400,-940" />
851            <StaticEntity position="-2100,-1200,-1250" />
852          </waypoints>
853        </WaypointPatrolController>
854      </controller>
855    </SpaceShip>
856
857    </Scene>
858</Level>
Note: See TracBrowser for help on using the repository browser.