Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 12250 was 11802, checked in by landauf, 7 years ago

migrated NotificationLayer.lua to cegui 0.8

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