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 |
---|
20 | include("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 | <!-- EARTH ORBIT --> |
---|
56 | |
---|
57 | <DistanceTrigger name="spawntrigger" position="0,0,0" target="Pawn" distance=10 stayActive="true" /> |
---|
58 | <DistanceTrigger name="spawndelaytrigger1" position="0,0,0" target="Pawn" distance=10 stayActive="true" delay=1 /> |
---|
59 | <DistanceTrigger name="spawndelaytrigger2" position="0,0,0" target="Pawn" distance=10 stayActive="true" delay=7 /> |
---|
60 | <DistanceTrigger name="spawndelaytrigger3" position="0,0,0" target="Pawn" distance=10 stayActive="true" delay=12 /> |
---|
61 | <DistanceTrigger name="spawndelaytrigger4" position="0,0,0" target="Pawn" distance=10 stayActive="true" delay=15 /> |
---|
62 | <DistanceTrigger name="spawndelaytrigger5" position="0,0,0" target="Pawn" distance=10 stayActive="true" delay=25 /> |
---|
63 | <DistanceTrigger name="spawndelaytrigger6" position="0,0,0" target="Pawn" distance=10 stayActive="true" delay=35 /> |
---|
64 | <DistanceTrigger name="spawndelaytrigger7" position="0,0,0" target="Pawn" distance=10 stayActive="true" delay=40 /> |
---|
65 | |
---|
66 | <SpawnPoint position="0,0,0" lookat="-2,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff> |
---|
67 | <events> |
---|
68 | <activity> |
---|
69 | <EventTrigger invert="true"> |
---|
70 | <events> |
---|
71 | <trigger> |
---|
72 | <EventListener event="spawndelaytrigger1" /> |
---|
73 | </trigger> |
---|
74 | </events> |
---|
75 | </EventTrigger> |
---|
76 | </activity> |
---|
77 | </events> |
---|
78 | </SpawnPoint> |
---|
79 | |
---|
80 | <SimpleNotification message="Welcome to Earth Orbit" > |
---|
81 | <events> |
---|
82 | <trigger> |
---|
83 | <EventListener event=spawntrigger /> |
---|
84 | </trigger> |
---|
85 | </events> |
---|
86 | </SimpleNotification> |
---|
87 | <SimpleNotification message="Turn right to witness an explosion" > |
---|
88 | <events> |
---|
89 | <trigger> |
---|
90 | <EventListener event=spawndelaytrigger1 /> |
---|
91 | </trigger> |
---|
92 | </events> |
---|
93 | </SimpleNotification> |
---|
94 | |
---|
95 | <!-- This is a model of Earth: mass=EarthMass/1000 and radius=EarthRadius[km]*10 --> |
---|
96 | <Planet |
---|
97 | position="80500,0,0" |
---|
98 | scale="63000" |
---|
99 | collisionType="dynamic" |
---|
100 | linearDamping="0.8" |
---|
101 | angularDamping="0" |
---|
102 | mass="5.9e21" |
---|
103 | pitch="-90" |
---|
104 | yaw="50" |
---|
105 | mesh="planets/earth.mesh" |
---|
106 | atmosphere="atmosphere1" |
---|
107 | rotationaxis="0,1,0" |
---|
108 | rotationrate="0.2" |
---|
109 | atmospheresize="80.0f" |
---|
110 | imagesize="1024.0f" |
---|
111 | collisiondamage = 2 |
---|
112 | enablecollisiondamage = true |
---|
113 | > |
---|
114 | <attached> |
---|
115 | <ForceField position="0,0,0" mode="newtonianGravity" diameter="140000" massDiameter="126000" mass="5.9e21" /> |
---|
116 | </attached> |
---|
117 | <collisionShapes> |
---|
118 | <SphereCollisionShape radius="63000" position="0,0,0" /> |
---|
119 | </collisionShapes> |
---|
120 | </Planet> |
---|
121 | |
---|
122 | <!-- PARTICLE EFFECT --> |
---|
123 | |
---|
124 | <ParticleSpawner position="-50,50,-125" source="Orxonox/RingExp" autostart="false" lifetime=500 loop=1 startdelay=7.5> |
---|
125 | <events> |
---|
126 | <spawn> |
---|
127 | <EventListener event=spawntrigger /> |
---|
128 | </spawn> |
---|
129 | </events> |
---|
130 | </ParticleSpawner> |
---|
131 | <ParticleSpawner position="-50,50,-125" source="Orxonox/RingExp2" autostart="false" lifetime=500 loop=1 startdelay=7> |
---|
132 | <events> |
---|
133 | <spawn> |
---|
134 | <EventListener event=spawntrigger /> |
---|
135 | </spawn> |
---|
136 | </events> |
---|
137 | </ParticleSpawner> |
---|
138 | <ParticleSpawner position="-50,50,-125" source="Orxonox/RingExp3" autostart="false" lifetime=500 loop=1 startdelay=7> |
---|
139 | <events> |
---|
140 | <spawn> |
---|
141 | <EventListener event=spawntrigger /> |
---|
142 | </spawn> |
---|
143 | </events> |
---|
144 | </ParticleSpawner> |
---|
145 | |
---|
146 | <SimpleNotification message="A particle effect by Tibor" > |
---|
147 | <events> |
---|
148 | <trigger> |
---|
149 | <EventListener event=spawndelaytrigger2 /> |
---|
150 | </trigger> |
---|
151 | </events> |
---|
152 | </SimpleNotification> |
---|
153 | |
---|
154 | <!-- ENEMIES 1st ROUND --> |
---|
155 | |
---|
156 | <SimpleNotification message="Enemies attacking" > |
---|
157 | <events> |
---|
158 | <trigger> |
---|
159 | <EventListener event=spawndelaytrigger3 /> |
---|
160 | </trigger> |
---|
161 | </events> |
---|
162 | </SimpleNotification> |
---|
163 | |
---|
164 | <Script code="addBots 3" onLoad="false"> |
---|
165 | <events> |
---|
166 | <trigger> |
---|
167 | <EventListener event=spawndelaytrigger3 /> |
---|
168 | </trigger> |
---|
169 | </events> |
---|
170 | </Script> |
---|
171 | |
---|
172 | <SpawnPoint position="50,0,0" lookat="-2,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff active="false" > |
---|
173 | <events> |
---|
174 | <activity> |
---|
175 | <EventListener event=spawndelaytrigger1 /> |
---|
176 | </activity> |
---|
177 | </events> |
---|
178 | </SpawnPoint> |
---|
179 | |
---|
180 | <SpawnPoint position="0,-50,0" lookat="-2,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff active="false" > |
---|
181 | <events> |
---|
182 | <activity> |
---|
183 | <EventListener event=spawndelaytrigger1 /> |
---|
184 | </activity> |
---|
185 | </events> |
---|
186 | </SpawnPoint> |
---|
187 | |
---|
188 | <SpawnPoint position="0,0,50" lookat="-2,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff active="false" > |
---|
189 | <events> |
---|
190 | <activity> |
---|
191 | <EventListener event=spawndelaytrigger1 /> |
---|
192 | </activity> |
---|
193 | </events> |
---|
194 | </SpawnPoint> |
---|
195 | |
---|
196 | <!-- SPACE BOUNDARY --> |
---|
197 | |
---|
198 | <SpaceBoundaries warnDistance="1" maxDistance="400" showDistance="300" healthDecrease="0.1" position="-90000,0,0"/> |
---|
199 | <SpaceBoundaries warnDistance="1" maxDistance="400" showDistance="300" healthDecrease="0.1" position="0,10000,0"/> |
---|
200 | <SpaceBoundaries warnDistance="1" maxDistance="450" showDistance="300" healthDecrease="0.1" position="0,0,0"/> |
---|
201 | <SpaceBoundaries warnDistance="1" maxDistance="400" showDistance="300" healthDecrease="0.1" position="-30000,0,0"/> |
---|
202 | |
---|
203 | <SimpleNotification message="Notice the shields by Simon" > |
---|
204 | <events> |
---|
205 | <trigger> |
---|
206 | <EventListener event=spawndelaytrigger4 /> |
---|
207 | </trigger> |
---|
208 | </events> |
---|
209 | </SimpleNotification> |
---|
210 | |
---|
211 | <SimpleNotification message="and space boundaries by Maurus" > |
---|
212 | <events> |
---|
213 | <trigger> |
---|
214 | <EventListener event=spawndelaytrigger5 /> |
---|
215 | </trigger> |
---|
216 | </events> |
---|
217 | </SimpleNotification> |
---|
218 | |
---|
219 | <SimpleNotification message="Let's get out of here" > |
---|
220 | <events> |
---|
221 | <trigger> |
---|
222 | <EventListener event=spawndelaytrigger6 /> |
---|
223 | </trigger> |
---|
224 | </events> |
---|
225 | </SimpleNotification> |
---|
226 | |
---|
227 | <Script code="killBots" onLoad="false"> |
---|
228 | <events> |
---|
229 | <trigger> |
---|
230 | <EventListener event=spawndelaytrigger6 /> |
---|
231 | </trigger> |
---|
232 | </events> |
---|
233 | </Script> |
---|
234 | |
---|
235 | <SimpleNotification message="Boost enhancement by Dominik" > |
---|
236 | <events> |
---|
237 | <trigger> |
---|
238 | <EventListener event=spawndelaytrigger7 /> |
---|
239 | </trigger> |
---|
240 | </events> |
---|
241 | </SimpleNotification> |
---|
242 | |
---|
243 | <!-- PORTALS --> |
---|
244 | |
---|
245 | <Template name=PortalDefault> |
---|
246 | <PortalEndPoint> |
---|
247 | <attached> |
---|
248 | <Billboard material="Portals/Default" /> |
---|
249 | </attached> |
---|
250 | </PortalEndPoint> |
---|
251 | </Template> |
---|
252 | |
---|
253 | <PortalEndPoint position="-350,0,0" id="3" distance="40" target="MobileEntity" design="PortalDefault" active="false"> |
---|
254 | <events> |
---|
255 | <activity> |
---|
256 | <EventListener event=spawndelaytrigger6 /> |
---|
257 | </activity> |
---|
258 | </events> |
---|
259 | </PortalEndPoint> |
---|
260 | <PortalEndPoint position="-72000,0,0" id="4" distance="40" target="MobileEntity" design="PortalDefault"> |
---|
261 | <attached> |
---|
262 | <DistanceTrigger name="portaltrigger" position="0,0,0" target="Pawn" distance=10 stayActive="true" /> |
---|
263 | <DistanceTrigger name="portaldelaytrigger1" position="0,0,0" target="Pawn" distance=10 stayActive="true" delay=5 /> |
---|
264 | <DistanceTrigger name="portaldelaytrigger2" position="0,0,0" target="Pawn" distance=10 stayActive="true" delay=10 /> |
---|
265 | <DistanceTrigger name="portaldelaytrigger3" position="0,0,0" target="Pawn" distance=10 stayActive="true" delay=15 /> |
---|
266 | <DistanceTrigger name="portaldelaytrigger4" position="0,0,0" target="Pawn" distance=10 stayActive="true" delay=17 /> |
---|
267 | </attached> |
---|
268 | </PortalEndPoint> |
---|
269 | <PortalLink fromID="3" toID="4" /> |
---|
270 | <PortalLink fromID="4" toID="3" /> |
---|
271 | |
---|
272 | <SimpleNotification message="Moon orbit" > |
---|
273 | <events> |
---|
274 | <trigger> |
---|
275 | <EventListener event=portaltrigger /> |
---|
276 | </trigger> |
---|
277 | </events> |
---|
278 | </SimpleNotification> |
---|
279 | |
---|
280 | <SimpleNotification message="Portals by Andreas" > |
---|
281 | <events> |
---|
282 | <trigger> |
---|
283 | <EventListener event=portaltrigger1 /> |
---|
284 | </trigger> |
---|
285 | </events> |
---|
286 | </SimpleNotification> |
---|
287 | |
---|
288 | <!-- MOON AREA --> |
---|
289 | <!-- This is a model of our Moon: mass=MoonMass/1000 and radius=MoonRadius[km]*10 and position=DistanceFromEarth[km]*10 --> |
---|
290 | <Planet |
---|
291 | position="-80000,0,0" |
---|
292 | scale="4000" |
---|
293 | collisionType="dynamic" |
---|
294 | linearDamping="0.8" |
---|
295 | angularDamping="0" |
---|
296 | mass="7.36e19" |
---|
297 | pitch="0" |
---|
298 | mesh="planets/moon.mesh" |
---|
299 | atmosphere="atmosphere1" |
---|
300 | rotationaxis="0,1,0" |
---|
301 | rotationrate="0.2" |
---|
302 | atmospheresize="0.0f" |
---|
303 | imagesize="1024.0f" |
---|
304 | collisiondamage = 2 |
---|
305 | enablecollisiondamage = true |
---|
306 | > |
---|
307 | <attached> |
---|
308 | <ForceField position="0,0,0" mode="newtonianGravity" diameter="40000" massDiameter="34740" mass="7.36e19" /> |
---|
309 | </attached> |
---|
310 | <collisionShapes> |
---|
311 | <SphereCollisionShape radius="4000" position="0,0,0" /> |
---|
312 | </collisionShapes> |
---|
313 | </Planet> |
---|
314 | |
---|
315 | <SimpleNotification message="Hydrogen farmer/space station by Hans" > |
---|
316 | <events> |
---|
317 | <trigger> |
---|
318 | <EventListener event=portaltrigger2 /> |
---|
319 | </trigger> |
---|
320 | </events> |
---|
321 | </SimpleNotification> |
---|
322 | |
---|
323 | <!-- HYDROGEN FARMER & DOCKING --> |
---|
324 | <SpaceShip position="-74000,2500,0" roll=90 yaw=180 pitch=20 mass=10000 > |
---|
325 | <attached> |
---|
326 | <!-- Docking --> |
---|
327 | <DistanceTriggerBeacon name="bcnDestroyer" /> |
---|
328 | <DockingTarget name="destroyer" /> |
---|
329 | |
---|
330 | <Model mesh="HydroHarvester.mesh" mass=10 position="0,0,0" scale=100 /> |
---|
331 | <!-- <Model mesh="cube.mesh" mass=10 position="-1120,0,0" scale3D="230,200,490" /> --> |
---|
332 | <!-- <Model mesh="cube.mesh" mass=10 position="580,0,-960" scale3D="230,200,490" yaw=-120 /> --> |
---|
333 | <!-- <Model mesh="cube.mesh" mass=10 position="580,0,960" scale3D="230,200,490" yaw=-240 /> --> |
---|
334 | <!-- <Model mesh="cube.mesh" mass=10 position="0,0,0" scale3D="600,200,100" /> --> |
---|
335 | </attached> |
---|
336 | <collisionShapes> |
---|
337 | <BoxCollisionShape position="-1120,0,0" halfExtents="230,200,490" /> |
---|
338 | <BoxCollisionShape position="580,0,-960" halfExtents="230,200,490" yaw=-120 /> |
---|
339 | <BoxCollisionShape position="580,0,960" halfExtents="230,200,490" yaw=-240 /> |
---|
340 | </collisionShapes> |
---|
341 | </SpaceShip> |
---|
342 | |
---|
343 | <Dock position="-73942, 1288, -255" roll=90 yaw=180 > |
---|
344 | <animations> |
---|
345 | <MoveToDockingTarget target="destroyer" /> |
---|
346 | </animations> |
---|
347 | <effects> |
---|
348 | <DockToShip target="spaceShip" /> |
---|
349 | </effects> |
---|
350 | <events> |
---|
351 | <execute> |
---|
352 | <EventListener event="dockMe" /> |
---|
353 | </execute> |
---|
354 | </events> |
---|
355 | <attached> |
---|
356 | <DistanceTrigger position="10,-202, -42" distance="400" target="Pawn" |
---|
357 | beaconMode="exclude" targetname="bcnDestroyer" name="dockMe" |
---|
358 | /> |
---|
359 | <Billboard position="10,-202,-42" material="Examples/Flare" colour="1.0, 0, 0" /> |
---|
360 | </attached> |
---|
361 | </Dock> |
---|
362 | |
---|
363 | <SpaceShip template="spaceshipassff2" position="-73915,3786,67" orientation="-0.14045, 0.68254, 0.68144, 0.223774" > |
---|
364 | <attached> |
---|
365 | <DockingTarget name="spaceShip" /> |
---|
366 | </attached> |
---|
367 | </SpaceShip> |
---|
368 | |
---|
369 | <!-- PICKUPS --> |
---|
370 | <SimpleNotification message="Oh, what have we here?" > |
---|
371 | <events> |
---|
372 | <trigger> |
---|
373 | <EventListener event=portaltrigger3 /> |
---|
374 | </trigger> |
---|
375 | </events> |
---|
376 | </SimpleNotification> |
---|
377 | |
---|
378 | <SimpleNotification message="Shrink pickup by Sandro" > |
---|
379 | <events> |
---|
380 | <trigger> |
---|
381 | <EventListener event=portaltrigger4 /> |
---|
382 | </trigger> |
---|
383 | </events> |
---|
384 | </SimpleNotification> |
---|
385 | |
---|
386 | <PickupSpawner position="25,50,-125" respawnTime="10" triggerDistance="20" maxSpawnedItems="5" visible="false"> |
---|
387 | <pickup> |
---|
388 | <ShrinkPickup template ="mediumshrinkpickup"/> |
---|
389 | </pickup> |
---|
390 | <events> |
---|
391 | <visibility> |
---|
392 | <EventListener event=portaltrigger3 /> |
---|
393 | </visibility> |
---|
394 | </events> |
---|
395 | </PickupSpawner> |
---|
396 | </Scene> |
---|
397 | </Level> |
---|
398 | |
---|