1 | <!--Spacefight--> |
---|
2 | |
---|
3 | <!-- |
---|
4 | To Do: |
---|
5 | Naechster Quest bei Erreichen des roten Lichtes... |
---|
6 | --> |
---|
7 | <LevelInfo |
---|
8 | name = "Spacefight" |
---|
9 | description = "Level with the big Spacefight" |
---|
10 | tags = "mission" |
---|
11 | screenshot = "emptylevel.png" |
---|
12 | /> |
---|
13 | |
---|
14 | <?lua |
---|
15 | include("stats.oxo") |
---|
16 | include("HUDTemplates3.oxo") |
---|
17 | include("templates/lodInformation.oxt") |
---|
18 | ?> |
---|
19 | |
---|
20 | <?lua |
---|
21 | include("templates/spaceshipAssff2.oxt") |
---|
22 | include("templates/spaceshipPirate.oxt") |
---|
23 | include("templates/spaceshipEscort.oxt") |
---|
24 | include("templates/spaceshipSwallow.oxt") |
---|
25 | ?> |
---|
26 | |
---|
27 | <?lua |
---|
28 | dofile("includes/CuboidSpaceStation.lua") |
---|
29 | ?> |
---|
30 | |
---|
31 | |
---|
32 | |
---|
33 | |
---|
34 | <Level |
---|
35 | gametype = "Mission" |
---|
36 | > |
---|
37 | <templates> |
---|
38 | <Template link=lodtemplate_default /> |
---|
39 | </templates> |
---|
40 | |
---|
41 | <?lua include("includes/notifications.oxi") ?> |
---|
42 | |
---|
43 | <NotificationQueueCEGUI |
---|
44 | name="narrative" |
---|
45 | targets="simpleNotification" |
---|
46 | size=3 |
---|
47 | displayTime=3.9 |
---|
48 | position="0.2, 0, 0.1, 0" |
---|
49 | fontSize="23" |
---|
50 | fontColor="0.3, 1, 0.2, 0.8" |
---|
51 | alignment="HorzCentred" |
---|
52 | displaySize="0.6, 0, 0, 0" |
---|
53 | /> |
---|
54 | |
---|
55 | <Scene |
---|
56 | ambientlight = "0.8, 0.8, 0.8" |
---|
57 | skybox = "Orxonox/Starbox" |
---|
58 | > |
---|
59 | |
---|
60 | <Script code="showGUI NotificationLayer false true" needsGraphics="true" /> |
---|
61 | |
---|
62 | <!-- QUESTS & SPAWNTRIGGER --> |
---|
63 | |
---|
64 | <!-- Spawntrigger --> |
---|
65 | |
---|
66 | <EventMultiTrigger name=spawntrigger> |
---|
67 | <events> |
---|
68 | <trigger> |
---|
69 | <SpawnPoint team=0 position="0,0,0" lookat="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipswallow> |
---|
70 | <EventTrigger invert=true> |
---|
71 | <events> |
---|
72 | <trigger> |
---|
73 | <EventListener event="spacefight.flying2" /> |
---|
74 | </trigger> |
---|
75 | </events> |
---|
76 | </EventTrigger> |
---|
77 | </SpawnPoint> |
---|
78 | </trigger> |
---|
79 | </events> |
---|
80 | </EventMultiTrigger> |
---|
81 | |
---|
82 | <!-- QUEST DESCRIPTION--> |
---|
83 | |
---|
84 | <LocalQuest id="spacefight.flying1"> |
---|
85 | <QuestDescription |
---|
86 | title="To the first guard!" |
---|
87 | description="Reach the station ahead." |
---|
88 | completeMessage="Well done!" /> |
---|
89 | <complete-effects> |
---|
90 | <AddQuest questId="spacefight.guard1" /> |
---|
91 | </complete-effects> |
---|
92 | </LocalQuest> |
---|
93 | |
---|
94 | <LocalQuest id="spacefight.guard1"> |
---|
95 | <QuestDescription |
---|
96 | title="Eliminate the first guard!" |
---|
97 | description="You've reached the enemys Station and they haven't seen you yet. |
---|
98 | |
---|
99 | Ahead you see the first little patrol. |
---|
100 | There are two little battleships and also two unarmed ships. |
---|
101 | The unarmed could not attack you. So first destroy the battleships!" |
---|
102 | failMessage="You've lost all your ships!" |
---|
103 | completeMessage="Well done!" /> |
---|
104 | <complete-effects> |
---|
105 | <AddQuest questId="spacefight.upgrade1" /> |
---|
106 | <AddQuest questId="spacefight.flying2" /> |
---|
107 | </complete-effects> |
---|
108 | </LocalQuest> |
---|
109 | |
---|
110 | <LocalQuest id="spacefight.upgrade1"> |
---|
111 | <QuestDescription |
---|
112 | title="Prepare for the fight." |
---|
113 | description="Your friends has an arsenal left behind near by your position. |
---|
114 | perhaps you find something useful there..." |
---|
115 | failMessage="You've lost all your ships!" |
---|
116 | completeMessage="Your ship is prepared best for the second and last guard on the way to the mainship." /> |
---|
117 | </LocalQuest> |
---|
118 | |
---|
119 | <LocalQuest id="spacefight.flying2"> |
---|
120 | <QuestDescription |
---|
121 | title="To the second guard!" |
---|
122 | description="There is another sentry on the way to the big mainship. |
---|
123 | unfortunately, we also have to destroy this one." |
---|
124 | failMessage="You've lost all your ships!" |
---|
125 | completeMessage="" /> |
---|
126 | <complete-effects> |
---|
127 | <AddQuest questId="spacefight.guard2" /> |
---|
128 | </complete-effects> |
---|
129 | </LocalQuest> |
---|
130 | |
---|
131 | <LocalQuest id="spacefight.guard2"> |
---|
132 | <QuestDescription |
---|
133 | title="The second guard!" |
---|
134 | description="Destroy also this guard!" |
---|
135 | failMessage="You've lost all your ships!" |
---|
136 | completeMessage="" /> |
---|
137 | <complete-effects> |
---|
138 | <AddQuest questId="spacefight.escape" /> |
---|
139 | </complete-effects> |
---|
140 | </LocalQuest> |
---|
141 | |
---|
142 | <LocalQuest id="spacefight.escape"> |
---|
143 | <QuestDescription |
---|
144 | title="Catch the messenger!" |
---|
145 | description="A messenger is on the way to warn the troups of the mainship. |
---|
146 | Destroy him before he is near by the mainship. |
---|
147 | Else the fight against the enemys troups will be much more difficult." |
---|
148 | failMessage="The messenger has reached the mainship. |
---|
149 | Prepare to fight against a strong enmey!" |
---|
150 | completeMessage="Well done! Now the element of surprise will be ours!" /> |
---|
151 | <complete-effects> |
---|
152 | <AddQuest questId="spacefight.flying3" /> |
---|
153 | </complete-effects> |
---|
154 | </LocalQuest> |
---|
155 | |
---|
156 | <LocalQuest id="spacefight.flying3" > |
---|
157 | <QuestDescription |
---|
158 | title="Prepared for the big fight?" |
---|
159 | description="" |
---|
160 | failMessage="You've lost all your ships!" |
---|
161 | completeMessage="" /> |
---|
162 | </LocalQuest> |
---|
163 | |
---|
164 | <LocalQuest id="spacefight.mainfight" > |
---|
165 | <QuestDescription |
---|
166 | title="The big fight!" |
---|
167 | description="Now the time is come! |
---|
168 | You've done all you can to prepare you for this spacebattle. |
---|
169 | Let us see, if it was enough. |
---|
170 | |
---|
171 | ATTACK!!!" |
---|
172 | failMessage="You've lost all your ships!" |
---|
173 | completeMessage="YEEEHAAA! |
---|
174 | You managed it! For that you will get the golden medal of the united space armies." /> |
---|
175 | </LocalQuest> |
---|
176 | |
---|
177 | <LocalQuest id="spacefight." > |
---|
178 | <QuestDescription |
---|
179 | title="" |
---|
180 | description="" |
---|
181 | failMessage="" |
---|
182 | completeMessage="" /> |
---|
183 | </LocalQuest> |
---|
184 | |
---|
185 | <LocalQuest id="" > |
---|
186 | <QuestDescription |
---|
187 | title="" |
---|
188 | description="" |
---|
189 | failMessage="" |
---|
190 | completeMessage="" /> |
---|
191 | </LocalQuest> |
---|
192 | |
---|
193 | |
---|
194 | <!-- ---------------------------------------------------------------------- --> |
---|
195 | |
---|
196 | <QuestEffectBeacon times=0> |
---|
197 | <effects> |
---|
198 | <AddQuest questId="spacefight.flying1" /> |
---|
199 | </effects> |
---|
200 | <events> |
---|
201 | <execute> |
---|
202 | <EventListener event=spawntrigger2 /> |
---|
203 | </execute> |
---|
204 | </events> |
---|
205 | <attached> |
---|
206 | <BlinkingBillboard position="8000,0,0" colour="1,0,0" frequency=0.5 amplitude=5 material="Examples/Flare" /> |
---|
207 | </attached> |
---|
208 | </QuestEffectBeacon> |
---|
209 | |
---|
210 | <QuestEffectBeacon times=1> |
---|
211 | <effects> |
---|
212 | <CompleteQuest questId="spacefight.flying1" /> |
---|
213 | </effects> |
---|
214 | <events> |
---|
215 | <execute> |
---|
216 | <EventListener event="flying1" /> |
---|
217 | </execute> |
---|
218 | </events> |
---|
219 | </QuestEffectBeacon> |
---|
220 | |
---|
221 | <QuestEffectBeacon times=1> |
---|
222 | <effects> |
---|
223 | <CompleteQuest questId="spacefight.guard1" /> |
---|
224 | </effects> |
---|
225 | <events> |
---|
226 | <execute> |
---|
227 | <EventListener event="guard1trigger4" /> |
---|
228 | </execute> |
---|
229 | </events> |
---|
230 | </QuestEffectBeacon> |
---|
231 | |
---|
232 | <!-- ---------------------------------------------------------------------- --> |
---|
233 | |
---|
234 | <DistanceTrigger name="flying1" position="5000,0,0" target="SpaceShip" distance=1000 stayActive="true" delay=0 /> |
---|
235 | |
---|
236 | <DistanceTrigger name=spawntrigger2 position="0,0,0" target="SpaceShip" distance=10 stayActive="true" delay=0 /> |
---|
237 | <SimpleNotification message="Let's fly to the blinking light." > |
---|
238 | <events> |
---|
239 | <trigger> |
---|
240 | <EventListener event=spawntrigger2 /> |
---|
241 | </trigger> |
---|
242 | </events> |
---|
243 | </SimpleNotification> |
---|
244 | |
---|
245 | <!-- ----------------------------------------------------- --> |
---|
246 | |
---|
247 | <!-- EVENTTRIGGER --> |
---|
248 | |
---|
249 | <EventTrigger name="guard1trigger4" activations="1" stayactive="true" delay=0.1> |
---|
250 | <events> |
---|
251 | <trigger> |
---|
252 | <EventListener event="firstPatrol" /> |
---|
253 | </trigger> |
---|
254 | </events> |
---|
255 | <EventTrigger name="guard1trigger3" activations="1" stayactive="true" delay=0.1> |
---|
256 | <events> |
---|
257 | <trigger> |
---|
258 | <EventListener event="firstPatrol" /> |
---|
259 | </trigger> |
---|
260 | </events> |
---|
261 | <EventTrigger name="guard1trigger2" activations="1" stayactive="true" delay=0.1> |
---|
262 | <events> |
---|
263 | <trigger> |
---|
264 | <EventListener event="firstPatrol" /> |
---|
265 | </trigger> |
---|
266 | </events> |
---|
267 | <EventTrigger name="guard1trigger1" activations="1" stayactive="true" delay=0.1> |
---|
268 | <events> |
---|
269 | <trigger> |
---|
270 | <EventListener event="firstPatrol" /> |
---|
271 | </trigger> |
---|
272 | </events> |
---|
273 | </EventTrigger> |
---|
274 | </EventTrigger> |
---|
275 | </EventTrigger> |
---|
276 | </EventTrigger> |
---|
277 | |
---|
278 | <!-- ----------------------------------------------------- --> |
---|
279 | |
---|
280 | <!-- Passive Piraten: Guard 1 --> |
---|
281 | |
---|
282 | <SpaceShip position="8000,1000,0" lookat="-1,0,0" name="firstPatrol" radarname="Patrol"> |
---|
283 | <events> |
---|
284 | <visibility> |
---|
285 | <EventListener event=spawntrigger2 /> |
---|
286 | </visibility> |
---|
287 | </events> |
---|
288 | <templates> |
---|
289 | <Template link=spaceshippirate /> |
---|
290 | </templates> |
---|
291 | <controller> |
---|
292 | <WaypointController team=1> |
---|
293 | <waypoints> |
---|
294 | <Model mesh="cube.mesh" scale=8 position="8000,-1000,0" /> |
---|
295 | <Model mesh="cube.mesh" scale=8 position="8000,1000,0" /> |
---|
296 | </waypoints> |
---|
297 | </WaypointController> |
---|
298 | </controller> |
---|
299 | </SpaceShip> |
---|
300 | |
---|
301 | <SpaceShip position="8000,0,0" lookat="-1,0,0" name=firstPatrol radarname="Patrol"> |
---|
302 | <events> |
---|
303 | <visibility> |
---|
304 | <EventListener event=spawntrigger2 /> |
---|
305 | </visibility> |
---|
306 | </events> |
---|
307 | <templates> |
---|
308 | <Template link=spaceshippirate /> |
---|
309 | </templates> |
---|
310 | <controller> |
---|
311 | <WaypointController team=1> |
---|
312 | <waypoints> |
---|
313 | <Model mesh="cube.mesh" scale=8 position="8000,0,-1000" /> |
---|
314 | <Model mesh="cube.mesh" scale=8 position="8000,0,1000" /> |
---|
315 | </waypoints> |
---|
316 | </WaypointController> |
---|
317 | </controller> |
---|
318 | </SpaceShip> |
---|
319 | |
---|
320 | |
---|
321 | <!-- Angreiffende Piraten: Guard 1 --> |
---|
322 | |
---|
323 | <SpaceShip position="8000,-1000,1000" lookat="8000,1000,-1000" name=firstPatrol visible="true" radarname="Patrol" > |
---|
324 | <events> |
---|
325 | <visibility> |
---|
326 | <EventListener event=spawntrigger2 /> |
---|
327 | </visibility> |
---|
328 | </events> |
---|
329 | <templates> |
---|
330 | <Template link=spaceshippirate /> |
---|
331 | </templates> |
---|
332 | <controller> |
---|
333 | <WaypointPatrolController alertnessradius=2000 team=1 active=false> |
---|
334 | <waypoints> |
---|
335 | <Model mesh="cube.mesh" scale=8 position="8000,1000,-1000" /> |
---|
336 | <Model mesh="cube.mesh" scale=8 position="8000,-1000,1000" /> |
---|
337 | </waypoints> |
---|
338 | <events> |
---|
339 | <activity> |
---|
340 | <EventListener event=spawntrigger2 /> |
---|
341 | </activity> |
---|
342 | </events> |
---|
343 | </WaypointPatrolController> |
---|
344 | </controller> |
---|
345 | </SpaceShip> |
---|
346 | |
---|
347 | <SpaceShip position="8000,-500,-500" lookat="8000,1000,1000" name=firstPatrol visible="true" radarname="Patrol"> |
---|
348 | <events> |
---|
349 | <visibility> |
---|
350 | <EventListener event=spawntrigger2 /> |
---|
351 | </visibility> |
---|
352 | </events> |
---|
353 | <templates> |
---|
354 | <Template link=spaceshippirate /> |
---|
355 | </templates> |
---|
356 | <controller> |
---|
357 | <WaypointPatrolController alertnessradius=2000 team=1 active=false> |
---|
358 | <waypoints> |
---|
359 | <Model mesh="cube.mesh" scale=8 position="8000,1000,1000" /> |
---|
360 | <Model mesh="cube.mesh" scale=8 position="8000,-1000,-1000" /> |
---|
361 | </waypoints> |
---|
362 | <events> |
---|
363 | <activity> |
---|
364 | <EventListener event=spawntrigger2 /> |
---|
365 | </activity> |
---|
366 | </events> |
---|
367 | </WaypointPatrolController> |
---|
368 | </controller> |
---|
369 | </SpaceShip> |
---|
370 | |
---|
371 | <!-- Passive Piraten: Guard 2 --> |
---|
372 | |
---|
373 | <!-- Angreiffende Piraten: Guard 2 --> |
---|
374 | |
---|
375 | <!-- ----------------------------------------------------- --> |
---|
376 | |
---|
377 | <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"/> |
---|
378 | |
---|
379 | <SpawnPoint team=0 position="0,0,0" lookat="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipswallow /> |
---|
380 | |
---|
381 | <!-- triple large belt around the planet --> |
---|
382 | <?lua |
---|
383 | dofile("includes/asteroidField.lua") |
---|
384 | asteroidBelt(2000, -250, 9000, 30, 0, 30, 30, 50, 7190, 7800, 250, 1) |
---|
385 | ?> |
---|
386 | <?lua |
---|
387 | dofile("includes/asteroidField.lua") |
---|
388 | asteroidBelt(2000, -250, 9000, 30, 0, 30, 30, 50, 10000, 11000, 300, 1) |
---|
389 | ?> |
---|
390 | <?lua |
---|
391 | dofile("includes/asteroidField.lua") |
---|
392 | asteroidBelt(2000, -250, 9000, 30, 0, 30, 30, 50, 14000, 15000, 350, 1) |
---|
393 | ?> |
---|
394 | |
---|
395 | <!-- other asteroid fileds --> |
---|
396 | |
---|
397 | <!-- links vor guard 1 --> |
---|
398 | <?lua |
---|
399 | dofile("includes/asteroidField.lua") |
---|
400 | asteroidField(-5000, -5000, -20000, 100, 300, 10000, 50, 1) |
---|
401 | ?> |
---|
402 | |
---|
403 | <!-- links hinter guard 1 --> |
---|
404 | <?lua |
---|
405 | dofile("includes/asteroidField.lua") |
---|
406 | asteroidField(20000, -10000, -10000, 50, 1000, 10000, 40, 0) |
---|
407 | ?> |
---|
408 | |
---|
409 | |
---|
410 | <Planet position="2000,-250,9000" scale=5000 pitch=1 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="1,1,0" rotationrate="3" atmospheresize=224.0f imagesize=1024.0f /> |
---|
411 | |
---|
412 | |
---|
413 | <!-- ----------------Rotating SpaceStation--------------- --> |
---|
414 | |
---|
415 | <StaticEntity position="9000,0,0" yaw=112 pitch=67> |
---|
416 | <attached> |
---|
417 | <?lua |
---|
418 | createSpaceStationPar(0,2,1,2,1,4,1,50) |
---|
419 | ?> |
---|
420 | </attached> |
---|
421 | </StaticEntity> |
---|
422 | |
---|
423 | <StaticEntity position="9000,20000,0" yaw=112 pitch=67> |
---|
424 | <attached> |
---|
425 | <?lua |
---|
426 | createSpaceStationPar(0,2,1,2,1,4,1,50) |
---|
427 | ?> |
---|
428 | </attached> |
---|
429 | </StaticEntity> |
---|
430 | |
---|
431 | |
---|
432 | </Scene> |
---|
433 | </Level> |
---|
434 | |
---|