Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/levelElias/data/levels/EscapeTheBastards.oxw @ 9815

Last change on this file since 9815 was 9815, checked in by lumperte, 11 years ago

End of Mission finished.

File size: 38.4 KB
Line 
1<!-- -->
2
3<!--Basic----------------------------------------------------------------------------------------------------------------------------------------------------------------------->
4                                                        <!--Basic Infos-->
5
6<LevelInfo
7 name = "Escape the bastards"
8 description = "You destroyed their Base, you accomplished the mission. Now get out of there, and get rid of the haunters"
9 tags = "mission"
10 screenshot = "emptylevel.png"
11/>
12
13<?lua
14  include("stats.oxo")
15  include("HUDTemplates3.oxo")
16  include("templates/lodInformation.oxt")
17?>
18
19<?lua
20  include("templates/pickupRepresentationTemplates.oxt")
21  include("templates/spaceshipAssff.oxt")
22  include("templates/spaceshipPirate.oxt")
23  include("templates/spaceshipEscort.oxt")
24  include("templates/spaceshipCollateralDamage.oxt")
25?>
26
27  <NotificationQueueCEGUI
28    name="narrative"
29    targets="simpleNotification"
30    size=3
31    displayTime=4
32    position="0.2, 0, 0.1, 0"
33    fontSize="23"
34    fontColor="0, 0.5, 1, 0.9"
35    alignment="HorzCentred"
36    displaySize="0.6, 0, 0, 0"
37    />
38
39<Level
40  name = "Escape the bastards"
41  description = "You destroyed their Base, you accomplished the mission. Now get out of there, and get rid of the haunters"
42  gametype=Mission
43>
44  <templates>
45    <Template link=lodtemplate_default />
46  </templates>
47  <?lua include("includes/notifications.oxi") ?>
48
49  <Scene
50    ambientlight = "0.8, 0.8, 0.8"
51    skybox       = "Orxonox/skyBoxMoreNebula"
52  >
53
54    <?lua
55      include("includes/pickups.oxi")
56    ?>
57
58    <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"/>
59
60       
61
62    <!-- SpawnPoint team=0 position="-1000,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff / -->
63
64<!-- Pickups -->
65
66    <PickupSpawner pickup=dronepickup position="-5000,300,-209" triggerDistance="10" respawnTime="30" maxSpawnedItems="10" />
67    <PickupSpawner pickup=hugespeedpickup position="-800,0,0" triggerDistance="10" respawnTime="10" maxSpawnedItems="99" />
68
69<!--
70    <PickupSpawner pickup=crazyhealthpickup position="2200,1000,-600" triggerDistance="10" respawnTime="10" maxSpawnedItems="99" active=false>
71                       <events>
72                         <activity>
73                              <EventListener event="reachedally" />
74                         </activity>
75                       </events>
76        </PickupSpawner>
77    <PickupSpawner pickup=hugespeedpickup position="2200,1000,-600" triggerDistance="10" respawnTime="10" maxSpawnedItems="99" active=false>
78                       <events>
79                         <activity>
80                              <EventListener event="reachedally" />
81                         </activity>
82                       </events>
83        </PickupSpawner>
84-->
85
86<!-- Pickups heal the box, so one cant destroy the box -->
87
88<!-- Pickups END -->
89                                                        <!--Basic Infos end-->
90
91<!--Story----------------------------------------------------------------------------------------------------------------------------------------------------------------------->
92
93
94<!--Quests (Fly to the Ally)-->
95    <EventMultiTrigger name=spawntrigger>
96        <events>
97            <trigger>
98
99                <TeamSpawnPoint team=0 position="-42600,-30000,33800" direction="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipcollateraldamage>
100<!-- Spawnpoint aendern zu -8050,0,0 nachher direction="1,0.3,0.2"-->
101<!-- Spawnpoint aendern zu 3000,12000,-5500 nachher direction="0.3,1.2,-5.5" Fuer homeplanet-->
102<!-- Spawnpoint aendern zu -46950,-30000,30000 nachher direction="1,0,0" Fuer inBox-->
103                  <EventTrigger invert=true>
104                    <events>
105                      <trigger>
106                        <EventListener event="missionfinish" />
107                      </trigger>
108                    </events>
109                  </EventTrigger>
110                </TeamSpawnPoint>
111            </trigger>
112        </events>
113    </EventMultiTrigger>
114
115        <QuestEffectBeacon times=1>
116            <effects>
117                <AddQuest questId="Helpisontheway.1" />
118            </effects>
119            <events>
120                <execute>
121                    <EventListener event=spawntrigger />
122                </execute>
123            </events>
124        </QuestEffectBeacon>
125
126        <QuestEffectBeacon times=1>
127            <effects>
128                <CompleteQuest questId="Helpisontheway.1" />
129            </effects>
130            <events>
131                <execute>
132                    <EventListener event="missionfinish" />
133                </execute>
134            </events>
135        </QuestEffectBeacon>
136
137
138        <QuestEffectBeacon times=1 >
139            <effects>
140                <CompleteQuest questId="defend.2" />
141            </effects>
142            <events>
143                <execute>
144                    <EventListener event="Boxdestroyed" />
145                </execute>
146            </events>
147        </QuestEffectBeacon>
148
149        <QuestEffectBeacon times=1 >
150            <effects>
151                <CompleteQuest questId="leave.3" />
152            </effects>
153            <events>
154                <execute>
155                    <EventListener event="reachedhomeplanet" />
156                </execute>
157            </events>
158        </QuestEffectBeacon>
159
160        <QuestEffectBeacon times=1 >
161            <effects>
162                <CompleteQuest questId="wayhome.4" />
163            </effects>
164            <events>
165                <execute>
166                    <EventListener event="reachedend" />
167                </execute>
168            </events>
169        </QuestEffectBeacon>
170
171                        <!-- END OF GAME -->
172    <SimpleNotification message="Well done, you've finished">
173        <events>
174            <trigger>
175                <EventListener event=reachedend />
176            </trigger>
177        </events>
178    </SimpleNotification>
179
180
181    <Script code="Mission endMission true" onLoad="false">
182        <events>
183            <trigger>
184                <EventListener event="reachedend" />
185            </trigger>
186        </events>
187    </Script>
188                        <!-- END OF GAME END -->
189
190
191        <DistanceTrigger name="missionfinish" position="-120,0,0" target="Pawn" distance=60 stayActive="true" delay=1>
192    </DistanceTrigger>
193        <DistanceTrigger name="reachedally" position="-120,0,0" target="Pawn" distance=60 stayActive="true" delay=2>
194    </DistanceTrigger>
195        <DistanceTrigger name="reachedhomeplanet" position="-3000,12000,-6990" target="Pawn" distance=60 stayActive="true" delay=2>
196    </DistanceTrigger>
197        <DistanceTrigger name="reachedend" position="-41000,-30000,33800" target="Pawn" distance=60 stayActive="true" delay=2>
198    </DistanceTrigger>
199
200          <EventTrigger name="boxtrigger" activations="1" stayactive="true" delay=0.1>
201            <events>
202              <trigger>
203                <EventListener event="box" />
204              </trigger>
205            </events>
206          </EventTrigger>
207
208
209<!-- Billboard Allyplanet -->
210
211<BlinkingBillboard position="-120,0,0" frequency=0.4 amplitude=3 material="Flares/lensflare" colour="1,1,0.05">
212          <events>
213            <visibility>
214              <EventTrigger invert=true>
215                <events>
216                  <trigger>
217                    <EventListener event="missionfinish" />
218                  </trigger>
219                </events>
220              </EventTrigger>
221            </visibility>
222          </events>
223</BlinkingBillboard>
224
225<Billboard position="-120,0,0" amplitude=1 material="Flares/lensflare" colour="0,0.8,0.1">
226          <events>
227            <visibility>
228              <EventTrigger>
229                <events>
230                  <trigger>
231                    <EventListener event="missionfinish" />
232                  </trigger>
233                </events>
234              </EventTrigger>
235            </visibility>
236          </events>
237</Billboard>
238
239<!-- Billboard Allyplanet END-->
240
241
242<!-- Box with Pickups -->
243    <Pawn team=1 health=30 position="0,0,-900" direction="0,-1,0" collisionType=dynamic mass=100000 name=box radarname = "Something" >
244        <events>
245          <visibility>
246            <EventListener event="target3" />
247          </visibility>
248        </events>
249        <attached>
250            <Model position="0,0,0" mesh="crate.mesh" scale3D="5,5,5" />
251        </attached>
252        <collisionShapes>
253            <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
254        </collisionShapes>
255        <controller>
256                      <WaypointController team=1>
257                    </WaypointController>
258        </controller>
259    </Pawn>
260
261<Billboard position="0,0,-900" amplitude=1 material="Flares/lensflare" colour="0,0.8,0.1">
262          <events>
263            <visibility>
264              <EventTrigger>
265                <events>
266                  <trigger>
267                    <EventListener event="boxtrigger" />
268                  </trigger>
269                </events>
270              </EventTrigger>
271            </visibility>
272          </events>
273</Billboard>
274<!-- Box with Pickups END -->
275
276<!-- Billboard Homeplanet -->
277
278<!-- evt Blinking light before landing on planet, Entfernen nach architektur-->
279<BlinkingBillboard position="-3000,12000,-6990" frequency=0.4 amplitude=3 material="Flares/lensflare" colour="1,1,0.05">
280          <events>
281            <visibility>
282              <EventTrigger invert=true>
283                <events>
284                  <trigger>
285                    <EventListener event="target3"/> <!-- reachedhomeplanet-->
286                  </trigger>
287                </events>
288              </EventTrigger>
289            </visibility>
290          </events>
291</BlinkingBillboard>
292
293
294<BlinkingBillboard position="-3000,12000,-6990" frequency=0.4 amplitude=3 material="Flares/lensflare" colour="1,1,0.05">
295          <events>
296            <visibility>
297              <EventTrigger>
298                <events>
299                  <trigger>
300                    <EventListener event="boxtrigger" />
301                  </trigger>
302                </events>
303              </EventTrigger>
304            </visibility>
305          </events>
306</BlinkingBillboard>
307
308<!-- Billboard Homeplanet END-->
309
310
311<!--Quests (Fly to the Ally) END-->
312
313<!--Quests (Fight Enemies)-->
314
315
316 <SpaceShip position="1000,0,0" lookat="0,0,1" name="attacker" radarname="Fighter1" visible="true">
317                            <events>
318                                <visibility>
319                                    <EventListener event="missionfinish" />
320                                </visibility>
321                            </events>
322
323                    <templates>
324                      <Template link=spaceshippirate />
325                    </templates>
326                    <controller>
327                      <WaypointPatrolController alertnessradius=750  team=1 active=false>
328                         <waypoints>
329                        <Model mesh="cube.mesh" scale=0 position="1000,0,0"/>
330                        <Model mesh="cube.mesh" scale=0 position="500,500,0"/>
331                        <Model mesh="cube.mesh" scale=0 position="0,1000,0"/>
332                        <Model mesh="cube.mesh" scale=0 position="-500,500,0"/>
333                        <Model mesh="cube.mesh" scale=0 position="-1000,0,0"/>
334                        <Model mesh="cube.mesh" scale=0 position="-500,-500,0"/>
335                        <Model mesh="cube.mesh" scale=0 position="0,-1000,0"/>
336                        <Model mesh="cube.mesh" scale=0 position="500,-500,0"/>
337                       </waypoints>
338                       <events>
339                         <activity>
340                              <EventListener event="reachedally" />
341                         </activity>
342                       </events>
343                    </WaypointPatrolController>
344                  </controller>
345                </SpaceShip>
346
347 <SpaceShip position="0,1000,0" lookat="1,0,0" name="attacker" radarname="Fighter2" visible="true">
348                            <events>
349                                <visibility>
350                                    <EventListener event="missionfinish" />
351                                </visibility>
352                            </events>
353                    <templates>
354                      <Template link=spaceshippirate />
355                    </templates>
356                    <controller>
357                      <WaypointPatrolController alertnessradius=750  team=1 active=false>
358                         <waypoints>
359                        <Model mesh="cube.mesh" scale=0 position="0,1000,0"/>
360                        <Model mesh="cube.mesh" scale=0 position="0,500,500"/>
361                        <Model mesh="cube.mesh" scale=0 position="0,0,1000"/>
362                        <Model mesh="cube.mesh" scale=0 position="0,-500,500"/>
363                        <Model mesh="cube.mesh" scale=0 position="0,-1000,0"/>
364                        <Model mesh="cube.mesh" scale=0 position="0,-500,-500"/>
365                        <Model mesh="cube.mesh" scale=0 position="0,0,-1000"/>
366                        <Model mesh="cube.mesh" scale=0 position="0,500,-500"/>
367                       </waypoints>
368                       <events>
369                         <activity>
370                              <EventListener event="reachedally" />
371                         </activity>
372                       </events>
373                    </WaypointPatrolController>
374                  </controller>
375                </SpaceShip>
376
377 <SpaceShip position="0,0,1000" lookat="0,1,0" name="attacker" radarname="Fighter3" visible="true">
378                            <events>
379                                <visibility>
380                                    <EventListener event="missionfinish" />
381                                </visibility>
382                            </events>
383                    <templates>
384                      <Template link=spaceshippirate />
385                    </templates>
386                    <controller>
387                      <WaypointPatrolController alertnessradius=750  team=1 active=false>
388                         <waypoints>
389                        <Model mesh="cube.mesh" scale=0 position="1000,0,0"/>
390                        <Model mesh="cube.mesh" scale=0 position="500,0,500"/>
391                        <Model mesh="cube.mesh" scale=0 position="0,0,1000"/>
392                        <Model mesh="cube.mesh" scale=0 position="-500,0,500"/>
393                        <Model mesh="cube.mesh" scale=0 position="-1000,0,0"/>
394                        <Model mesh="cube.mesh" scale=0 position="-500,0,-500"/>
395                        <Model mesh="cube.mesh" scale=0 position="0,0,-1000"/>
396                        <Model mesh="cube.mesh" scale=0 position="500,0,-500"/>
397                       </waypoints>
398                       <events>
399                         <activity>
400                              <EventListener event="reachedally" />
401                         </activity>
402                       </events>
403                    </WaypointPatrolController>
404                  </controller>
405                </SpaceShip>
406
407<!-- @Triggers: Attakers, Fight one by one  -->
408
409        <EventTrigger name="target3" activations="1" stayactive="true" delay=0.1>
410         <events>
411           <trigger>
412                  <EventListener event="attacker" />
413          </trigger>
414         </events>
415        <EventTrigger name="target2" activations="1" stayactive="true" delay=0.1>
416          <events>
417             <trigger>
418                <EventListener event="attacker" />
419             </trigger>
420          </events>
421        <EventTrigger name="target1" activations="1" stayactive="true" delay=0.1>
422          <events>
423             <trigger>
424                <EventListener event="attacker" />
425             </trigger>
426          </events>
427        </EventTrigger>
428        </EventTrigger>
429        </EventTrigger>
430
431
432    <SimpleNotification message="Wow, That's an explosion."  broadcast="true">
433        <events>
434            <trigger>
435                <EventListener event="target1" />
436            </trigger>
437        </events>
438    </SimpleNotification>
439
440    <SimpleNotification message="Booom, you got him!"  broadcast="true">
441        <events>
442            <trigger>
443                <EventListener event="target2" />
444            </trigger>
445        </events>
446    </SimpleNotification>
447
448
449    <SimpleNotification message="No Mercy!! .. What's that?"  broadcast="true">
450        <events>
451            <trigger>
452                <EventListener event="target3" />
453            </trigger>
454        </events>
455    </SimpleNotification>
456
457
458
459
460<!-- @Triggers: Attakers, Fight one by one END  -->
461
462
463<!--Quests (Fight Enemies) END-->
464
465
466<!-- LocalQuests -->
467    <LocalQuest id="Helpisontheway.1">
468        <QuestDescription title="Help is on the way" description="An allied pilot is cast away on a planet behind you. Fight the enemies and get him out of there.
469
470                He will blink with his lamp
471
472                PS: Remind the gravitation field"
473
474 
475        failmessage="Well, you sucked" completeMessage="Well done, You're a hero" />
476        <complete-effects>
477            <AddQuest questId="defend.2" />
478        </complete-effects>
479    </LocalQuest>
480
481
482    <LocalQuest id="defend.2">
483        <QuestDescription title="Defend the Planet" description="You've picked up you're mate. He's wounded and you have to reach your base as fast as you can. Defend this place,      and try to get him home. Perhaps you can find something usefull around here.
484
485        Try to stay on the planet. It's easier to fight!"
486        failmessage="Well, you sucked" completeMessage="Well done, You're a hero" />
487        <complete-effects>
488            <AddQuest questId="leave.3" />
489        </complete-effects>
490    </LocalQuest>
491
492
493
494    <LocalQuest id="leave.3">
495        <QuestDescription title="Leave the Place" description="You've blown their minds. Let's go home. Follow the Big blue planet to reach your home." failmessage="" completeMessage="" />
496        <complete-effects>
497            <AddQuest questId="wayhome.4" />
498        </complete-effects>
499    </LocalQuest>
500
501    <LocalQuest id="wayhome.4">
502        <QuestDescription title="Let's go home" description="You've reached your planet. The radar is broke. You have to find the Base, cause you arent able to see from the air" failmessage="" completeMessage="" />
503        <complete-effects>
504            <AddQuest questId="end.5" />
505        </complete-effects>
506    </LocalQuest>
507
508<!-- LocalQuests END -->
509
510<!-- Message Triggers -->
511    <DistanceTrigger name="StartofMission" position="-8050,0,0" target="Pawn" distance=10 stayActive="true" delay=2/>
512    <SimpleNotification message="Hi, I'm the Commander.">
513        <events>
514            <trigger>
515                <EventListener event="StartofMission" />
516            </trigger>
517        </events>
518    </SimpleNotification>
519
520    <DistanceTrigger name="Introduction1" position="-8050,0,0" target="Pawn" distance=30 stayActive="true" delay=6.4/>
521    <SimpleNotification message="An allied pilot had to make a forced landing">
522        <events>
523            <trigger>
524                <EventListener event="Introduction1" />
525            </trigger>
526        </events>
527    </SimpleNotification>
528
529    <DistanceTrigger name="Introduction2" position="-8050,0,0" target="Pawn" distance=30 stayActive="true" delay=10.8/>
530    <SimpleNotification message="He needs your help. Get him out of there">
531        <events>
532            <trigger>
533                <EventListener event="Introduction2" />
534            </trigger>
535        </events>
536    </SimpleNotification>
537
538    <DistanceTrigger name="PickedUpAlly" position="-120,0,0" target="Pawn" distance=30 stayActive="true" delay=0.1/>
539    <SimpleNotification message="Hi .... are you an enemy?">
540        <events>
541            <trigger>
542                <EventListener event="PickedUpAlly" />
543            </trigger>
544        </events>
545    </SimpleNotification>
546
547    <DistanceTrigger name="PickedUpAlly2" position="-120,0,0" target="Pawn" distance=30 stayActive="true" delay=4.4/>
548    <SimpleNotification message="Shoot the enemies staying on the planet">
549        <events>
550            <trigger>
551                <EventListener event="PickedUpAlly2" />
552            </trigger>
553        </events>
554    </SimpleNotification>
555
556
557    <SimpleNotification message="Pickups! Pick them up ;-)"  broadcast="true">
558        <events>
559            <trigger>
560                <EventListener event="boxtrigger" />
561            </trigger>
562        </events>
563    </SimpleNotification>
564
565    <DistanceTrigger name="Boxdestroyed" position="2200,1000,-600" target="SpaceShip" distance=30 stayActive="true" delay=0.1 />
566    <SimpleNotification message="Now aim the blue planet">
567        <events>
568            <trigger>
569                <EventListener event="Boxdestroyed" />
570            </trigger>
571        </events>
572    </SimpleNotification>
573
574    <DistanceTrigger name="Boxdestroyed2" position="2200,1000,-600" target="SpaceShip" distance=30 stayActive="true" delay=4.4 />
575    <SimpleNotification message="Land near the blinking light!">
576        <events>
577            <trigger>
578                <EventListener event="Boxdestroyed2" />
579            </trigger>
580        </events>
581    </SimpleNotification>
582
583    <SimpleNotification message="You're almost there">
584        <events>
585            <trigger>
586                <EventListener event="reachedhomeplanet" />
587            </trigger>
588        </events>
589    </SimpleNotification>
590
591
592<!-- Message Triggers END -->
593
594<!--Quests____END-->
595
596
597
598<!--Enviroment-------------------------------------------------------------------------------------------------------------------------------------------------------------------->
599
600                                                        <!--Asteroids Field-->
601
602        <?lua for i=0,750,1 do
603                x=math.random(-8000,-1000)
604                y=math.random(-2345,2345)
605                z=math.random(-2500,2500)
606        scale=math.random(20,70)
607        ?>
608        <MovableEntity collisionType=kinematic linearDamping=0.8 angularDamping=0 mass="<?lua print(scale * 5) ?>" position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" rotationaxis="<?lua print(math.random()) ?>,<?lua print(math.random()) ?>,<?lua print(math.random()) ?>" rotationrate="<?lua print(math.random()*15) ?>"       collisiondamage = 0.01
609      enablecollisiondamage = true >
610        <attached>
611                <Model scale="<?lua print(scale) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false/>
612         </attached>
613         <collisionShapes>
614                <SphereCollisionShape radius="<?lua print(scale * 3) ?>" />
615        </collisionShapes>
616        </MovableEntity>
617        <?lua end ?>
618
619                                                        <!--Asteroids Field end -->
620
621
622                                                        <!--Asteroids Random
623
624                                "The game lags, when you're flying far away"
625
626
627        <?lua for i=0,300,1 do
628                x=math.random(-12000,4000)
629                y=math.random(-8000,8000)
630                z=math.random(-8000,8000)
631        ?>
632        <MovableEntity collisionType=kinematic linearDamping=0.8 angularDamping=0 mass="<?lua print(scale * 5) ?>" position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" rotationaxis="<?lua print(math.random()) ?>,<?lua print(math.random()) ?>,<?lua print(math.random()) ?>" rotationrate="<?lua print(math.random()*15) ?>"      collisiondamage = 0.01
633      enablecollisiondamage = true  >
634        <attached>
635                <Model scale="<?lua print(math.random(20,70)) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false/>
636        </attached>
637        <collisionShapes>
638            <SphereCollisionShape radius="<?lua print(scale * 3) ?>" />
639        </collisionShapes>
640        </MovableEntity>
641        <?lua end ?>
642-->
643                                                        <!--Asteroids  Random end-->
644
645                                                        <!--Asteroid Elipse-->
646<!-- LAAAGS :-(
647
648                                "The game lags, when you're flying far away"           
649
650    <?lua
651        dofile("includes/asteroidField.lua")
652        asteroidBelt(-3000,12000,-10000, 30, 0, 30, 30, 50, 7190, 7800, 250, 1)
653    ?>
654
655    <?lua
656        dofile("includes/asteroidField.lua")
657        asteroidBelt(-3000,12000,-10000, 30, 0, 30, 30, 50, 14000, 15000, 350, 1)
658    ?>
659-->
660
661
662    <?lua
663    max = 20
664    for i = 0, max, 1
665    do
666    y = math.sin(i/max*6)*2000
667    z = math.cos(i/max*6)*2500
668    x = 0
669    ?>
670    <?lua
671    for k = 1, 15, 1
672    do
673    j = math.random()
674    ?>
675
676    <MovableEntity
677      position = "<?lua print(x + math.random() * 500) ?>,<?lua print(y + math.random() * 500) ?>,<?lua print(z + math.random() * 1000) ?>"
678      collisionType = "dynamic"
679      linearDamping = "0.5"
680      angularDamping = "0.01"
681      collisiondamage = "0.01"
682      enablecollisiondamage = "true"
683      scale="<?lua print(j * 5) ?>" >
684      <attached>
685        <Model position="0,0,0" scale="<?lua print(j * 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh">
686      <?lua if k == 5 then ?><attached>                 <!--asteroid fog-->
687            <ParticleEmitter position="0,0,0" source="Orxonox/Steam" />
688          </attached> <?lua end ?>
689        </Model>
690      </attached>
691      <collisionShapes>
692        <SphereCollisionShape radius="<?lua print(j * 80) ?>" />
693      </collisionShapes>
694    </MovableEntity>
695    <?lua
696    end
697    ?>
698    <?lua end ?>
699                                                        <!--Asteroid Elipse end-->
700
701                                                        <!--Planet sun-->
702    <Planet position="15000,0,0" scale=1500 pitch=-90 mesh="planets/sol.mesh" atmosphere="atmosphere1" rotationaxis="8,1,0" rotationrate="1" atmospheresize=0 imagesize=1024.0f />
703    <StaticEntity position="2600,0,0" collisionType=static>
704        <collisionShapes>
705            <SphereCollisionShape radius="399" />
706        </collisionShapes>
707    </StaticEntity>
708    <Billboard position="15100,0,0" material="Flares/backlightflare" colour="0.7,0.4,0.1" scale=600 />
709                                                        <!--Planet END-->
710
711                                                        <!--Planet with Ally-->
712    <Planet
713      position="0,0,0"
714      scale="100"
715      collisionType="dynamic"
716      linearDamping="0.8"
717      angularDamping="0"
718      mass="5000000"
719      pitch="0"
720      mesh="planets/muunilinst.mesh"
721      atmosphere="atmosphere1"
722      rotationaxis="1,0,0"
723      rotationrate="1.0"
724      atmospheresize="80.0f"
725      imagesize="1024.0f"
726    >
727      <attached>
728        <ForceField position="0,0,0" mode="sphere" diameter="1000" velocity="-500" />
729      </attached>
730      <collisionShapes>
731        <SphereCollisionShape radius="100" position="0,0,0" />
732      </collisionShapes>
733    </Planet>
734                                                        <!-- Planet with Ally END-->
735
736
737                                                        <!-- Homeplanet -->
738    <Planet
739      position="-3000,12000,-10000"
740      scale="3000"
741      collisionType="dynamic"
742      linearDamping="0.8"
743      angularDamping="0"
744      mass="5000000000000"
745      pitch="0"
746      mesh="iceplanet.mesh"
747      atmosphere="atmosphere1"
748      rotationaxis="0,0,0"
749      rotationrate="0.0"
750      atmospheresize="80.0f"
751      imagesize="1024.0f"
752    >
753      <attached>
754        <ForceField position="0,0,0" mode="sphere" diameter="10000" velocity="-900" />
755      </attached>
756      <collisionShapes>
757        <SphereCollisionShape radius="3000" position="0,0,0" />
758      </collisionShapes>
759    </Planet>
760                                                        <!-- Homeplanet  END-->
761
762                                                        <!-- Anotherplanet -->
763    <Planet
764      position="-20000,6000,7000"
765      scale="3000"
766      collisionType="dynamic"
767      linearDamping="0.8"
768      angularDamping="0"
769      mass="5000000000000"
770      pitch="0"
771      mesh="planets/ganymede.mesh"
772      atmosphere="atmosphere1"
773      rotationaxis="0,0,0"
774      rotationrate="0.0"
775      atmospheresize="80.0f"
776      imagesize="1024.0f"
777    >
778      <collisionShapes>
779        <SphereCollisionShape radius="3000" position="0,0,0" />
780      </collisionShapes>
781    </Planet>
782<!-- LAAAGS :-(
783
784                                "The game lags, when you're flying far away"
785
786    <?lua
787        dofile("includes/asteroidField.lua")
788        asteroidBelt(-20000,6000,7000, 30, 0, 30, 30, 50, 7190, 7800, 250, 1)
789    ?>
790-->
791                                                        <!-- Anotherplanet  END-->
792
793                                                        <!-- Homeplanet Architecture-->
794<!-- -3000,12000,-6990  = Billboard position-->
795
796     <!--       <Model  position="-3070,12070,-6990" yaw="90" pitch="-90" roll="0" scale="70" mesh="asteroid_ice.mesh" >
797      <collisionShapes>
798        <SphereCollisionShape radius="70" position="0,0,0" />
799      </collisionShapes>
800        </Model>
801-->
802
803        <MovableEntity collisionType=kinematic linearDamping=0.8 angularDamping=0 mass="500"  pitch="90" roll="86" yaw="12" position="-2900,12080,-6990" rotationaxis="0,0,0" rotationrate="0"       collisiondamage = 0.01  enablecollisiondamage = true >
804        <attached>
805                <Model scale="70" mesh="asteroid_ice.mesh"  shadow=false/>
806         </attached>
807         <collisionShapes>
808                <SphereCollisionShape radius="70" />
809        </collisionShapes>
810        </MovableEntity>
811
812        <MovableEntity collisionType=kinematic linearDamping=0.8 angularDamping=5 mass="500"   pitch="30" roll="11" yaw="51" position="-3200,11950,-6990" rotationaxis="0,0,0" rotationrate="0"       collisiondamage = 0.01  enablecollisiondamage = true >
813        <attached>
814                <Model scale="90" mesh="asteroid_ice.mesh"  shadow=false/>
815         </attached>
816         <collisionShapes>
817                <SphereCollisionShape radius="90" />
818        </collisionShapes>
819        </MovableEntity>
820
821        <MovableEntity collisionType=kinematic linearDamping=0.8 angularDamping=5 mass="500"  pitch="0" roll="12" yaw="81"  position="-2800,12150,-6990" rotationaxis="0,0,0" rotationrate="0"       collisiondamage = 0.01  enablecollisiondamage = true >
822        <attached>
823                <Model scale="90" mesh="asteroid_ice.mesh"  shadow=false/>
824         </attached>
825         <collisionShapes>
826                <SphereCollisionShape radius="90" />
827        </collisionShapes>
828        </MovableEntity>
829
830        <MovableEntity collisionType=kinematic linearDamping=0.8 angularDamping=5 mass="500"  pitch="0" roll="0" yaw="0" position="-3300,11800,-6990" rotationaxis="0,0,0" rotationrate="0"       collisiondamage = 0.01  enablecollisiondamage = true >
831        <attached>
832                <Model scale="155" mesh="asteroid_ice.mesh"  shadow=false/>
833         </attached>
834         <collisionShapes>
835                <SphereCollisionShape radius="155" />
836        </collisionShapes>
837        </MovableEntity>
838
839
840        <MovableEntity collisionType=kinematic linearDamping=0.8 angularDamping=5 mass="500"  pitch="0" roll="0" yaw="12" position="-3230,12300,-6990" rotationaxis="0,0,0" rotationrate="0"       collisiondamage = 0.01  enablecollisiondamage = true >
841        <attached>
842                <Model scale="150" mesh="asteroid_ice.mesh"  shadow=false/>
843         </attached>
844         <collisionShapes>
845                <SphereCollisionShape radius="150" />
846        </collisionShapes>
847        </MovableEntity>
848
849        <MovableEntity collisionType=kinematic linearDamping=0.8 angularDamping=5 mass="500" pitch="13" roll="23"yaw="120" position="-3000,12000,-6820" rotationaxis="0,0,0" rotationrate="0"       collisiondamage = 0.01  enablecollisiondamage = true >
850        <attached>
851                <Model scale="100" mesh="asteroid_ice.mesh"  shadow=false/>
852         </attached>
853         <collisionShapes>
854                <SphereCollisionShape radius="100" />
855        </collisionShapes>
856        </MovableEntity>
857
858        <MovableEntity collisionType=kinematic linearDamping=0.8 angularDamping=5 mass="500" pitch="2" roll="12" yaw="43" position="-3250,12100,-6850" rotationaxis="0,0,0" rotationrate="0"       collisiondamage = 0.01  enablecollisiondamage = true >
859        <attached>
860                <Model scale="70" mesh="asteroid_ice.mesh"  shadow=false/>
861         </attached>
862         <collisionShapes>
863                <SphereCollisionShape radius="70" />
864        </collisionShapes>
865        </MovableEntity>
866
867        <MovableEntity collisionType=kinematic linearDamping=0.8 angularDamping=5 mass="500" pitch="0" roll="0" yaw="0"  position="-3230,11800,-6990" rotationaxis="0,0,0" rotationrate="0"       collisiondamage = 0.01  enablecollisiondamage = true >
868        <attached>
869                <Model scale="85" mesh="asteroid_ice.mesh"  shadow=false/>
870         </attached>
871         <collisionShapes>
872                <SphereCollisionShape radius="85" />
873        </collisionShapes>
874        </MovableEntity>
875
876                                                        <!-- Homeplanet Architecture END-->
877
878                                                        <!-- Portal-->
879    <Template name=PortalDefault>
880        <PortalEndPoint>
881            <attached>
882                <Model mesh="Spacegate.mesh" yaw="90"/>
883            </attached>
884        </PortalEndPoint>
885    </Template>
886
887    <PortalEndPoint position="-3000,12000,-6990" id="1" distance="40" target="MobileEntity" design="PortalDefault" reenterDelay="0"/>
888    <PortalEndPoint position="-47000,-30000,30000" id="2" distance="40" target="MobileEntity" design="PortalDefault" reenterDelay="0"/>
889    <PortalLink fromID="1" toID="2" />
890    <PortalLink fromID="2" toID="1" />
891
892
893                                                        <!-- Portal END-->
894
895
896        <!-- The Cave-->
897<!-- verhaeltniss Cube.mesh <-> Crate.mesh 1:5 -->
898
899                                        <!-- 15 Boxes forward-->
900 <?lua
901    max = 15
902    for i = 0, max, 1
903    do
904    y=(i*200)-47200
905
906    ?>
907
908    <?lua
909    for j = 0, 2, 1
910    do
911    z =30200-(j*200)
912    ?>   
913   
914    <?lua
915    for k = 0, 1, 1
916    do
917    x =-30200+(k*400)
918    ?>
919
920
921
922
923  <StaticEntity position="<?lua print(y) ?>,<?lua print(x) ?>,<?lua print(z) ?>" direction="0,0,0" collisionType=static mass=100000 friction=0.01>
924     <attached>
925        <Model position="0,0,0" mesh="crate.mesh" scale3D="20,20,20"  />
926      </attached>
927      <collisionShapes>
928        <BoxCollisionShape position="0,0,0" halfExtents="100,100,100" />
929
930      </collisionShapes>
931</StaticEntity>
932
933
934    <?lua end ?>
935    <?lua end ?>
936    <?lua end ?>
937
938 <?lua
939    max = 15
940    for i = 0, max, 1
941    do
942    y=(i*200)-47200
943
944    ?>
945    <?lua
946    for j = 0, 1, 1
947    do
948    z =30200-(j*400)
949    ?>   
950  <StaticEntity position="<?lua print(y) ?>,-30000,<?lua print(z) ?>" direction="0,0,0" collisionType=static mass=100000 friction=0.01>
951     <attached>
952        <Model position="0,0,0" mesh="crate.mesh" scale3D="20,20,20" />
953      </attached>
954      <collisionShapes>
955        <BoxCollisionShape position="0,0,0" halfExtents="100,100,100" />
956
957      </collisionShapes>
958</StaticEntity>
959    <?lua end ?>
960    <?lua end ?>
961
962  <StaticEntity position="-47200,-30000,30000" direction="0,0,0" collisionType=static mass=100000 friction=0.01>
963     <attached>
964        <Model position="0,0,0" mesh="crate.mesh" scale3D="20,20,20" />
965      </attached>
966      <collisionShapes>
967        <BoxCollisionShape position="0,0,0" halfExtents="100,100,100" />
968
969      </collisionShapes>
970</StaticEntity>
971
972                                        <!-- 15 Boxes forward END -->
973                                        <!-- 18 Boxes right-->
974
975 <?lua
976    max = 18
977    for i = 0, max, 1
978    do
979    z=29800+(i*200)
980
981    ?>
982
983    <?lua
984    for j = 0, 2, 1
985    do
986    y = (j*200)-44000
987    ?>   
988   
989    <?lua
990    for k = 0, 1, 1
991    do
992    x =-30200+(k*400)
993    ?>
994
995
996
997
998  <StaticEntity position="<?lua print(y) ?>,<?lua print(x) ?>,<?lua print(z) ?>" direction="0,0,0" collisionType=static mass=100000 friction=0.01>
999     <attached>
1000        <Model position="0,0,0" mesh="crate.mesh" scale3D="20,20,20" />
1001      </attached>
1002      <collisionShapes>
1003        <BoxCollisionShape position="0,0,0" halfExtents="100,100,100" />
1004
1005      </collisionShapes>
1006</StaticEntity>
1007
1008
1009    <?lua end ?>
1010    <?lua end ?>
1011    <?lua end ?>
1012
1013 <?lua
1014    max = 16
1015    for i = 0, max, 1
1016    do
1017    z = 30200+(i*200)
1018
1019    ?>
1020    <?lua
1021    for j = 0, 1, 1
1022    do
1023     y = (j*400)-44000
1024    ?>   
1025  <StaticEntity position="<?lua print(y) ?>,-30000,<?lua print(z) ?>" direction="0,0,0" collisionType=static mass=100000 friction=0.01>
1026     <attached>
1027        <Model position="0,0,0" mesh="crate.mesh" scale3D="20,20,20" />
1028      </attached>
1029      <collisionShapes>
1030        <BoxCollisionShape position="0,0,0" halfExtents="100,100,100" />
1031
1032      </collisionShapes>
1033</StaticEntity>
1034    <?lua end ?>
1035    <?lua end ?>
1036
1037  <StaticEntity position="-43600,-30000,30000" direction="0,0,0" collisionType=static mass=100000 friction=0.01>
1038     <attached>
1039        <Model position="0,0,0" mesh="crate.mesh" scale3D="20,20,20" />
1040      </attached>
1041      <collisionShapes>
1042        <BoxCollisionShape position="0,0,0" halfExtents="100,100,100" />
1043
1044      </collisionShapes>
1045</StaticEntity>
1046
1047 <?lua
1048    for i = 0, 2, 1
1049    do
1050    y = -44000+(i*200)
1051
1052    ?>
1053  <StaticEntity position="<?lua print(y) ?>,-30000,29800" direction="0,0,0" collisionType=static mass=100000 friction=0.01>
1054     <attached>
1055        <Model position="0,0,0" mesh="crate.mesh" scale3D="20,20,20" />
1056      </attached>
1057      <collisionShapes>
1058        <BoxCollisionShape position="0,0,0" halfExtents="100,100,100" />
1059
1060      </collisionShapes>
1061</StaticEntity>
1062
1063    <?lua end ?>
1064
1065                                        <!-- 18 Boxes right END-->
1066                                        <!-- 17 Boxes forward-->
1067 <?lua
1068    max = 17
1069    for i = 0, max, 1
1070    do
1071    y=(i*200)-44000
1072
1073    ?>
1074
1075    <?lua
1076    for j = 0, 2, 1
1077    do
1078    z =34000 - (j*200)
1079    ?>   
1080   
1081    <?lua
1082    for k = 0, 1, 1
1083    do
1084    x =-30200+(k*400)
1085    ?>
1086
1087
1088
1089
1090  <StaticEntity position="<?lua print(y) ?>,<?lua print(x) ?>,<?lua print(z) ?>" direction="0,0,0" collisionType=static mass=100000 friction=0.01>
1091     <attached>
1092        <Model position="0,0,0" mesh="crate.mesh" scale3D="20,20,20" />
1093      </attached>
1094      <collisionShapes>
1095        <BoxCollisionShape position="0,0,0" halfExtents="100,100,100" />
1096
1097      </collisionShapes>
1098</StaticEntity>
1099
1100
1101    <?lua end ?>
1102    <?lua end ?>
1103    <?lua end ?>
1104
1105 <?lua
1106    max = 15
1107    for i = 0, max, 1
1108    do
1109    y=(i*200)-43600
1110
1111    ?>
1112
1113    <?lua
1114    for j = 0, 0, 1
1115    do
1116    z =34000 - (i*5.5)
1117    ?>
1118
1119  <StaticEntity position="<?lua print(y) ?>,-30000,<?lua print(z) ?>" direction="0,0,0" collisionType=static mass=100000 friction=0.01>
1120     <attached>
1121        <Model position="0,0,0" mesh="crate.mesh" scale3D="20,20,20" />
1122      </attached>
1123      <collisionShapes>
1124        <BoxCollisionShape position="0,0,0" halfExtents="100,100,100" />
1125
1126      </collisionShapes>
1127</StaticEntity>
1128
1129    <?lua end ?>
1130    <?lua end ?>
1131 <?lua
1132    max = 15
1133    for i = 0, max, 1
1134    do
1135    y=(i*200)-43600
1136
1137    ?>
1138
1139    <?lua
1140    for j = 0, 0, 1
1141    do
1142    z =33600 + (i*5.5)
1143    ?>
1144
1145  <StaticEntity position="<?lua print(y) ?>,-30000,<?lua print(z) ?>" direction="0,0,0" collisionType=static mass=100000 friction=0.01>
1146     <attached>
1147        <Model position="0,0,0" mesh="crate.mesh" scale3D="20,20,20" />
1148      </attached>
1149      <collisionShapes>
1150        <BoxCollisionShape position="0,0,0" halfExtents="100,100,100" />
1151
1152      </collisionShapes>
1153</StaticEntity>
1154    <?lua end ?>
1155    <?lua end ?>
1156
1157
1158 <?lua
1159    for i = 0, 1, 1
1160    do
1161    y = -44000+(i*200)
1162
1163    ?>
1164  <StaticEntity position="<?lua print(y) ?>,-30000,34000" direction="0,0,0" collisionType=static mass=100000 friction=0.01>
1165     <attached>
1166        <Model position="0,0,0" mesh="crate.mesh" scale3D="20,20,20" />
1167      </attached>
1168      <collisionShapes>
1169        <BoxCollisionShape position="0,0,0" halfExtents="100,100,100" />
1170
1171      </collisionShapes>
1172</StaticEntity>
1173
1174    <?lua end ?>
1175
1176  <StaticEntity position="-44000,-30000,33800" direction="0,0,0" collisionType=static mass=100000 friction=0.01>
1177     <attached>
1178        <Model position="0,0,0" mesh="crate.mesh" scale3D="20,20,20" />
1179      </attached>
1180      <collisionShapes>
1181        <BoxCollisionShape position="0,0,0" halfExtents="100,100,100" />
1182
1183      </collisionShapes>
1184</StaticEntity>
1185
1186  <StaticEntity position="-44000,-30000,33600" direction="0,0,0" collisionType=static mass=100000 friction=0.01>
1187     <attached>
1188        <Model position="0,0,0" mesh="crate.mesh" scale3D="20,20,20" />
1189      </attached>
1190      <collisionShapes>
1191        <BoxCollisionShape position="0,0,0" halfExtents="100,100,100" />
1192
1193      </collisionShapes>
1194</StaticEntity>
1195                                        <!-- 17 Boxes forward END-->
1196    <Billboard position="-41000,-30000,33800" material="Flares/backlightflare" colour="0,1.4,2.1" scale=15 />
1197
1198  <StaticEntity position="-40400,-30000,33800" direction="0,0,0" collisionType=static mass=100000 friction=0.01>
1199     <attached>
1200        <Model position="0,0,0" mesh="cube_green.mesh" scale3D="100,100,100" />
1201      </attached>
1202      <collisionShapes>
1203        <BoxCollisionShape position="0,0,0" halfExtents="100,100,100" />
1204      </collisionShapes>
1205</StaticEntity>
1206
1207
1208        <!-- The Cave END-->
1209
1210  </Scene>
1211</Level>
1212
1213
1214
Note: See TracBrowser for help on using the repository browser.