Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/leveljoemeHS14/data/levels/AnihilationThreat.oxw @ 10136

Last change on this file since 10136 was 10136, checked in by sujataj, 9 years ago

pickups and enemies

File size: 28.0 KB
Line 
1<LevelInfo
2        name= "Total Annihilation"
3        description= "Save humanity from its total annihilation."
4        tags= "mission"
5        screenshot= "screenshot.png"
6/>
7
8
9 <?lua
10  include("stats.oxo")
11  include("HUDTemplates3.oxo")
12  include("templates/lodInformation.oxt")
13  include("templates/pickupRepresentationTemplates.oxt")
14
15?>
16
17
18
19<?lua
20  include("templates/spaceshipSwallow.oxt")
21  include("templates/spaceshipPirate.oxt")
22  include("templates/spaceshipEscort.oxt")
23  include("templates/spaceshipGhost.oxt")
24  include("templates/spaceshipCollateralDamage.oxt")
25  include("templates/spaceshipAssff.oxt")
26  include("templates/spaceshipAssff2.oxt")
27  include("templates/spaceshipTransporter.oxt")
28
29
30?>
31
32<Level  gametype = "Mission" >
33 
34<templates>
35    <Template link=lodtemplate_default />
36  </templates>
37  <?lua include("includes/notifications.oxi") ?>
38 
39  <NotificationQueueCEGUI
40    name="narrative"
41    targets="simpleNotification"
42    size=8
43    displayTime=4
44    position="0.2, 0, 0.1, 0"
45    fontSize="23"
46    fontColor="0.8, 0.5, 0.2, 0.8"
47    alignment="HorzCentred"
48    displaySize="0.6, 0, 0, 0"
49    />
50
51
52   <?lua
53    dofile("includes/CuboidSpaceStation.lua")
54   ?>
55
56
57
58<Scene
59    ambientlight = "0.5, 0.5, 0.5"
60    skybox       = "Orxonox/Starbox"
61    hasPhysics = true
62 >
63
64<?lua
65      include("includes/pickups.oxi")
66   ?>
67 
68  <Light
69        type=directional position="0,0,0"
70        direction="0.522, 0.198, -0.354"
71        diffuse="1.0, 0.9, 0.9, 1.0"
72        specular="1.0, 0.9, 0.9, 1.0"/>
73       
74       
75  <SpawnPoint
76        team=0 position="1000,1000,1000"
77        lookat="0,1,0"
78        spawnclass=SpaceShip
79        pawndesign=spaceshipassff >
80        <DistanceTriggerBeacon name="coolSpaceship" />
81        </SpawnPoint>
82       
83        <Template name=PortalDefault>
84        <PortalEndPoint>
85            <attached>
86                <Model mesh="Spacegate.mesh" yaw="90"/>
87            </attached>
88        </PortalEndPoint>
89    </Template>
90   
91                               
92   
93                <!----------------Objects------------------>
94   
95   
96 
97   
98   
99    <!--Billboard which tirggers the next Quest and spawns the enemy ships-->
100<Billboard position=" 500,500, 500" material="Examples/Flare" colour="1.0, 0.0, 0.0" /> 
101<Billboard position=" 1500,1500, 1500" material="Examples/Flare" colour="1.0, 0.0, 0.0" /> 
102<Billboard position=" 2500,2500, 2500" material="Examples/Flare" colour="1.0, 0.0, 0.0" /> 
103<Billboard position=" 3500,3500, 3500" material="Examples/Flare" colour="1.0, 0.0, 0.0" /> 
104<Billboard position=" 4500,4500, 4500" material="Examples/Flare" colour="1.0, 0.0, 0.0" /> 
105<Billboard position=" 6500,6500, 6500" material="Examples/Flare" colour="1.0, 0.0, 0.0" /> 
106<Billboard position=" 8500,8500, 8500" material="Examples/Flare" colour="1.0, 0.0, 0.0" /> 
107<Billboard position=" 9500,9500, 9500" material="Examples/Flare" colour="1.0, 1.0, 0.0" /> 
108
109
110                                                <!--#########Pickups##########-->
111                       
112
113<PickupSpawner pickup=crazyhealthpickup position="3500,3500, 3500" triggerDistance="20" respawnTime="30" maxSpawnedItems="10" />
114<PickupSpawner pickup=hugeshieldpickup position="3500,4500, 4500" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" />
115<PickupSpawner pickup=smalljumppickup position="6500,6500, 6000" triggerDistance="20" respawnTime="10" maxSpawnedItems="99" />
116<PickupSpawner pickup=largedamageboostpickup position="9500,9500, 9500" triggerDistance="20" respawnTime="30" maxSpawnedItems="10" />
117<PickupSpawner pickup=triplehealthspeedinvisibilitypickup position="13500,13500,13500" triggerDistance="10" respawnTime="30" maxSpawnedItems="10" />
118
119   
120            <!--******************************-Mission starts here****************************-->
121                       
122                       
123                         <!------------On-screen texts---------->
124                         
125
126   
127<DistanceTrigger name="flying2" position="0,0,0" target="Pawn" distance=40 stayActive="true" delay=7/>
128    <SimpleNotification message="in order to reach our fleet,">
129        <events>
130            <trigger>
131                <EventListener event="flying2" />
132            </trigger>
133        </events>
134    </SimpleNotification>
135   
136   
137<DistanceTrigger name="flying2" position="0,0,0" target="Pawn" distance=100 stayActive="true" delay=7/>
138    <SimpleNotification message="read the quest description">
139        <events>
140            <trigger>
141                <EventListener event="flying2" />
142            </trigger>
143        </events>
144    </SimpleNotification>
145   
146    <DistanceTrigger name="flying1" position="0,0,0" target="Pawn" distance=100 stayActive="true" delay=1/>
147    <SimpleNotification message="Welcome Major Walker">
148        <events>
149            <trigger>
150                <EventListener event="flying1" />
151            </trigger>
152        </events>
153    </SimpleNotification>       
154
155<DistanceTrigger name="flying3" position="500,500,500" target="Pawn" distance=50 stayActive="true" delay=1/>
156<SimpleNotification message="follow the red dots">
157    <events>
158        <trigger>
159            <EventListener event="flying3" />
160        </trigger>
161    </events>
162</SimpleNotification>       
163
164
165<DistanceTrigger name="flying6" position="1000,1000,1000" target="Pawn" distance=50 stayActive="true" delay=1/>
166<SimpleNotification message="Major! You can't face the enemy yet">
167    <events>
168        <trigger>
169            <EventListener event="flying6" />
170        </trigger>
171    </events>
172</SimpleNotification>       
173
174<DistanceTrigger name="flying7" position="1060,1060,1060" target="Pawn" distance=50 stayActive="true" delay=1/>
175<SimpleNotification message="You'll ned to get some upgrades first">
176    <events>
177        <trigger>
178            <EventListener event="flying7" />
179        </trigger>
180    </events>
181</SimpleNotification>     
182
183<DistanceTrigger name="flying8" position="1110,1110,1110" target="Pawn" distance=50 stayActive="true" delay=1/>
184<SimpleNotification message="You can find them close to the signals">
185    <events>
186        <trigger>
187            <EventListener event="flying8" />
188        </trigger>
189    </events>
190</SimpleNotification>     
191
192<DistanceTrigger name="flying9" position="6500,6500,6000" target="Pawn" distance=50 stayActive="true" delay=1/>
193<SimpleNotification message="You're almost here!">
194    <events>
195        <trigger>
196            <EventListener event="flying9" />
197        </trigger>
198    </events>
199</SimpleNotification>     
200
201<DistanceTrigger name="flying4" position="9500,9500,9500" target="Pawn" distance=50 stayActive="true" delay=1/>
202<SimpleNotification message="You're late!">
203    <events>
204        <trigger>
205            <EventListener event="flying4" />
206        </trigger>
207    </events>
208</SimpleNotification>
209
210
211<DistanceTrigger name="flying5" position="9550,9550,9550" target="Pawn" distance=50 stayActive="true" delay=1/>
212<SimpleNotification message="The enemy is eager to be beaten">
213    <events>
214        <trigger>
215            <EventListener event="flying5" />
216        </trigger>
217    </events>
218</SimpleNotification>
219
220
221
222
223
224
225<!-- Meteoriten, die sich bewegen -->
226   <?lua
227      for i = 1, 800, 1
228      do
229      j = math.random()
230      x = math.random()
231      y = math.random()
232      z = math.random()
233   ?>
234
235   <MovableEntity   
236      position = "<?lua print(math.random()* 10000) ?>,<?lua print(math.random() * 10000 + 0) ?>,<?lua print(math.random() * 10000) ?>"
237      scale = "<?lua print(j * 40)?>"
238      velocity = "0,0,0"
239      collisionType = dynamic
240      collisiondamage = 0.5
241      enablecollisiondamage = true
242      active = true
243      visible = true
244   >                 
245          <attached>           
246              <Model mass="<?lua print(j * 1000) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" >
247                 
248              </Model>                         
249          </attached>
250         <collisionShapes>
251             <SphereCollisionShape radius="<?lua print(j * 50) ?>" />
252         </collisionShapes>   
253   </MovableEntity>
254
255   <?lua
256      end
257   ?>
258        <!--****************************In the Asteroid Field***************************-->
259 <!--Enemy team-->
260 
261 <!--*****Spaceship 1******* -->
262       
263  <SpaceShip position="1900,1500,1500" lookat="2050,0,-1000" name="allied" health="200" maxhealth="200" initialhealth="200" >
264          <templates>
265            <Template link=spaceshipassff />
266      </templates>
267       <controller>
268          <WaypointPatrolController alertnessradius=300 team=1 >
269                                <waypoints>
270                                  <Model mesh="cube.mesh" scale=0 position="1000,1500,1500" />
271                  <Model mesh="cube.mesh" scale=0 position="1900,1500,1500" />
272                                           
273              </waypoints>
274                                               
275          </WaypointPatrolController>
276
277       </controller>
278         
279  </SpaceShip>
280     
281     
282      <!--*****Spaceship 2 and 3******* -->
283     
284      <SpaceShip position="2900,2500,2500" lookat="2050,0,-1000" name="allied" health="200" maxhealth="200" initialhealth="200" >
285          <templates>
286                <Template link=spaceshippirate />
287          </templates>
288           <controller>
289              <WaypointPatrolController alertnessradius=300 team=1 >
290                                <waypoints>
291                                  <Model mesh="cube.mesh" scale=0 position="2000,2500,2500" />
292                      <Model mesh="cube.mesh" scale=0 position="2900,2500,2500" />
293                                                       
294                  </waypoints>
295                                               
296              </WaypointPatrolController>
297
298           </controller>
299         
300      </SpaceShip>
301     
302      <SpaceShip position="2020,2400,2500" lookat="2050,0,-1000" name="allied" health="200" maxhealth="200" initialhealth="200" >
303          <templates>
304                <Template link=spaceshippirate />
305          </templates>
306           <controller>
307              <WaypointPatrolController alertnessradius=300 team=1 >
308                                <waypoints>
309                                 
310                      <Model mesh="cube.mesh" scale=0 position="2920,2500,2500" />
311                                  <Model mesh="cube.mesh" scale=0 position="2020,2500,2500" />
312                   
313                  </waypoints>
314                                               
315              </WaypointPatrolController>
316
317           </controller>
318         
319      </SpaceShip>
320 
321        <!--****************************After the Asteroid Field***************************-->
322       
323   <DistanceTrigger name="afterPortal" position="9500,9500, 9500" target="Pawn"  distance=50 stayActive="true" delay=1/>
324     
325   
326<!--Creating player's team OK-->
327        <!--Spaceships team 0 (player:team=0)-->
328               
329               <SpaceShip position="10000,10000,10000" lookat="2050,0,-1000" name="allied" health="800" maxhealth="800" initialhealth="800" >
330                  <templates>
331                         <Template link=spaceshipassff />
332                   </templates>
333                    <controller>
334                                  <WaypointPatrolController alertnessradius=2000 team=0 >
335                               <events>
336                                          <activity>
337                                              <EventListener event="afterPortal" />
338                                           </activity>
339                                      </events>
340                                                <waypoints>
341                                                  <Model mesh="cube.mesh" scale=0 position="15000,15000,15000" />
342
343                               </waypoints>
344                                                               
345                           </WaypointPatrolController>
346                    </controller>
347             </SpaceShip>
348
349
350             <SpaceShip position="10150,10000,9850" lookat="2050,0,-1000" name="allied" health="800" maxhealth="800" initialhealth="800" >
351                  <templates>
352                       <Template link=spaceshipassff />
353                 </templates>
354                  <controller>
355                     <WaypointPatrolController alertnessradius=2000 team=0 >
356                         <events>
357                                    <activity>
358                                        <EventListener event="afterPortal" />
359                                     </activity>
360                                </events>
361                                        <waypoints>
362                                          <Model mesh="cube.mesh" scale=0 position="15150,15000,14850" />
363
364                         </waypoints>
365                                                       
366                     </WaypointPatrolController>
367
368                  </controller>
369             </SpaceShip>
370
371             
372             
373             
374
375             <SpaceShip position="10150,10150,10150" lookat="2050,0,-1000" name="allied" health="800" maxhealth="800" initialhealth="800" >
376                  <templates>
377                       <Template link=spaceshipassff />
378                 </templates>
379                  <controller>
380                     <WaypointPatrolController alertnessradius=2000 team=0 >
381                         <events>
382                                    <activity>
383                                        <EventListener event="afterPortal" />
384                                     </activity>
385                                </events>
386                                        <waypoints>
387                                          <Model mesh="cube.mesh" scale=0 position="15150,15150,15150" />
388
389                         </waypoints>
390                                                       
391                     </WaypointPatrolController>
392
393                  </controller>
394             </SpaceShip>
395
396     
397      <SpaceShip position="10300,10000,10300" lookat="2050,0,-1000" name="allied" health="800" maxhealth="800" initialhealth="800" >
398                          <templates>
399                             <Template link=spaceshipassff />
400                       </templates>
401                        <controller>
402                           <WaypointPatrolController alertnessradius=2000 team=0 >
403                               <events>
404                                          <activity>
405                                              <EventListener event="afterPortal" />
406                                           </activity>
407                                      </events>
408                                                <waypoints>
409                                                  <Model mesh="cube.mesh" scale=0 position="15300,15300,15300" />
410
411                               </waypoints>
412                                                               
413                           </WaypointPatrolController>
414
415                        </controller>
416                   </SpaceShip>
417     
418      <SpaceShip position="10450,10000,10300" lookat="2050,0,-1000" name="allied" health="800" maxhealth="800" initialhealth="800" >
419                          <templates>
420                                  <Template link=spaceshipassff />
421                            </templates>
422                             <controller>
423                                <WaypointPatrolController alertnessradius=2000 team=0 >
424                                    <events>
425                                               <activity>
426                                                   <EventListener event="afterPortal" />
427                                                </activity>
428                                           </events>
429                                                        <waypoints>
430                                                          <Model mesh="cube.mesh" scale=0 position="15450,15000,15300" />
431
432                                    </waypoints>
433                                                                       
434                                </WaypointPatrolController>
435
436                             </controller>
437                        </SpaceShip>
438     
439      <SpaceShip position="10450,10000,10450" lookat="2050,0,-1000" name="allied" health="800" maxhealth="800" initialhealth="800" >
440                                  <templates>
441                                        <Template link=spaceshipassff />
442                                  </templates>
443                                   <controller>
444                                      <WaypointPatrolController alertnessradius=2000 team=0 >
445                                          <events>
446                                                     <activity>
447                                                         <EventListener event="afterPortal" />
448                                                      </activity>
449                                                 </events>
450                                                                <waypoints>
451                                                          <Model mesh="cube.mesh" scale=0 position="15450,15000,15450" />
452
453                                          </waypoints>
454                                                                               
455                                      </WaypointPatrolController>
456
457                                   </controller>
458                              </SpaceShip>
459     
460     
461      <SpaceShip position="10300,10000,9850" lookat="2050,0,-1000" name="allied" health="800" maxhealth="800" initialhealth="800" >
462                                          <templates>
463                                            <Template link=spaceshipassff />
464                                      </templates>
465                                       <controller>
466                                          <WaypointPatrolController alertnessradius=2000 team=0 >
467                                              <events>
468                                                         <activity>
469                                                             <EventListener event="afterPortal" />
470                                                          </activity>
471                                                     </events>
472                                                                <waypoints>
473                                                                  <Model mesh="cube.mesh" scale=0 position="15300,15000,14850" />
474
475                                              </waypoints>
476                                                                               
477                                          </WaypointPatrolController>
478
479                                       </controller>
480                                  </SpaceShip>
481     
482      <SpaceShip position="10150,10000,9700" lookat="2050,0,-1000" name="allied" health="800" maxhealth="800" initialhealth="800" >
483                                          <templates>
484                                                  <Template link=spaceshipassff />
485                                            </templates>
486                                             <controller>
487                                                <WaypointPatrolController alertnessradius=2000 team=0 >
488                                                    <events>
489                                                               <activity>
490                                                                   <EventListener event="afterPortal" />
491                                                                </activity>
492                                                           </events>
493                                                                        <waypoints>
494                                                                          <Model mesh="cube.mesh" scale=0 position="15150,15000,14700" />
495
496                                                    </waypoints>
497                                                                                       
498                                                </WaypointPatrolController>
499
500                                             </controller>
501                                        </SpaceShip>
502     
503      <SpaceShip position="10300,10000,9700" lookat="2050,0,-1000" name="allied" health="800" maxhealth="800" initialhealth="800" >
504                                          <templates>
505                                                  <Template link=spaceshipassff />
506                                            </templates>
507                                             <controller>
508                                                <WaypointPatrolController alertnessradius=2000 team=0 >
509                                                    <events>
510                                                               <activity>
511                                                                   <EventListener event="afterPortal" />
512                                                                </activity>
513                                                           </events>
514                                                                        <waypoints>
515                                                                          <Model mesh="cube.mesh" scale=0 position="15300,15000,14700" />
516
517                                                    </waypoints>
518                                                                                       
519                                                </WaypointPatrolController>
520
521                                             </controller>
522                                        </SpaceShip>
523     
524<!--Creating player's team END  -->
525
526<!--#########################################Creating enemy's team END #################################33  -->
527       
528
529<SpaceShip position="15500,15500,15500" lookat="2050,0,-1000" name="enemy" health="400" maxhealth="400" initialhealth="400" >
530                                          <templates>
531                                            <Template link=spaceshipghost />
532                                      </templates>
533                                       <controller>
534                                          <WaypointPatrolController alertnessradius=2000 team=1 >
535                                             <waypoints>
536                                                                  <Model mesh="cube.mesh" scale=0 position="15500,15500,15500" />
537
538                                              </waypoints>
539                                                                               
540                                          </WaypointPatrolController>
541
542                                       </controller>
543                                  </SpaceShip>
544     
545     
546      <SpaceShip position="15750,15500,15750" lookat="2050,0,-1000" name="enemy" health="400" maxhealth="400" initialhealth="400" >
547                                                  <templates>
548                                                      <Template link=spaceshipghost />
549                                                </templates>
550                                                 <controller>
551                                                                                                  <WaypointPatrolController alertnessradius=2000 team=1 >
552                                                       <waypoints>
553                                                                          <Model mesh="cube.mesh" scale=0 position="15750,15500,15750" />
554
555                                                        </waypoints>
556                                                                                       
557                                                    </WaypointPatrolController>
558
559                                                 </controller>
560                                            </SpaceShip>
561      <SpaceShip position="16000,15500,16000" lookat="2050,0,-1000" name="enemy" health="400" maxhealth="400" initialhealth="400" >
562                                                  <templates>
563                                                   <Template link=spaceshipghost />
564                                                     </templates>
565                                                      <controller>
566                                                                                                  <WaypointPatrolController alertnessradius=2000 team=1 >
567                                                            <waypoints>
568                                                                                  <Model mesh="cube.mesh" scale=0 position="16000,15500,16000" />
569
570                                                             </waypoints>
571                                                                                               
572                                                         </WaypointPatrolController>
573                                                           
574
575                                                      </controller>
576                                                 </SpaceShip>
577               
578               
579               
580               <SpaceShip position="15250,15500,15250" lookat="2050,0,-1000" name="enemy" health="400" maxhealth="400" initialhealth="400" >
581                                                  <templates>
582                                                    <Template link=spaceshipghost />
583                                                     </templates>
584                                                      <controller>
585                                                         <WaypointPatrolController alertnessradius=2000 team=1 >
586                                                            <waypoints>
587                                                                                  <Model mesh="cube.mesh" scale=0 position="15250,15500,15250" />
588
589                                                             </waypoints>
590                                                                                               
591                                                         </WaypointPatrolController>
592
593                                                      </controller>
594                                                 </SpaceShip>
595               
596               
597               
598               <SpaceShip position="15000,15500,15000" lookat="2050,0,-1000" name="enemy" health="400" maxhealth="400" initialhealth="400" >
599                                                  <templates>
600                                                   <Template link=spaceshipghost />
601                                                     </templates>
602                                                      <controller>
603                                                         <WaypointPatrolController alertnessradius=2000 team=1 >
604                                                            <waypoints>
605                                                                                  <Model mesh="cube.mesh" scale=0 position="15000,15500,15000" />
606
607                                                             </waypoints>
608                                                                                               
609                                                         </WaypointPatrolController>
610
611                                                      </controller>
612                                                 </SpaceShip>
613               
614               
615               
616               <SpaceShip position="15500,15500,15750" lookat="2050,0,-1000" name="enemy" health="400" maxhealth="400" initialhealth="400" >
617                                                  <templates>
618                                                   <Template link=spaceshipghost />
619                                                     </templates>
620                                                      <controller>
621                                                                                                 <WaypointPatrolController alertnessradius=2000 team=1 >
622                                                            <waypoints>
623                                                                                  <Model mesh="cube.mesh" scale=0 position="15500,15500,15750" />
624
625                                                             </waypoints>
626                                                                                               
627                                                         </WaypointPatrolController>
628
629                                                      </controller>
630                                                 </SpaceShip>
631
632         
633         
634         
635                 <!------------Quest---------->
636
637
638 <QuestEffectBeacon times=1>
639            <effects>
640                <AddQuest questId="quest0" />
641                   <AddQuestHint hintId ="quest1hint2" />
642                <AddQuestHint hintId ="quest1hint3" />
643            </effects>
644            <events>
645                <execute>
646                    <EventListener event=spawntrigger />
647                </execute>
648            </events>
649        </QuestEffectBeacon>
650   
651   
652
653<Script code="showGUI NotificationLayer false true" needsGraphics="true" />
654
655<GlobalQuest id="quest0">
656                <QuestDescription title="Mission" description="Humanity is at war! Recently, an ashrocian ship attacked two transporters carrying highly expensive ETHium. Despite the fact, that the Ashrocs are a technological superpower, we, the human race cannot allow them to treat us like insects. Your mission's to group up with yout fellow soldiers and retaliate even harder. Follow the red marks which were left by the star fleet. But beware, there might be spies on your way. See to it, that you terminate their mission ;)" />
657        <hints>
658                <QuestHint id="quest1hint0">
659                    <QuestDescription title="The super Hint." description="Be proud of yourself." />
660                </QuestHint>
661    </hints>             
662</GlobalQuest>
663               
664               
665               
666        <DistanceTrigger name=QuestTrigger0 position="0,0,0" distance=10 target="Pawn" />
667
668
669
670 <QuestEffectBeacon times=1>
671            <effects>
672                <AddQuest questId="quest0" />
673                   <AddQuestHint hintId ="quest1hint2" />
674                <AddQuestHint hintId ="quest1hint3" />
675            </effects>
676            <events>
677                <execute>
678                    <EventListener event=QuestTrigger0 />
679                </execute>
680            </events>
681        </QuestEffectBeacon>
682   
683
684
685
686
687
688   
689   
690       
691   
692   
693   
694  </Scene>
695</Level>
Note: See TracBrowser for help on using the repository browser.