Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/presentationFS11.oxw @ 8883

Last change on this file since 8883 was 8706, checked in by dafrick, 13 years ago

Merging presentation branch back into trunk.
There are many new features and also a lot of other changes and bugfixes, if you want to know, digg through the svn log.
Not everything is yet working as it should, but it should be fairly stable. If you habe any bug reports, just send me an email.

  • Property svn:eol-style set to native
File size: 16.0 KB
Line 
1<LevelInfo
2 name = "Presentation FS11"
3 description = "Presentation level spring semester '11"
4 tags = "test"
5/>
6
7<?lua
8  include("stats.oxo")
9  include("HUDTemplates3.oxo")
10  include("templates/lodInformation.oxt")
11?>
12
13<?lua
14  include("templates/spaceshipAssff.oxt")
15  include("templates/spaceshipAssff2.oxt")
16  include("templates/spaceshipPirate.oxt")
17?>
18
19<?lua
20include("templates/pickupRepresentationTemplates.oxt")
21?>
22
23<Level
24 name         = "Sample"
25 description  = "Just a few tests"
26>
27  <templates>
28    <Template link=lodtemplate_default />
29  </templates>
30  <?lua include("includes/notifications.oxi") ?>
31
32  <NotificationQueueCEGUI
33    name="narrative"
34    targets="simpleNotification"
35    size=1
36    displayTime=30
37    position="0.2, 0, 0.1, 0"
38    fontSize="24"
39    fontColor="0.3, 1, 0.2, 0.8"
40    alignment="HorzCentred"
41    displaySize="0.6, 0, 0, 0"
42    />
43
44  <Scene
45    ambientlight = "0.8, 0.8, 0.8"
46    skybox       = "Orxonox/skyboxempty"
47  >
48
49    <?lua
50      include("includes/pickups.oxi")
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    <!-- SOUND -->
56    <WorldAmbientSound source="Earth.ogg" looping="true" playOnLoad="true" />
57    <WorldAmbientSound source="Mars.ogg" looping="true">
58        <events>
59            <activity>
60                <DistanceTrigger position="-72369,803,2" distance=1700 target="Camera" />
61            </activity>
62        </events>
63    </WorldAmbientSound>
64    <WorldAmbientSound source="Jupiter.ogg" looping="true">
65        <events>
66            <activity>
67                <DistanceTrigger position="-73450,5067,-351" distance=800 target="Camera" />
68            </activity>
69        </events>
70    </WorldAmbientSound>
71
72    <!-- EARTH ORBIT -->
73
74    <DistanceTrigger name="spawntrigger" position="0,0,0" target="Pawn" distance=10 stayActive="true" />
75    <DistanceTrigger name="spawndelaytrigger1" position="0,0,0" target="Pawn" distance=10 stayActive="true" delay=1 />
76    <DistanceTrigger name="spawndelaytrigger2" position="0,0,0" target="Pawn" distance=10 stayActive="true" delay=7 />
77    <DistanceTrigger name="spawndelaytrigger3" position="0,0,0" target="Pawn" distance=10 stayActive="true" delay=12 />
78    <DistanceTrigger name="spawndelaytrigger4" position="0,0,0" target="Pawn" distance=10 stayActive="true" delay=15 />
79    <DistanceTrigger name="spawndelaytrigger5" position="0,0,0" target="Pawn" distance=10 stayActive="true" delay=25 />
80    <DistanceTrigger name="spawndelaytrigger6" position="0,0,0" target="Pawn" distance=10 stayActive="true" delay=35 />
81    <DistanceTrigger name="spawndelaytrigger7" position="0,0,0" target="Pawn" distance=10 stayActive="true" delay=40 />
82
83    <SpawnPoint position="0,0,0" lookat="-2,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff>
84        <events>
85            <activity>
86                <EventTrigger invert="true">
87                    <events>
88                        <trigger>
89                            <EventListener event="spawndelaytrigger1" />
90                        </trigger>
91                    </events>
92                </EventTrigger>
93            </activity>
94        </events>
95    </SpawnPoint>
96
97    <SimpleNotification message="Welcome to Earth Orbit" >
98        <events>
99            <trigger>
100                <EventListener event=spawntrigger />
101            </trigger>
102        </events>
103    </SimpleNotification>
104    <SimpleNotification message="Turn right to witness an explosion" >
105        <events>
106            <trigger>
107                <EventListener event=spawndelaytrigger1 />
108            </trigger>
109        </events>
110    </SimpleNotification>
111
112    <!-- EARTH -->
113    <Planet
114      position="80500,0,0"
115      scale="63000"
116      collisionType="dynamic"
117      linearDamping="0.8"
118      angularDamping="0"
119      mass="5.9e21"
120      pitch="-90"
121      yaw="50"
122      mesh="planets/earth.mesh"
123      atmosphere="atmosphere1"
124      rotationaxis="0,1,0"
125      rotationrate="0.2"
126      atmospheresize="80.0f"
127      imagesize="1024.0f"
128      collisiondamage = 2
129      enablecollisiondamage = true
130    >
131      <attached>
132        <ForceField position="0,0,0" mode="newtonianGravity" diameter="140000" massDiameter="126000" mass="5.9e21" />
133      </attached>
134      <collisionShapes>
135        <SphereCollisionShape radius="63000" position="0,0,0" />
136      </collisionShapes>
137    </Planet>
138
139    <!-- PARTICLE EFFECT -->
140
141    <ParticleSpawner position="-50,50,-125" source="Orxonox/RingExp" autostart="false" lifetime=500 loop=1 startdelay=2.5>
142        <events>
143            <spawn>
144                <EventListener event=spawndelaytrigger1 />
145            </spawn>
146        </events>
147    </ParticleSpawner>
148    <ParticleSpawner position="-50,50,-125" source="Orxonox/RingExp2" autostart="false" lifetime=500 loop=1 startdelay=2>
149        <events>
150            <spawn>
151                <EventListener event=spawndelaytrigger1 />
152            </spawn>
153        </events>
154    </ParticleSpawner>
155    <ParticleSpawner position="-50,50,-125" source="Orxonox/RingExp3" autostart="false" lifetime=500 loop=1 startdelay=2>
156        <events>
157            <spawn>
158                <EventListener event=spawndelaytrigger1 />
159            </spawn>
160        </events>
161    </ParticleSpawner>
162    <StaticEntity collisionType = "static" position = "-50,50,-125" scale=1 >
163      <attached>
164        <Model position="0,0,0" scale="2" mesh="ast1.mesh" />
165      </attached>
166      <collisionShapes>
167        <SphereCollisionShape radius="8" />
168      </collisionShapes>
169    </StaticEntity>
170       
171    <SimpleNotification message="A particle effect by Tibor" >
172        <events>
173            <trigger>
174                <EventListener event=spawndelaytrigger2 />
175            </trigger>
176        </events>
177    </SimpleNotification>
178
179    <!-- ENEMIES 1st ROUND -->
180
181    <SimpleNotification message="Enemies attacking" >
182        <events>
183            <trigger>
184                <EventListener event=spawndelaytrigger3 />
185            </trigger>
186        </events>
187    </SimpleNotification>
188
189    <Script code="addBots 3" onLoad="false">
190        <events>
191            <trigger>
192                <EventListener event=spawndelaytrigger3 />
193            </trigger>
194        </events>
195    </Script>
196
197    <SpawnPoint position="100,0,0" lookat="-2,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff active="false" >
198        <events>
199            <activity>
200                <EventListener event=spawnpointtrigger />
201            </activity>
202        </events>
203    </SpawnPoint>
204
205    <SpawnPoint position="0,-100,0" lookat="-2,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff active="false" >
206        <events>
207            <activity>
208                <EventListener event=spawnpointtrigger />
209            </activity>
210        </events>
211    </SpawnPoint>
212
213    <SpawnPoint position="0,0,100" lookat="-2,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff active="false" >
214        <events>
215            <activity>
216                <EventListener event=spawnpointtrigger />
217            </activity>
218        </events>
219    </SpawnPoint>
220
221    <Trigger name="spawnpointtrigger" mode="xor" invert="true" >
222        <EventTrigger>
223            <events>
224                <trigger>
225                    <EventListener event=spawndelaytrigger1 />
226                </trigger>
227            </events>
228        </EventTrigger>
229        <EventTrigger invert="true">
230            <events>
231                <trigger>
232                    <EventListener event=portaltrigger />
233                </trigger>
234            </events>
235        </EventTrigger>
236    </Trigger>
237
238    <!-- SPACE BOUNDARY -->
239
240    <SpaceBoundaries warnDistance="1" maxDistance="400" showDistance="300" healthDecrease="0.1" position="-90000,0,0"/>
241    <SpaceBoundaries warnDistance="1" maxDistance="400" showDistance="300" healthDecrease="0.1" position="0,10000,0"/>
242    <SpaceBoundaries warnDistance="1" maxDistance="450" showDistance="300" healthDecrease="0.1" position="0,0,0"/>
243    <SpaceBoundaries warnDistance="1" maxDistance="400" showDistance="300" healthDecrease="0.1" position="-30000,0,0"/>
244
245    <SimpleNotification message="Notice the shields by Simon" >
246        <events>
247            <trigger>
248                <EventListener event=spawndelaytrigger4 />
249            </trigger>
250        </events>
251    </SimpleNotification>
252
253    <SimpleNotification message="and space boundaries by Maurus" >
254        <events>
255            <trigger>
256                <EventListener event=spawndelaytrigger5 />
257            </trigger>
258        </events>
259    </SimpleNotification>
260
261    <SimpleNotification message="Let's get out of here" >
262        <events>
263            <trigger>
264                <EventListener event=spawndelaytrigger6 />
265            </trigger>
266        </events>
267    </SimpleNotification>
268
269    <Script code="killBots" onLoad="false">
270        <events>
271            <trigger>
272                <EventListener event=spawndelaytrigger6 />
273            </trigger>
274        </events>
275    </Script>
276
277    <SimpleNotification message="Boost enhancement by Dominik" >
278        <events>
279            <trigger>
280                <EventListener event=spawndelaytrigger7 />
281            </trigger>
282        </events>
283    </SimpleNotification>
284   
285    <!-- PORTALS -->
286
287    <Template name=PortalDefault>
288        <PortalEndPoint>
289            <attached>
290                <Billboard material="Portals/Default" />
291            </attached>
292        </PortalEndPoint>
293    </Template>
294
295    <PortalEndPoint position="-350,0,0" id="3" distance="40" target="MobileEntity" design="PortalDefault" active="false">
296        <events>
297            <activity>
298                <EventListener event=spawndelaytrigger6 />
299            </activity>
300        </events>
301    </PortalEndPoint>
302    <PortalEndPoint position="-72000,0,0" id="4" distance="40" target="MobileEntity" design="PortalDefault" />
303    <PortalLink fromID="3" toID="4" />
304    <PortalLink fromID="4" toID="3" />
305
306    <DistanceTrigger name="portaltrigger" position="-72000,0,0" target="Pawn" distance=10 stayActive="true" />
307    <DistanceTrigger name="portaldelaytrigger1" position="-72000,0,0" target="Pawn" distance=10 stayActive="true" delay=5 />
308    <DistanceTrigger name="portaldelaytrigger2" position="-72000,0,0" target="Pawn" distance=10 stayActive="true" delay=10 />
309    <DistanceTrigger name="portaldelaytrigger3" position="-72000,0,0" target="Pawn" distance=10 stayActive="true" delay=15 />
310    <DistanceTrigger name="portaldelaytrigger4" position="-72000,0,0" target="Pawn" distance=10 stayActive="true" delay=17 />
311
312    <SimpleNotification message="Welcome to Moon Orbit" >
313        <events>
314            <trigger>
315                <EventListener event=portaltrigger />
316            </trigger>
317        </events>
318    </SimpleNotification>
319
320    <SimpleNotification message="Portals by Andreas" >
321        <events>
322            <trigger>
323                <EventListener event=portaldelaytrigger1 />
324            </trigger>
325        </events>
326    </SimpleNotification>
327
328    <!-- MOON AREA -->
329   
330    <!-- MOON -->
331    <Planet
332      position="-80000,0,0"
333      scale="4000"
334      collisionType="dynamic"
335      linearDamping="0.8"
336      angularDamping="0"
337      mass="7.36e19"
338      pitch="0"
339      mesh="planets/moon.mesh"
340      atmosphere="atmosphere1"
341      rotationaxis="0,1,0"
342      rotationrate="0.2"
343      atmospheresize="0.0f"
344      imagesize="1024.0f"
345      collisiondamage = 2
346      enablecollisiondamage = true
347    >
348      <attached>
349        <ForceField position="0,0,0" mode="newtonianGravity" diameter="40000" massDiameter="34740" mass="7.36e19" />
350      </attached>
351      <collisionShapes>
352        <SphereCollisionShape radius="4000" position="0,0,0" />
353      </collisionShapes>
354    </Planet>
355
356    <SimpleNotification message="Hydrogen farmer/space station by Hans" >
357        <events>
358            <trigger>
359                <EventListener event=portaldelaytrigger2 />
360            </trigger>
361        </events>
362    </SimpleNotification>
363
364    <!-- HYDROGEN FARMER & DOCKING -->
365    <SpaceShip position="-74000,2500,0" roll=90 yaw=180 pitch=20 mass=10000 health=100000 >
366      <attached>
367        <!-- Docking -->
368        <DistanceTriggerBeacon name="bcnDestroyer" />
369        <DockingTarget name="destroyer" />
370
371        <Model mesh="HydroHarvester.mesh" mass=10 position="0,0,0" scale=100 />
372        <!-- <Model mesh="cube.mesh" mass=10 position="-1120,0,0" scale3D="230,200,490"  /> -->
373        <!-- <Model mesh="cube.mesh" mass=10 position="580,0,-960" scale3D="230,200,490" yaw=-120 /> -->
374        <!-- <Model mesh="cube.mesh" mass=10 position="580,0,960" scale3D="230,200,490" yaw=-240 /> -->
375        <!-- <Model mesh="cube.mesh" mass=10 position="0,0,0" scale3D="600,200,100" /> -->
376      </attached>
377      <collisionShapes>
378        <BoxCollisionShape  position="-1120,0,0" halfExtents="230,200,490" />
379        <BoxCollisionShape  position="580,0,-960" halfExtents="230,200,490" yaw=-120 />
380        <BoxCollisionShape  position="580,0,960" halfExtents="230,200,490" yaw=-240 />
381      </collisionShapes>
382    </SpaceShip>
383
384    <Dock position="-73942, 1288, -255" roll=90 yaw=180 >
385        <animations>
386            <MoveToDockingTarget target="destroyer" />
387        </animations>
388        <effects>
389            <DockToShip target="spaceShip" />
390        </effects>
391        <events>
392            <execute>
393                <EventListener event="dockMe" />
394            </execute>
395        </events>
396        <attached>
397            <DistanceTrigger position="10,-202, -42" distance="800" target="Pawn"
398                beaconMode="exclude" targetname="bcnDestroyer" name="dockMe"
399            />
400        </attached>
401    </Dock>
402
403    <SpaceShip template="spaceshipassff2" position="-73915,3786,67" orientation="-0.14045, 0.68254, 0.68144, 0.223774" >
404      <attached>
405        <DockingTarget name="spaceShip" />
406      </attached>
407    </SpaceShip>
408
409    <!-- PICKUPS -->
410    <SimpleNotification message="Oh, what have we here?" >
411        <events>
412            <trigger>
413                <EventListener event=portaldelaytrigger3 />
414            </trigger>
415        </events>
416    </SimpleNotification>
417
418    <SimpleNotification message="Shrink pickup by Sandro" >
419        <events>
420            <trigger>
421                <EventListener event=portaldelaytrigger4 />
422            </trigger>
423        </events>
424    </SimpleNotification>
425
426    <PickupSpawner position="-72487,420,-63" respawnTime="10" triggerDistance="20" maxSpawnedItems="5" active="false">
427      <pickup>
428        <ShrinkPickup template ="smallshrinkpickup"/>
429      </pickup>
430      <events>
431        <activity>
432            <EventListener event=portaldelaytrigger3 />
433        </activity>
434      </events>
435      <attached>
436        <ParticleSpawner position="0,0,0" source="Orxonox/Shield" autostart="false" lifetime=500 loop=0 >
437            <events>
438                <spawn>
439                    <EventListener event=portaldelaytrigger3 />
440                </spawn>
441            </events>
442        </ParticleSpawner>
443      </attached>
444    </PickupSpawner>
445
446    <SpaceBoundaries warnDistance="1" maxDistance="1700" showDistance="500" healthDecrease="0.1" position="-72369,803,2"/>
447    <SpaceBoundaries warnDistance="1" maxDistance="800" showDistance="300" healthDecrease="0.1" position="-73450,5067,-351"/>
448
449    <!-- FINISH -->
450
451    <DistanceTrigger name="dockingtrigger" position="-73942, 1288, -255" target="Pawn" distance=20 stayActive="true" />
452    <DistanceTrigger name="dockingdelaytrigger1" position="-73942, 1288, -255" target="Pawn" distance=20 stayActive="true" delay=3 />
453    <DistanceTrigger name="dockingdelaytrigger2" position="-73942, 1288, -255" target="Pawn" distance=20 stayActive="true" delay=10 />
454
455    <SimpleNotification message="Docking by Sven" >
456        <events>
457            <trigger>
458                <EventListener event=dockingtrigger />
459            </trigger>
460        </events>
461    </SimpleNotification>
462
463    <SimpleNotification message="Weapons by Jonas" >
464        <events>
465            <trigger>
466                <EventListener event=dockingdelaytrigger1 />
467            </trigger>
468        </events>
469    </SimpleNotification>
470
471    <SimpleNotification message="Steering enhancement by Manuel" >
472        <events>
473            <trigger>
474                <EventListener event=dockingdelaytrigger2 />
475            </trigger>
476        </events>
477    </SimpleNotification>
478   
479  </Scene>
480</Level>
481
Note: See TracBrowser for help on using the repository browser.