Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/levelKaan/data/levels/Level_01.oxw @ 9808

Last change on this file since 9808 was 9807, checked in by skaan, 11 years ago

Update meteorids, endofgame

File size: 17.8 KB
Line 
1<!-- -->
2
3<LevelInfo
4         name = "Level_01"
5         description = "A level with absolutely nothing in it."
6         tags = "mission"
7         screenshot = "emptylevel.png"
8/>
9
10<?lua
11  include("stats.oxo")
12  include("HUDTemplates3.oxo")
13  include("templates/lodInformation.oxt")
14?>
15
16<?lua
17  include("templates/spaceshipAssff.oxt")
18  include("templates/spaceshipAssff2.oxt")
19  include("templates/spaceshipPirate.oxt")
20  include("templates/spaceshipEscort.oxt")
21  include("templates/spaceshipCollateralDamage.oxt")
22?>
23
24<Level gametype="Mission">
25
26  <templates>
27    <Template link=lodtemplate_default />
28  </templates>
29  <?lua include("includes/notifications.oxi") ?>
30
31  <NotificationQueueCEGUI
32    name="narrative"
33    targets="simpleNotification"
34    size=3
35    displayTime=3.9
36    position="0.2, 0, 0.1, 0"
37    fontSize="23"
38    fontColor="0.3, 1, 0.2, 0.8"
39    alignment="HorzCentred"
40    displaySize="0.6, 0, 0, 0"
41    />
42
43  <Scene
44    ambientlight = "0.5, 0.5, 0.5"
45    skybox       = "Orxonox/Starbox"
46    hasPhysics   = true
47
48  >
49
50   <?lua
51      include("includes/pickups.oxi")
52   ?>
53
54   <?lua
55    dofile("includes/CuboidSpaceStation.lua")
56   ?>
57
58
59   <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"/>       
60
61   <TeamSpawnPoint team=0 position="-4000,2500,4100" direction="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipcollateraldamage/> <!--spaceshipescort-->
62
63
64<!----------------------------------------------------------------------------------------------------->
65<!-------------------------------------- PART ZERO: Docking on  --------------------------------------->
66<!----------------------------------------------------------------------------------------------------->
67
68<!-- OBJECTS IN THIS PART -->
69
70<!-- @Objects: HYDROGEN FARMER & DOCKING -->
71   
72<!-- @Objects: HYDROGEN FARMER & DOCKING -->
73   <SpaceShip
74        team      = 0
75        position  = "-4000,4100,4000"
76        roll      = 90   yaw=0  pitch=20
77        mass      = 10000
78        health    = 100000 initialhealth=100000 maxhealth="100000"
79        name      = "HydroFarmer"
80        radarname = "Hydrogen Farmer" >
81      <attached>
82        <!-- Docking -->
83         <DistanceTriggerBeacon name="bcnDestroyer" />
84         <DockingTarget name="destroyer" />
85
86        <Model mesh="HydroHarvester.mesh" mass=10 position="0,0,0" scale=50 />
87   <!-- <Model mesh="cube.mesh" mass=10 position="-560,0,0" scale3D="115,100,245"  />
88        <Model mesh="cube.mesh" mass=10 position="290,0,-480" scale3D="115,100,245" yaw=-120 />
89        <Model mesh="cube.mesh" mass=10 position="290,0,480" scale3D="115,100,245" yaw=-240 />
90        <Model mesh="cube.mesh" mass=10 position="-280,0,0" scale3D="163,50,50" />
91        <Model mesh="cube.mesh" mass=10 position="140,0,-240" scale3D="163,50,50"  yaw=-120/>
92        <Model mesh="cube.mesh" mass=10 position="140,0,240" scale3D="163,50,50" yaw=-240/>
93        <Model mesh="cube.mesh" mass=10 position="0,530,0" scale3D="172,52,298" />
94        <Model mesh="cube.mesh" mass=10 position="0,530,0" scale3D="172,52,298" yaw=-120/>
95        <Model mesh="cube.mesh" mass=10 position="0,530,0" scale3D="172,52,298" yaw=-240/>
96        <Model mesh="cube.mesh" mass=10 position="0,400,0" scale3D="43,110,26" yaw=-30 />
97        <Model mesh="cube.mesh" mass=10 position="-200,100,0" scale3D="26,50,43" />
98        <Model mesh="cube.mesh" mass=10 position="100,100,-173" scale3D="43,50,26" yaw=-30/>
99        <Model mesh="cube.mesh" mass=10 position="100,100,173" scale3D="43,50,26" yaw=30/>
100        <Model mesh="cube.mesh" mass=10 position="-100,264,0" scale3D="26,105,43" roll=-49/>
101        <Model mesh="cube.mesh" mass=10 position="50,264,-87" scale3D="26,105,43" roll=-49 yaw=-120/>
102        <Model mesh="cube.mesh" mass=10 position="50,264,87" scale3D="26,105,43" roll=-49 yaw=-240/>     -->
103      </attached>
104      <collisionShapes>
105        <BoxCollisionShape  position="-560,0,0" halfExtents="115,100,245" /><!-- Three lower boxes -->
106        <BoxCollisionShape  position="290,0,-480" halfExtents="115,100,245" yaw=-120 />
107        <BoxCollisionShape  position="290,0,480" halfExtents="115,100,245" yaw=-240 />
108        <BoxCollisionShape  position="-280,0,0" halfExtents="163,50,50" /><!-- Three lower connections -->
109        <BoxCollisionShape  position="140,0,-240" halfExtents="163,50,50" yaw=-120 />
110        <BoxCollisionShape  position="140,0,240" halfExtents="163,50,50" yaw=-240 />
111        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" /><!-- Upper Tower -->
112        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-120 />
113        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-240 />
114        <BoxCollisionShape  position="0,400,0" halfExtents="43,110,26" yaw=-30 /><!-- Middle one-->
115        <BoxCollisionShape  position="-200,100,0" halfExtents="26,50,43" /><!--Three lower legs -->
116        <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=-30 />
117        <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=30 />
118        <BoxCollisionShape  position="-100,264,0" halfExtents="26,105,43" roll=-49 /><!--Three upper legs -->
119        <BoxCollisionShape  position="50,264,-87" halfExtents="26,105,43" roll=-49 yaw=-120 />
120        <BoxCollisionShape  position="50,264,87" halfExtents="26,105,43" roll=-49 yaw=-240 />
121      </collisionShapes>
122    </SpaceShip>
123
124    <Dock position="-4000,4000,4000" roll=90 yaw=180 >
125        <animations>
126            <MoveToDockingTarget target="destroyer" />
127        </animations>
128        <effects>
129            <DockToShip target="spaceShip" />
130        </effects>
131        <events>
132            <execute>
133                <EventListener event="dockMe" />
134            </execute>
135            <activity>
136                <EventListener event=notGameEnd />
137            </activity>
138        </events>
139        <attached>
140            <DistanceTrigger position="10,-202, -42" distance="800" target="Pawn"
141                beaconMode="exclude" targetname="bcnDestroyer" name="dockMe"
142            />
143        </attached>
144
145    </Dock>
146
147<!--@Objects: SpaceCruiser as docking target -->
148    <SpaceShip
149        template            = "spaceshipcollateraldamage"
150        team                = "0"
151        position            = "-4000,4800,4000"
152        orientation         = "-0.14, 0.68, 0.68, 0.223"
153        health              = "400"
154        initialhealth       = "400"
155        maxhealth           = "500"
156        shieldhealth        = "80"
157        initialshieldhealth = "80"
158        maxshieldhealth     = "120"
159        shieldabsorption    = "0.8"
160        reloadrate          = "1"
161        reloadwaittime      = "1"
162        name                = "cruiser"
163        radarname           = "Spacecruiser" >
164      <attached>
165        <DockingTarget name="spaceShip" />
166      </attached>
167    </SpaceShip>
168
169
170
171<MovableEntity position="-500,500, 500">
172    <attached>
173        <Billboard position="0,0,0" material="Examples/Flare" colour="1, 0, 0" scale=0.5/>
174    </attached>
175</MovableEntity>   
176
177  <DistanceTrigger name="flying1" position="0,0,0" target="Pawn" distance=100 stayActive="true" delay=4/>
178    <SimpleNotification message="Hey Rookie.. We got a new mission for you.">
179        <events>
180            <trigger>
181                <EventListener event="flying1" />
182            </trigger>
183        </events>
184    </SimpleNotification>
185
186  <DistanceTrigger name="flying2" position="0,0,0" target="Pawn" distance=10 stayActive="true" delay=8/>
187    <SimpleNotification message="Go to the main station for more information.">
188        <events>
189            <trigger>
190                <EventListener event="flying2" />
191            </trigger>
192        </events>
193    </SimpleNotification>
194
195 <DistanceTrigger name="flying3" position="-500,500, 500" target="Pawn" distance=100 stayActive="true" delay=3/>
196    <SimpleNotification message="Our Commander got kidnapped in District 69">
197        <events>
198            <trigger>
199                <EventListener event="flying3" />
200            </trigger>
201        </events>
202    </SimpleNotification>
203
204 <DistanceTrigger name="flying4" position="-500,500, 500" target="Pawn" distance=100 stayActive="true" delay=7/>
205    <SimpleNotification message="We need you to rescue him.">
206        <events>
207            <trigger>
208                <EventListener event="flying4" />
209            </trigger>
210        </events>
211    </SimpleNotification>
212
213<DistanceTrigger name="flying5" position="-500,500,500" target="Pawn" distance=100 stayActive="true" delay=11/>
214    <SimpleNotification message="Dock on the station to get a better ship.">
215        <events>
216            <trigger>
217                <EventListener event="flying5" />
218            </trigger>
219        </events>
220    </SimpleNotification>
221
222<DistanceTrigger name="flying6" position="-4000,2800,4000" target="Pawn" distance=100 stayActive="true" delay=1/>
223    <SimpleNotification message="Enemy behind the portal!">
224        <events>
225            <trigger>
226                <EventListener event="flying6" />
227            </trigger>
228        </events>
229    </SimpleNotification>
230
231<DistanceTrigger name="flying7" position="-4000,2800,4000" target="Pawn" distance=100 stayActive="true" delay=4/>
232    <SimpleNotification message="Kill it by pressing T!">
233        <events>
234            <trigger>
235                <EventListener event="flying7" />
236            </trigger>
237        </events>
238    </SimpleNotification>
239
240<!----------------------------------------------------------------------------------------------------->
241<!-------------------------------- PART ONE: Passing throug wormhole  --------------------------------->
242<!----------------------------------------------------------------------------------------------------->
243
244
245<!------------------------------------- OBJECTS IN THIS PART ------------------------------------------>
246
247   <Model position="-4000,  2800, 4000" yaw="90" pitch="-90" roll="0" scale="3" mesh="satellite.mesh" />
248
249   <Template name=PortalDefault>
250      <PortalEndPoint>
251         <attached>
252            <Model mesh="Spacegate.mesh" yaw="90"/>
253         </attached>
254      </PortalEndPoint>
255   </Template>
256
257   <PortalEndPoint position="-4000,2500,4000" id="1" distance="40" target="MobileEntity" design="PortalDefault" reenterDelay="0"/>
258   <PortalEndPoint position="0,95000,0" id="2" distance="40" target="MobileEntity" design="PortalDefault" reenterDelay="0"/>
259   <PortalLink fromID="1" toID="2" />
260   <!--<PortalLink fromID="2" toID="1" />-->
261
262  <!-- <SpaceBoundaries warnDistance="1" maxDistance="500" showDistance="300" healthDecrease="0.1" position="0,97100,0"/> -->
263
264
265<!-- Meteoriten, die sich bewegen -->
266<?lua
267      for i = 1, 400, 1
268      do
269      j = math.random()
270   ?>
271
272   <MovableEntity       
273      position = "<?lua print(math.random()* 2000-1000) ?>,<?lua print(math.random() * 10000 + 95000) ?>,<?lua print(math.random() * 2000-1000) ?>"
274      scale = "<?lua print(j * 40)?>"
275      velocity = "0, -20, 0"
276      collisionType = dynamic
277      collisiondamage = 0.1
278      enablecollisiondamage = true
279   >
280     <!--
281      linearDamping = 0.8
282      angularDamping = 0
283       -->
284
285      <events>
286         <activity>
287            <EventListener event="start" />
288         </activity>
289      </events>
290      <attached>
291         <Model mass="<?lua print(j * 1000) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
292         <ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
293      </attached>
294         <collisionShapes>
295            <SphereCollisionShape radius="<?lua print(j * 50) ?>" />
296         </collisionShapes>   -->
297   </MovableEntity>
298
299   <?lua
300      end
301   ?>
302
303   <DistanceTrigger name="start" position="0,95000,0" target="SpaceShip" beaconMode="exclude" targetname="SpaceShipSupport" distance=20 stayActive="true" delay=0 />
304
305<DistanceTrigger name="portal2" position="-4000,4000,4000" target="Pawn" distance=50 stayActive="true" delay=3/>
306    <SimpleNotification message="Now go to the satel">
307        <events>
308            <trigger>
309                <EventListener event="portal2" />
310            </trigger>
311        </events>
312    </SimpleNotification>
313
314<DistanceTrigger name="portal3" position="0,95000,0" target="Pawn" distance=50 stayActive="true" delay=3/>
315    <SimpleNotification message="Reach the wormhole to District 69">
316        <events>
317            <trigger>
318                <EventListener event="portal3" />
319            </trigger>
320        </events>
321    </SimpleNotification>
322
323<!----------------------------------------------------------------------------------------------------->
324<!--------------------------- PART TWO: Passing throug area with meteorits ---------------------------->
325<!----------------------------------------------------------------------------------------------------->
326
327<?lua for i=0,2,1 do
328?>
329
330   <SpaceShip
331      position="-50+i*50, 94000, 4000"
332   >
333      <templates>
334         <Template link=spaceshipcollateraldamage /> <!--spaceshipTransporter spaceshippirate-->
335      </templates>
336      <controller>
337         <AIController team=0>
338          <events>
339                    <activity>
340                        <EventListener event="start" />
341                     </activity>
342            </events>
343         </AIController>
344      </controller>
345      <attached>
346         <DistanceTriggerBeacon name="SpaceShipSupport" />
347                  <DistanceTriggerBeacon name="bcnDestroyer" />
348      </attached>
349   </SpaceShip>
350
351<?lua end ?> 
352
353<Script code="humancontroller toggleFormationFlight" onLoad="false">
354   <events>
355        <trigger>
356                <EventListener event="start" />
357        </trigger>
358   </events>
359</Script>
360
361 <Script code="formationcontroller formationflight true" onLoad="false">
362        <events>
363            <trigger>
364                <EventListener event=start />
365            </trigger>
366        </events>
367    </Script> <!-- !!! activates formation behaviour !!! -->
368
369    <Script code="artificialcontroller setbotlevel 5" onLoad="false">
370        <events>
371            <trigger>
372                <EventListener event=start />
373            </trigger>
374        </events>
375    </Script>
376   
377   <SpaceShip
378        team      = 0
379        position  = "0,100000,0"
380        roll      = 0   yaw=90  pitch=0
381        mass      = 10000
382        health    = 100000 initialhealth=100000 maxhealth="100000"
383        name      = "wormhole"
384        radarname = "Wormhole to District 69" >
385      <attached>
386        <!-- Docking -->
387         <DistanceTriggerBeacon name="bcnDestroyer" />
388         <Billboard position="0,0,0" material="Portals/Default" />
389
390        <Model mesh="HydroHarvester.mesh" mass=10 position="0,0,0" scale=50 />
391   <!-- <Model mesh="cube.mesh" mass=10 position="-560,0,0" scale3D="115,100,245"  />
392        <Model mesh="cube.mesh" mass=10 position="290,0,-480" scale3D="115,100,245" yaw=-120 />
393        <Model mesh="cube.mesh" mass=10 position="290,0,480" scale3D="115,100,245" yaw=-240 />
394        <Model mesh="cube.mesh" mass=10 position="-280,0,0" scale3D="163,50,50" />
395        <Model mesh="cube.mesh" mass=10 position="140,0,-240" scale3D="163,50,50"  yaw=-120/>
396        <Model mesh="cube.mesh" mass=10 position="140,0,240" scale3D="163,50,50" yaw=-240/>
397        <Model mesh="cube.mesh" mass=10 position="0,530,0" scale3D="172,52,298" />
398        <Model mesh="cube.mesh" mass=10 position="0,530,0" scale3D="172,52,298" yaw=-120/>
399        <Model mesh="cube.mesh" mass=10 position="0,530,0" scale3D="172,52,298" yaw=-240/>
400        <Model mesh="cube.mesh" mass=10 position="0,400,0" scale3D="43,110,26" yaw=-30 />
401        <Model mesh="cube.mesh" mass=10 position="-200,100,0" scale3D="26,50,43" />
402        <Model mesh="cube.mesh" mass=10 position="100,100,-173" scale3D="43,50,26" yaw=-30/>
403        <Model mesh="cube.mesh" mass=10 position="100,100,173" scale3D="43,50,26" yaw=30/>
404        <Model mesh="cube.mesh" mass=10 position="-100,264,0" scale3D="26,105,43" roll=-49/>
405        <Model mesh="cube.mesh" mass=10 position="50,264,-87" scale3D="26,105,43" roll=-49 yaw=-120/>
406        <Model mesh="cube.mesh" mass=10 position="50,264,87" scale3D="26,105,43" roll=-49 yaw=-240/>     -->
407      </attached>
408      <collisionShapes>
409        <BoxCollisionShape  position="-560,0,0" halfExtents="115,100,245" /><!-- Three lower boxes -->
410        <BoxCollisionShape  position="290,0,-480" halfExtents="115,100,245" yaw=-120 />
411        <BoxCollisionShape  position="290,0,480" halfExtents="115,100,245" yaw=-240 />
412        <BoxCollisionShape  position="-280,0,0" halfExtents="163,50,50" /><!-- Three lower connections -->
413        <BoxCollisionShape  position="140,0,-240" halfExtents="163,50,50" yaw=-120 />
414        <BoxCollisionShape  position="140,0,240" halfExtents="163,50,50" yaw=-240 />
415        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" /><!-- Upper Tower -->
416        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-120 />
417        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-240 />
418        <BoxCollisionShape  position="0,400,0" halfExtents="43,110,26" yaw=-30 /><!-- Middle one-->
419        <BoxCollisionShape  position="-200,100,0" halfExtents="26,50,43" /><!--Three lower legs -->
420        <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=-30 />
421        <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=30 />
422        <BoxCollisionShape  position="-100,264,0" halfExtents="26,105,43" roll=-49 /><!--Three upper legs -->
423        <BoxCollisionShape  position="50,264,-87" halfExtents="26,105,43" roll=-49 yaw=-120 />
424        <BoxCollisionShape  position="50,264,87" halfExtents="26,105,43" roll=-49 yaw=-240 />
425      </collisionShapes>
426    </SpaceShip>
427
428   <DistanceTrigger name="endOfLevel" position="0,100000,0" target="SpaceShip" beaconMode="exclude" targetname="bcnDestroyer" distance=50 stayActive="true" delay=3/>
429    <SimpleNotification message="End of game">
430        <events>
431            <trigger>
432                <EventListener event="portal3" />
433            </trigger>
434        </events>
435    </SimpleNotification>
436
437   <Script code="Mission endMission true" onLoad="false">
438        <events>
439            <trigger>
440                <EventListener event=endOfLevel />
441            </trigger>
442        </events>
443    </Script>
444
445  </Scene>
446</Level>
447
Note: See TracBrowser for help on using the repository browser.