Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 9810 was 9810, checked in by lumperte, 10 years ago

Box-Labyrinth und end of mission

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