Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 10121 was 10108, checked in by sujataj, 10 years ago

modified level. works now

File size: 14.5 KB
RevLine 
[10094]1<LevelInfo
2        name= "Total Anihilation"
3        description= "Save humanity from its total anihilation."
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?>
14
15
16<?lua
17  include("templates/spaceshipSwallow.oxt")
18  include("templates/spaceshipPirate.oxt")
19  include("templates/spaceshipEscort.oxt")
20  include("templates/spaceshipGhost.oxt")
21  include("templates/spaceshipCollateralDamage.oxt")
22  include("templates/spaceshipAssff.oxt")
23  include("templates/spaceshipAssff2.oxt")
[10103]24  include("templates/spaceshipTransporter.oxt")
25
[10094]26?>
27
28<Level  gametype = "Mission" >
29 
30<templates>
31    <Template link=lodtemplate_default />
32  </templates>
33  <?lua include("includes/notifications.oxi") ?>
34 
[10103]35  <NotificationQueueCEGUI
36    name="narrative"
37    targets="simpleNotification"
38    size=8
39    displayTime=4
40    position="0.2, 0, 0.1, 0"
41    fontSize="23"
42    fontColor="0.8, 0.5, 0.2, 0.8"
43    alignment="HorzCentred"
44    displaySize="0.6, 0, 0, 0"
45    />
[10094]46
47<?lua
48      include("includes/pickups.oxi")
49   ?>
50
51   <?lua
52    dofile("includes/CuboidSpaceStation.lua")
53   ?>
54
55
56
57<Scene
58    ambientlight = "0.5, 0.5, 0.5"
59    skybox       = "Orxonox/Starbox"
60    hasPhysics = true
61 >
62       
63 
64  <Light
65        type=directional position="0,0,0"
66        direction="0.522, 0.198, -0.354"
67        diffuse="1.0, 0.9, 0.9, 1.0"
68        specular="1.0, 0.9, 0.9, 1.0"/>
69       
70       
71  <SpawnPoint
[10103]72        team=0 position="0,0,0"
[10108]73        lookat="0,1,0"
[10094]74        spawnclass=SpaceShip
[10108]75        pawndesign=spaceshipassff >
76        <DistanceTriggerBeacon name="coolSpaceship" />
77        </SpawnPoint>
[10094]78       
79        <Template name=PortalDefault>
80        <PortalEndPoint>
81            <attached>
82                <Model mesh="Spacegate.mesh" yaw="90"/>
83            </attached>
84        </PortalEndPoint>
85    </Template>
[10103]86   
87                               
88   
89                <!----------------Objects------------------>
90   
91   
92 
93   
94   
95    <!--Billboard which tirggers the next Quest and spawns the enemy ships-->
[10108]96<Billboard position=" 500,500, 500" material="Examples/Flare" colour="1.0, 0.0, 0.0" /> 
97<Billboard position=" 1500,1500, 1500" material="Examples/Flare" colour="1.0, 0.0, 0.0" /> 
98<Billboard position=" 2500,2500, 2500" material="Examples/Flare" colour="1.0, 0.0, 0.0" /> 
99<Billboard position=" 3500,3500, 3500" material="Examples/Flare" colour="1.0, 0.0, 0.0" /> 
100<Billboard position=" 4500,4500, 4500" material="Examples/Flare" colour="1.0, 0.0, 0.0" /> 
101<Billboard position=" 6500,6500, 6500" material="Examples/Flare" colour="1.0, 0.0, 0.0" /> 
102<Billboard position=" 8500,8500, 8500" material="Examples/Flare" colour="1.0, 0.0, 0.0" /> 
103<Billboard position=" 9500,9500, 9500" material="Examples/Flare" colour="1.0, 1.0, 0.0" /> 
104
105
106
[10103]107   
[10108]108            <!--******************************-Mission starts here****************************-->
109                       
110                       
111                         <!------------On-screen texts---------->
112                         
113
114   
115<DistanceTrigger name="flying2" position="0,0,0" target="Pawn" distance=40 stayActive="true" delay=7/>
116    <SimpleNotification message="in order to reach our fleet,">
117        <events>
118            <trigger>
119                <EventListener event="flying2" />
120            </trigger>
121        </events>
122    </SimpleNotification>
123   
124   
125<DistanceTrigger name="flying2" position="0,0,0" target="Pawn" distance=100 stayActive="true" delay=7/>
126    <SimpleNotification message="read the quest description">
127        <events>
128            <trigger>
129                <EventListener event="flying2" />
130            </trigger>
131        </events>
132    </SimpleNotification>
133   
134    <DistanceTrigger name="flying1" position="0,0,0" target="Pawn" distance=100 stayActive="true" delay=1/>
135    <SimpleNotification message="Welcome Mr. Walker">
136        <events>
137            <trigger>
138                <EventListener event="flying1" />
139            </trigger>
140        </events>
141    </SimpleNotification>       
142
143<DistanceTrigger name="flying3" position="500,500,500" target="Pawn" distance=50 stayActive="true" delay=1/>
144<SimpleNotification message="follow the red dots">
145    <events>
146        <trigger>
147            <EventListener event="flying3" />
148        </trigger>
149    </events>
150</SimpleNotification>       
151
152
153
154
[10103]155<!-- Meteoriten, die sich bewegen -->
156   <?lua
[10108]157      for i = 1, 800, 1
[10103]158      do
159      j = math.random()
160      x = math.random()
161      y = math.random()
162      z = math.random()
163   ?>
[10094]164
[10103]165   <MovableEntity   
[10108]166      position = "<?lua print(math.random()* 10000) ?>,<?lua print(math.random() * 10000 + 0) ?>,<?lua print(math.random() * 10000) ?>"
[10103]167      scale = "<?lua print(j * 40)?>"
[10108]168      velocity = "0,0,0"
[10103]169      collisionType = dynamic
170      collisiondamage = 0.5
171      enablecollisiondamage = true
172      active = true
173      visible = true
174   >                 
175          <attached>           
176              <Model mass="<?lua print(j * 1000) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" >
177                 
178              </Model>                         
179          </attached>
180         <collisionShapes>
181             <SphereCollisionShape radius="<?lua print(j * 50) ?>" />
182         </collisionShapes>   
183   </MovableEntity>
[10094]184
[10103]185   <?lua
186      end
187   ?>
[10108]188        <!--****************************In the Asteroid Field***************************-->
189 <!--Enemy team-->
190 
191 <!--*****Spaceship 1******* -->
192       
193  <SpaceShip position="1900,1500,1500" lookat="2050,0,-1000" name="allied" health="500" maxhealth="500" initialhealth="500" >
194          <templates>
195            <Template link=spaceshipassff />
196      </templates>
197       <controller>
198          <WaypointPatrolController alertnessradius=300 team=1 >
199                                <waypoints>
200                                  <Model mesh="cube.mesh" scale=0 position="1000,1500,1500" />
201                  <Model mesh="cube.mesh" scale=0 position="1900,1500,1500" />
202                          <Model mesh="cube.mesh" scale=0 position="1000,1500,1500" />
203                  <Model mesh="cube.mesh" scale=0 position="1900,1500,1500" />
204                          <Model mesh="cube.mesh" scale=0 position="1000,1500,1500" />
205                  <Model mesh="cube.mesh" scale=0 position="1900,1500,1500" />
206                          <Model mesh="cube.mesh" scale=0 position="1000,1500,1500" />
207                 
208              </waypoints>
209                                               
210          </WaypointPatrolController>
[10103]211
[10108]212       </controller>
213         
214  </SpaceShip>
215     
216     
217      <!--*****Spaceship 2 and 3******* -->
218     
219      <SpaceShip position="2900,2500,2500" lookat="2050,0,-1000" name="allied" health="500" maxhealth="500" initialhealth="500" >
220          <templates>
221                <Template link=spaceshippirate />
222          </templates>
223           <controller>
224              <WaypointPatrolController alertnessradius=300 team=1 >
225                                <waypoints>
226                                  <Model mesh="cube.mesh" scale=0 position="2000,2500,2500" />
227                      <Model mesh="cube.mesh" scale=0 position="2900,2500,2500" />
228                                  <Model mesh="cube.mesh" scale=0 position="2000,2500,2500" />
229                      <Model mesh="cube.mesh" scale=0 position="2900,2500,2500" />
230                                  <Model mesh="cube.mesh" scale=0 position="2000,2500,2500" />
231                      <Model mesh="cube.mesh" scale=0 position="2900,2500,2500" />
232                          <Model mesh="cube.mesh" scale=0 position="2000,2500,2500" />
[10103]233                     
[10108]234                  </waypoints>
235                                               
236              </WaypointPatrolController>
[10103]237
[10108]238           </controller>
239         
240      </SpaceShip>
241     
242      <SpaceShip position="2020,2500,2500" lookat="2050,0,-1000" name="allied" health="500" maxhealth="500" initialhealth="500" >
243          <templates>
244                <Template link=spaceshippirate />
245          </templates>
246           <controller>
247              <WaypointPatrolController alertnessradius=300 team=1 >
248                                <waypoints>
249                                 
250                      <Model mesh="cube.mesh" scale=0 position="2920,2500,2500" />
251                                  <Model mesh="cube.mesh" scale=0 position="2020,2500,2500" />
252                      <Model mesh="cube.mesh" scale=0 position="2920,2500,2500" />
253                                  <Model mesh="cube.mesh" scale=0 position="2020,2500,2500" />
254                      <Model mesh="cube.mesh" scale=0 position="2920,2500,2500" />
255                          <Model mesh="cube.mesh" scale=0 position="2020,2500,2500" />
256                                  <Model mesh="cube.mesh" scale=0 position="2920,2500,2500" />
257                  </waypoints>
258                                               
259              </WaypointPatrolController>
[10103]260
[10108]261           </controller>
262         
263      </SpaceShip>
264 
[10103]265        <!--****************************After the Asteroid Field***************************-->
266       
[10108]267   <DistanceTrigger name="afterPortal" position="9500,9500, 9500" target="Pawn"  distance=50 stayActive="true" delay=1/>
268     
[10103]269   
270<!--Creating player's team OK-->
271        <!--Spaceships team 0 (player:team=0)-->
272       
[10108]273        <SpaceShip position="10000,10000,10000" lookat="2050,0,-1000" name="allied" health="500" maxhealth="500" initialhealth="500" >
274          <templates>
[10103]275                  <Template link=spaceshipassff />
276            </templates>
277             <controller>
278                <WaypointPatrolController alertnessradius=2000 team=0 >
[10108]279                    <events>
280                               <activity>
281                                   <EventListener event="afterPortal" />
282                                </activity>
283                           </events>
284                                        <waypoints>
285                                        <Model mesh="cube.mesh" scale=0 position="1000,1500,1500" />
286                        <Model mesh="cube.mesh" scale=0 position="1900,1500,1500" />
287                                        <Model mesh="cube.mesh" scale=0 position="1000,1500,1500" />
288                        <Model mesh="cube.mesh" scale=0 position="1900,1500,1500" />
289                                        <Model mesh="cube.mesh" scale=0 position="1000,1500,1500" />
290                        <Model mesh="cube.mesh" scale=0 position="1900,1500,1500" />
291                                <Model mesh="cube.mesh" scale=0 position="1000,1500,1500" />
292                        <Model mesh="cube.mesh" scale=0 position="1900,1500,1500" />
[10103]293                        <Model mesh="cube.mesh" scale=0 position="2050,0,-1000" />
294                        <Model mesh="cube.mesh" scale=0 position="6050,0,0" />
295                        <Model mesh="cube.mesh" scale=0 position="10050,0,3000" />
296                        <Model mesh="cube.mesh" scale=0 position="3050,0,3000" />
297                        <Model mesh="cube.mesh" scale=0 position="-4050,0,3000" />
298                    </waypoints>
[10108]299                                                       
[10103]300                </WaypointPatrolController>
[10108]301 
[10103]302             </controller>
[10108]303         
[10103]304        </SpaceShip>
305        <!--Second Spaceship team 0 (player: team 0)-->
[10108]306        <SpaceShip position="10100,10000,10100" lookat="2000,0,-950" name="allied" health="500" maxhealth="400" initialhealth="400" >
[10103]307             <templates>
308                  <Template link=spaceshipassff />
309            </templates>
310             <controller>
311                <WaypointPatrolController alertnessradius=2000 team=0 >
[10108]312                                  <events>
313                                          <activity>
314                                     <EventListener event="afterPortal" />
315                          </activity>
316                       </events>
317
[10103]318                    <waypoints>
319                        <Model mesh="cube.mesh" scale=0 position="2000,0,-900" />
320                        <Model mesh="cube.mesh" scale=0 position="6000,0,0" />
321                        <Model mesh="cube.mesh" scale=0 position="10000,0,3100" />
322                        <Model mesh="cube.mesh" scale=0 position="3000,0,3100" />
323                        <Model mesh="cube.mesh" scale=0 position="-4000,0,3100"/>
324                    </waypoints>
325                </WaypointPatrolController>
326             </controller>
327        </SpaceShip>
328        <!--third Spaceship team 0 (player: team 0)-->
[10108]329        <SpaceShip position="9900,10000,9900" lookat="2000,0,-1050" name="allied" health="500" maxhealth="400" initialhealth="400" >
[10103]330             <templates>
331                  <Template link=spaceshipassff />
332            </templates>
333             <controller>
334                <WaypointPatrolController alertnessradius=2000 team=0 >
[10108]335                          <events>
336                        <activity>
337                             <EventListener event="afterPortal" />
338                         </activity>
339                  </events>
[10103]340                    <waypoints>
341                        <Model mesh="cube.mesh" scale=0 position="2000,0,-1100" />
342                        <Model mesh="cube.mesh" scale=0 position="6000,0,-100" />
343                        <Model mesh="cube.mesh" scale=0 position="10000,0,2900" />
344                        <Model mesh="cube.mesh" scale=0 position="3000,0,2900" />
345                        <Model mesh="cube.mesh" scale=0 position="-4000,0,2900" />
346                    </waypoints>
347                </WaypointPatrolController>
348             </controller>
349        </SpaceShip>
350<!--Creating player's team END  -->
351
352       
353
354
355                 <!------------Quest---------->
356
357
358 <QuestEffectBeacon times=1>
359            <effects>
360                <AddQuest questId="quest0" />
361                   <AddQuestHint hintId ="quest1hint2" />
362                <AddQuestHint hintId ="quest1hint3" />
363            </effects>
364            <events>
365                <execute>
366                    <EventListener event=spawntrigger />
367                </execute>
368            </events>
369        </QuestEffectBeacon>
370   
371   
372
373<Script code="showGUI NotificationLayer false true" needsGraphics="true" />
374
375<GlobalQuest id="quest0">
[10108]376                <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 ;)" />
[10103]377        <hints>
378                <QuestHint id="quest1hint0">
379                    <QuestDescription title="The super Hint." description="Be proud of yourself." />
380                </QuestHint>
381    </hints>             
382</GlobalQuest>
383               
384               
385               
386        <DistanceTrigger name=QuestTrigger0 position="0,0,0" distance=10 target="Pawn" />
387
388
389
390 <QuestEffectBeacon times=1>
391            <effects>
392                <AddQuest questId="quest0" />
393                   <AddQuestHint hintId ="quest1hint2" />
394                <AddQuestHint hintId ="quest1hint3" />
395            </effects>
396            <events>
397                <execute>
398                    <EventListener event=QuestTrigger0 />
399                </execute>
400            </events>
401        </QuestEffectBeacon>
402   
403
404
405
406
407
408   
409   
[10094]410       
411   
412   
413   
414  </Scene>
415</Level>
Note: See TracBrowser for help on using the repository browser.