Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/core7/data/levels/presentationFS11.oxw @ 10962

Last change on this file since 10962 was 9939, checked in by jo, 11 years ago

presentationHS13 branch merged into trunk

  • Property svn:eol-style set to native
File size: 15.9 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="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 pickup="smallshrinkpickup" position="-72487,420,-63" respawnTime="10" triggerDistance="20" maxSpawnedItems="5" active="false">
427      <events>
428        <activity>
429            <EventListener event=portaldelaytrigger3 />
430        </activity>
431      </events>
432      <attached>
433        <ParticleSpawner position="0,0,0" source="Orxonox/Shield" autostart="false" lifetime=500 loop=0 >
434            <events>
435                <spawn>
436                    <EventListener event=portaldelaytrigger3 />
437                </spawn>
438            </events>
439        </ParticleSpawner>
440      </attached>
441    </PickupSpawner>
442
443    <SpaceBoundaries warnDistance="1" maxDistance="1700" showDistance="500" healthDecrease="0.1" position="-72369,803,2"/>
444    <SpaceBoundaries warnDistance="1" maxDistance="800" showDistance="300" healthDecrease="0.1" position="-73450,5067,-351"/>
445
446    <!-- FINISH -->
447
448    <DistanceTrigger name="dockingtrigger" position="-73942, 1288, -255" target="Pawn" distance=20 stayActive="true" />
449    <DistanceTrigger name="dockingdelaytrigger1" position="-73942, 1288, -255" target="Pawn" distance=20 stayActive="true" delay=3 />
450    <DistanceTrigger name="dockingdelaytrigger2" position="-73942, 1288, -255" target="Pawn" distance=20 stayActive="true" delay=10 />
451
452    <SimpleNotification message="Docking by Sven" >
453        <events>
454            <trigger>
455                <EventListener event=dockingtrigger />
456            </trigger>
457        </events>
458    </SimpleNotification>
459
460    <SimpleNotification message="Weapons by Jonas" >
461        <events>
462            <trigger>
463                <EventListener event=dockingdelaytrigger1 />
464            </trigger>
465        </events>
466    </SimpleNotification>
467
468    <SimpleNotification message="Steering enhancement by Manuel" >
469        <events>
470            <trigger>
471                <EventListener event=dockingdelaytrigger2 />
472            </trigger>
473        </events>
474    </SimpleNotification>
475   
476  </Scene>
477</Level>
478
Note: See TracBrowser for help on using the repository browser.