Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 9532 was 9348, checked in by landauf, 12 years ago

merged branch presentation2012merge back to trunk

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