Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

new level created

File size: 16.3 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/spaceshipAssff.oxt")
21  include("templates/spaceshipPirate.oxt")
22  include("templates/spaceshipEscort.oxt")
23  include("templates/spaceshipSpacecruiser.oxt")
24?>
25
26  <NotificationQueueCEGUI
27    name="narrative"
28    targets="simpleNotification"
29    size=3
30    displayTime=4
31    position="0.2, 0, 0.1, 0"
32    fontSize="23"
33    fontColor="0, 0.5, 1, 0.9"
34    alignment="HorzCentred"
35    displaySize="0.6, 0, 0, 0"
36    />
37
38<Level
39  name = "Escape the bastards"
40  description = "You destroyed their Base, you accomplished the mission. Now get out of there, and get rid of the haunters"
41  gametype=Mission
42>
43  <templates>
44    <Template link=lodtemplate_default />
45  </templates>
46  <?lua include("includes/notifications.oxi") ?>
47
48  <Scene
49    ambientlight = "0.8, 0.8, 0.8"
50    skybox       = "Orxonox/skyBoxMoreNebula"
51  >
52
53    <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"/>
54
55       
56
57    <!-- SpawnPoint team=0 position="-1000,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff / -->
58
59<!-- New Ship -->
60
61
62<!-- New Ship END -->
63                                                        <!--Basic Infos end-->
64
65<!--Story----------------------------------------------------------------------------------------------------------------------------------------------------------------------->
66
67
68<!--Quests (Fly to the Ally)-->
69    <EventMultiTrigger name=spawntrigger>
70        <events>
71            <trigger>
72                <TeamSpawnPoint team=0 position="-1000,0,0" direction="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipspacecruiser>
73                  <EventTrigger invert=true>
74                    <events>
75                      <trigger>
76                        <EventListener event="missionfinish" />
77                      </trigger>
78                    </events>
79                  </EventTrigger>
80                </TeamSpawnPoint>
81            </trigger>
82        </events>
83    </EventMultiTrigger>
84
85        <QuestEffectBeacon times=1>
86            <effects>
87                <AddQuest questId="Helpisontheway.1" />
88            </effects>
89            <events>
90                <execute>
91                    <EventListener event=spawntrigger />
92                </execute>
93            </events>
94        </QuestEffectBeacon>
95
96        <QuestEffectBeacon times=1>
97            <effects>
98                <CompleteQuest questId="Helpisontheway" />
99            </effects>
100            <events>
101                <execute>
102                    <EventListener event="missionfinish" />
103                </execute>
104            </events>
105        </QuestEffectBeacon>
106
107        <QuestEffectBeacon times=1>
108            <effects>
109                <CompleteQuest questId="defend.2" />
110            </effects>
111            <events>
112                <execute>
113                    <EventListener event="target3" />
114                </execute>
115            </events>
116        </QuestEffectBeacon>
117
118
119
120        <DistanceTrigger name="missionfinish" position="-2580,300,-209" target="Pawn" distance=60 stayActive="true" delay=1>
121        <DistanceTrigger name="reachedally" position="-2580,300,-209" target="Pawn" distance=60 stayActive="true" delay=6>
122    </DistanceTrigger>
123    </DistanceTrigger>
124
125
126
127
128<BlinkingBillboard position="-2580,300,-209" frequency=0.4 amplitude=3 material="Flares/lensflare" colour="1,1,0.05">
129          <events>
130            <visibility>
131              <EventTrigger invert=true>
132                <events>
133                  <trigger>
134                    <EventListener event=missionfinish />
135                  </trigger>
136                </events>
137              </EventTrigger>
138            </visibility>
139          </events>
140</BlinkingBillboard>
141
142<Billboard position="-2580,300,-209" amplitude=1 material="Flares/lensflare" colour="0,0.8,0.1">
143          <events>
144            <visibility>
145              <EventTrigger>
146                <events>
147                  <trigger>
148                    <EventListener event=missionfinish />
149                  </trigger>
150                </events>
151              </EventTrigger>
152            </visibility>
153          </events>
154</Billboard>
155<!--Quests (Fly to the Ally) END-->
156
157<!--Quests (Fight Enemies)-->
158
159
160 <SpaceShip position="-6000,800,-709" lookat="0,0,1" name="attacker" radarname="Fighter1">
161                            <events>
162                                <visibility>
163                                    <EventListener event="reachedally" />
164                                </visibility>
165                            </events>
166                    <templates>
167                      <Template link=spaceshipassff />
168                    </templates>
169                    <controller>
170                      <WaypointPatrolController alertnessradius=1000  team=1>
171                         <waypoints>
172                        <Model mesh="cube.mesh" scale=10 position="-3700,800,-709"/>
173                        <Model mesh="cube.mesh" scale=10 position="-3700,800,309"/>
174                        <Model mesh="cube.mesh" scale=10 position="-3700,-200,309"/>
175                        <Model mesh="cube.mesh" scale=10 position="-3700,-200,-709"/>
176                       </waypoints>
177                    </WaypointPatrolController>
178                  </controller>
179                </SpaceShip>
180
181 <SpaceShip position="-6050,300,-709" lookat="1,0,0" name="attacker" radarname="Fighter2">
182                            <events>
183                                <visibility>
184                                    <EventListener event="reachedally" />
185                                </visibility>
186                            </events>
187                    <templates>
188                      <Template link=spaceshipassff />
189                    </templates>
190                    <controller>
191                      <WaypointPatrolController alertnessradius=1000  team=1>
192                         <waypoints>
193                        <Model mesh="cube.mesh" scale=10 position="-4200,300,-709"/>
194                        <Model mesh="cube.mesh" scale=10 position="-3200,300,-709"/>
195                        <Model mesh="cube.mesh" scale=10 position="-4200,300,309"/>
196                        <Model mesh="cube.mesh" scale=10 position="-3200,300,309"/>
197                       </waypoints>
198                    </WaypointPatrolController>
199                  </controller>
200                </SpaceShip>
201
202 <SpaceShip position="-6100,-200,-209" lookat="0,1,0" name="attacker" radarname="Fighter3">
203                            <events>
204                                <visibility>
205                                    <EventListener event="reachedally" />
206                                </visibility>
207                            </events>
208                    <templates>
209                      <Template link=spaceshipassff />
210                    </templates>
211                    <controller>
212                      <WaypointPatrolController alertnessradius=1000  team=1>
213                         <waypoints>
214                        <Model mesh="cube.mesh" scale=10 position="-4200,-200,-209"/>
215                        <Model mesh="cube.mesh" scale=10 position="-4200,800,-209"/>
216                        <Model mesh="cube.mesh" scale=10 position="-3200,800,-209"/>
217                        <Model mesh="cube.mesh" scale=10 position="-3200,-200,-209"/>
218                       </waypoints>
219                    </WaypointPatrolController>
220                  </controller>
221                </SpaceShip>
222
223<!-- @Triggers: Attakers, Fight one by one  -->
224
225        <EventTrigger name="target3" activations="1" stayactive="true" delay=0.1>
226         <events>
227           <trigger>
228                  <EventListener event="attacker" />
229          </trigger>
230         </events>
231        <EventTrigger name="target2" activations="1" stayactive="true" delay=0.1>
232          <events>
233             <trigger>
234                <EventListener event="attacker" />
235             </trigger>
236          </events>
237        <EventTrigger name="target1" activations="1" stayactive="true" delay=0.1>
238          <events>
239             <trigger>
240                <EventListener event="attacker" />
241             </trigger>
242          </events>
243        </EventTrigger>
244        </EventTrigger>
245        </EventTrigger>
246
247
248    <SimpleNotification message="Wow, That's an explosion."  broadcast="true">
249        <events>
250            <trigger>
251                <EventListener event="target1" />
252            </trigger>
253        </events>
254    </SimpleNotification>
255
256    <SimpleNotification message="No Mercy!!!"  broadcast="true">
257        <events>
258            <trigger>
259                <EventListener event="target2" />
260            </trigger>
261        </events>
262    </SimpleNotification>
263
264    <SimpleNotification message="Booom, you got them all."  broadcast="true">
265        <events>
266            <trigger>
267                <EventListener event="target3" />
268            </trigger>
269        </events>
270    </SimpleNotification>
271
272
273<!-- @Triggers: Attakers, Fight one by one END  -->
274
275
276<!--Quests (Fight Enemies) END-->
277
278
279<!-- LocalQuests -->
280    <LocalQuest id="Helpisontheway.1">
281        <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.
282
283                He will blink with his lamp
284
285                PS: Remind the gravitation field"
286
287 
288        failmessage="Well, you sucked" completeMessage="Well done, You're a hero" />
289        <complete-effects>
290            <AddQuest questId="defend.2" />
291        </complete-effects>
292    </LocalQuest>
293
294
295    <LocalQuest id="defend.2">
296        <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.
297
298        Try to stay on the planet. It's easier to fight!"
299        failmessage="" completeMessage="" />
300        <complete-effects>
301            <AddQuest questId="leave.3" />
302        </complete-effects>
303    </LocalQuest>
304
305
306
307    <LocalQuest id="leave.3">
308        <QuestDescription title="Leave the Place" description="You've blown their minds. Let's go home." failmessage="" completeMessage="" />
309        <complete-effects>
310            <AddQuest questId="wayhome.4" />
311        </complete-effects>
312    </LocalQuest>
313
314<!-- LocalQuests END -->
315
316<!-- Message Triggers -->
317    <DistanceTrigger name="StartofMission" position="-1000,0,0" target="Pawn" distance=10 stayActive="true" delay=2/>
318    <SimpleNotification message="Hi, I'm the Commander.">
319        <events>
320            <trigger>
321                <EventListener event="StartofMission" />
322            </trigger>
323        </events>
324    </SimpleNotification>
325
326    <DistanceTrigger name="Introduction1" position="-1000,0,0" target="Pawn" distance=30 stayActive="true" delay=6.4/>
327    <SimpleNotification message="An allied pilot had to make a forced landing">
328        <events>
329            <trigger>
330                <EventListener event="Introduction1" />
331            </trigger>
332        </events>
333    </SimpleNotification>
334
335    <DistanceTrigger name="Introduction2" position="-1000,0,0" target="Pawn" distance=30 stayActive="true" delay=10.8/>
336    <SimpleNotification message="He needs your help. Get him out of there">
337        <events>
338            <trigger>
339                <EventListener event="Introduction2" />
340            </trigger>
341        </events>
342    </SimpleNotification>
343
344    <DistanceTrigger name="PickedUpAlly" position="-2580,300,-209" target="Pawn" distance=30 stayActive="true" delay=0.1/>
345    <SimpleNotification message="Hi .... are you an enemy?">
346        <events>
347            <trigger>
348                <EventListener event="PickedUpAlly" />
349            </trigger>
350        </events>
351    </SimpleNotification>
352
353    <DistanceTrigger name="PickedUpAlly2" position="-2580,300,-209" target="Pawn" distance=30 stayActive="true" delay=4.4/>
354    <SimpleNotification message="Shoot the enemies staying on the planet">
355        <events>
356            <trigger>
357                <EventListener event="PickedUpAlly2" />
358            </trigger>
359        </events>
360    </SimpleNotification>
361<!-- Message Triggers END -->
362
363<!--Quests____END-->
364
365
366
367<!--Enviroment-------------------------------------------------------------------------------------------------------------------------------------------------------------------->
368
369                                                        <!--Asteroids Field-->
370
371        <?lua for i=0,500,1 do
372                x=math.random(-2500,2500)
373                y=math.random(-2500,2500)
374                z=math.random(-2500,2500)
375        scale=math.random(20,70)
376        ?>
377        <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) ?>">
378        <attached>
379                <Model scale="<?lua print(scale) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false/>
380         </attached>
381         <collisionShapes>
382                <SphereCollisionShape radius="<?lua print(scale * 3) ?>" />
383        </collisionShapes>
384        </MovableEntity>
385        <?lua end ?>
386
387                                                        <!--Asteroids Field end -->
388
389
390                                                        <!--Asteroids Random-->
391
392        <?lua for i=0,300,1 do
393                x=math.random(-8000,8000)
394                y=math.random(-8000,8000)
395                z=math.random(-8000,8000)
396        ?>
397        <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) ?>" >
398        <attached>
399                <Model scale="<?lua print(math.random(20,70)) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false/>
400        </attached>
401        <collisionShapes>
402            <SphereCollisionShape radius="<?lua print(scale * 3) ?>" />
403        </collisionShapes>
404        </MovableEntity>
405        <?lua end ?>
406
407                                                        <!--Asteroids  Random end-->
408
409                                                        <!--Asteroid Elipse-->
410    <?lua
411    max = 20
412    for i = 0, max, 1
413    do
414    y = math.sin(i/max*6)*2000
415    z = math.cos(i/max*6)*2500
416    x = 0
417    ?>
418    <?lua
419    for k = 1, 15, 1
420    do
421    j = math.random()
422    ?>
423
424    <MovableEntity
425      position = "<?lua print(x + math.random() * 500) ?>,<?lua print(y + math.random() * 500) ?>,<?lua print(z + math.random() * 1000) ?>"
426      collisionType = "dynamic"
427      linearDamping = "0.5"
428      angularDamping = "0.01"
429      collisiondamage = "0.01"
430      enablecollisiondamage = "true"
431      scale="<?lua print(j * 5) ?>" >
432      <attached>
433        <Model position="0,0,0" scale="<?lua print(j * 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh">
434      <?lua if k == 5 then ?><attached>                 <!--asteroid fog-->
435            <ParticleEmitter position="0,0,0" source="Orxonox/Steam" />
436          </attached> <?lua end ?>
437        </Model>
438      </attached>
439      <collisionShapes>
440        <SphereCollisionShape radius="<?lua print(j * 80) ?>" />
441      </collisionShapes>
442    </MovableEntity>
443    <?lua
444    end
445    ?>
446    <?lua end ?>
447                                                        <!--Asteroid Elipse end-->
448
449                                                        <!--Planet-->
450    <Planet position="15000,0,0" scale=1500 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="8,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f />
451    <StaticEntity position="2600,0,0" collisionType=static>
452        <collisionShapes>
453            <SphereCollisionShape radius="399" />
454        </collisionShapes>
455    </StaticEntity>
456                                                        <!--Planet end-->
457
458                                                        <!--Planet with Ally-->
459    <Planet
460      position="-2700,300,-209"
461      scale="100"
462      collisionType="dynamic"
463      linearDamping="0.8"
464      angularDamping="0"
465      mass="5000000"
466      pitch="0"
467      mesh="planets/muunilinst.mesh"
468      atmosphere="atmosphere1"
469      rotationaxis="1,0,0"
470      rotationrate="1.0"
471      atmospheresize="80.0f"
472      imagesize="1024.0f"
473    >
474      <attached>
475        <ForceField position="0,0,0" mode="sphere" diameter="1000" velocity="-500" />
476      </attached>
477      <collisionShapes>
478        <SphereCollisionShape radius="100" position="0,0,0" />
479      </collisionShapes>
480    </Planet>
481                                                        <!--Planet with Ally-->
482
483
484
485
486  </Scene>
487</Level>
488
489
490
Note: See TracBrowser for help on using the repository browser.