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="You've reached the enemys Station and they haven't seen you yet. |
---|
88 | |
---|
89 | Ahead you see the first little patrol. |
---|
90 | Attack them!" |
---|
91 | failMessage="You've lost all your ships!" |
---|
92 | completeMessage="Well done!" /> |
---|
93 | <complete-effects> |
---|
94 | <AddQuest questId="spacefight.guard1" /> |
---|
95 | </complete-effects> |
---|
96 | </LocalQuest> |
---|
97 | |
---|
98 | <LocalQuest id="spacefight.guard1"> |
---|
99 | <QuestDescription |
---|
100 | title="eliminate the first guard!" |
---|
101 | description="" |
---|
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="" |
---|
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="" |
---|
122 | description="(siehe flying1)" |
---|
123 | failMessage="You've lost all your ships!" |
---|
124 | completeMessage="" /> |
---|
125 | <complete-effects> |
---|
126 | <AddQuest questId="spacefight.guard2" /> |
---|
127 | </complete-effects> |
---|
128 | </LocalQuest> |
---|
129 | |
---|
130 | <LocalQuest id="spacefight.guard2"> |
---|
131 | <QuestDescription |
---|
132 | title="" |
---|
133 | description="(siehe guard1)" |
---|
134 | failMessage="You've lost all your ships!" |
---|
135 | completeMessage="" /> |
---|
136 | <complete-effects> |
---|
137 | <AddQuest questId="spacefight.escape" /> |
---|
138 | </complete-effects> |
---|
139 | </LocalQuest> |
---|
140 | |
---|
141 | <LocalQuest id="spacefight.escape"> |
---|
142 | <QuestDescription |
---|
143 | title="" |
---|
144 | description="" |
---|
145 | failMessage="You've lost all your ships!" |
---|
146 | completeMessage="" /> |
---|
147 | <complete-effects> |
---|
148 | <AddQuest questId="spacefight.flying3" /> |
---|
149 | </complete-effects> |
---|
150 | </LocalQuest> |
---|
151 | |
---|
152 | <LocalQuest id="spacefight.flying3" > |
---|
153 | <QuestDescription |
---|
154 | title="" |
---|
155 | description="" |
---|
156 | failMessage="" |
---|
157 | completeMessage="" /> |
---|
158 | </LocalQuest> |
---|
159 | |
---|
160 | |
---|
161 | <!-- ---------------------------------------------------------------------- --> |
---|
162 | <QuestEffectBeacon times=0> |
---|
163 | <effects> |
---|
164 | <AddQuest questId="spacefight.flying1" /> |
---|
165 | </effects> |
---|
166 | <events> |
---|
167 | <execute> |
---|
168 | <EventListener event=spawntrigger2 /> |
---|
169 | </execute> |
---|
170 | </events> |
---|
171 | <attached> |
---|
172 | <BlinkingBillboard position="5000,0,0" colour="1,0,0" frequency=0.5 amplitude=5 material="Examples/Flare" /> |
---|
173 | </attached> |
---|
174 | </QuestEffectBeacon> |
---|
175 | |
---|
176 | <QuestEffectBeacon times=1> |
---|
177 | <effects> |
---|
178 | <CompleteQuest questId="spacefight.flying1" /> |
---|
179 | </effects> |
---|
180 | <events> |
---|
181 | <execute> |
---|
182 | <EventListener event="flying1" /> |
---|
183 | </execute> |
---|
184 | </events> |
---|
185 | </QuestEffectBeacon> |
---|
186 | |
---|
187 | <QuestEffectBeacon times=1> |
---|
188 | <effects> |
---|
189 | <CompleteQuest questId="spacefight.guard1" /> |
---|
190 | </effects> |
---|
191 | <events> |
---|
192 | <execute> |
---|
193 | <EventListener event="guard1trigger4" /> |
---|
194 | </execute> |
---|
195 | </events> |
---|
196 | </QuestEffectBeacon> |
---|
197 | |
---|
198 | <!-- ---------------------------------------------------------------------- --> |
---|
199 | |
---|
200 | <DistanceTrigger name="flying1" position="3000,0,0" target="SpaceShip" distance=1000 stayActive="true" delay=0 /> |
---|
201 | |
---|
202 | <DistanceTrigger name=spawntrigger2 position="0,0,0" target="SpaceShip" distance=10 stayActive="true" delay=0 /> |
---|
203 | <SimpleNotification message="Let's fly to the blinking light." > |
---|
204 | <events> |
---|
205 | <trigger> |
---|
206 | <EventListener event=spawntrigger2 /> |
---|
207 | </trigger> |
---|
208 | </events> |
---|
209 | </SimpleNotification> |
---|
210 | |
---|
211 | <!-- ----------------------------------------------------- --> |
---|
212 | |
---|
213 | <!-- EVENTTRIGGER --> |
---|
214 | |
---|
215 | <EventTrigger name="guard1trigger4" activations="1" stayactive="true" delay=0.1> |
---|
216 | <events> |
---|
217 | <trigger> |
---|
218 | <EventListener event="firstPatrol" /> |
---|
219 | </trigger> |
---|
220 | </events> |
---|
221 | <EventTrigger name="guard1trigger3" activations="1" stayactive="true" delay=0.1> |
---|
222 | <events> |
---|
223 | <trigger> |
---|
224 | <EventListener event="firstPatrol" /> |
---|
225 | </trigger> |
---|
226 | </events> |
---|
227 | <EventTrigger name="guard1trigger2" activations="1" stayactive="true" delay=0.1> |
---|
228 | <events> |
---|
229 | <trigger> |
---|
230 | <EventListener event="firstPatrol" /> |
---|
231 | </trigger> |
---|
232 | </events> |
---|
233 | <EventTrigger name="guard1trigger1" activations="1" stayactive="true" delay=0.1> |
---|
234 | <events> |
---|
235 | <trigger> |
---|
236 | <EventListener event="firstPatrol" /> |
---|
237 | </trigger> |
---|
238 | </events> |
---|
239 | </EventTrigger> |
---|
240 | </EventTrigger> |
---|
241 | </EventTrigger> |
---|
242 | </EventTrigger> |
---|
243 | |
---|
244 | <!-- ----------------------------------------------------- --> |
---|
245 | |
---|
246 | <!-- Passive Piraten --> |
---|
247 | |
---|
248 | <SpaceShip position="5000,1000,0" lookat="-1,0,0" name=firstPatrol radarname="Patrol"> |
---|
249 | <events> |
---|
250 | <visibility> |
---|
251 | <EventListener event=spawntrigger2 /> |
---|
252 | </visibility> |
---|
253 | </events> |
---|
254 | <templates> |
---|
255 | <Template link=spaceshippirate /> |
---|
256 | </templates> |
---|
257 | <controller> |
---|
258 | <WaypointController team=1> |
---|
259 | <waypoints> |
---|
260 | <Model mesh="cube.mesh" scale=8 position="5000,-1000,0" /> |
---|
261 | <Model mesh="cube.mesh" scale=8 position="5000,1000,0" /> |
---|
262 | </waypoints> |
---|
263 | </WaypointController> |
---|
264 | </controller> |
---|
265 | </SpaceShip> |
---|
266 | |
---|
267 | <SpaceShip position="5000,0,0" lookat="-1,0,0" name=firstPatrol radarname="Patrol"> |
---|
268 | <events> |
---|
269 | <visibility> |
---|
270 | <EventListener event=spawntrigger2 /> |
---|
271 | </visibility> |
---|
272 | </events> |
---|
273 | <templates> |
---|
274 | <Template link=spaceshippirate /> |
---|
275 | </templates> |
---|
276 | <controller> |
---|
277 | <WaypointController team=1> |
---|
278 | <waypoints> |
---|
279 | <Model mesh="cube.mesh" scale=8 position="5000,0,-1000" /> |
---|
280 | <Model mesh="cube.mesh" scale=8 position="5000,0,1000" /> |
---|
281 | </waypoints> |
---|
282 | </WaypointController> |
---|
283 | </controller> |
---|
284 | </SpaceShip> |
---|
285 | |
---|
286 | |
---|
287 | <!-- Angreiffender Pirat 1 --> |
---|
288 | |
---|
289 | <SpaceShip position="5000,-1000,1000" lookat="5000,1000,-1000" name=firstPatrol visible="true" radarname="Patrol" > |
---|
290 | <events> |
---|
291 | <visibility> |
---|
292 | <EventListener event=spawntrigger2 /> |
---|
293 | </visibility> |
---|
294 | </events> |
---|
295 | <templates> |
---|
296 | <Template link=spaceshippirate /> |
---|
297 | </templates> |
---|
298 | <controller> |
---|
299 | <WaypointPatrolController alertnessradius=2000 team=1 active=false> |
---|
300 | <waypoints> |
---|
301 | <Model mesh="cube.mesh" scale=8 position="5000,1000,-1000" /> |
---|
302 | <Model mesh="cube.mesh" scale=8 position="5000,-1000,1000" /> |
---|
303 | </waypoints> |
---|
304 | <events> |
---|
305 | <activity> |
---|
306 | <EventListener event=spawntrigger2 /> |
---|
307 | </activity> |
---|
308 | </events> |
---|
309 | </WaypointPatrolController> |
---|
310 | </controller> |
---|
311 | </SpaceShip> |
---|
312 | |
---|
313 | <!-- Angreiffender Pirat 2 --> |
---|
314 | <SpaceShip position="5000,-500,-500" lookat="5000,1000,1000" name=firstPatrol visible="true" radarname="Patrol"> |
---|
315 | <events> |
---|
316 | <visibility> |
---|
317 | <EventListener event=spawntrigger2 /> |
---|
318 | </visibility> |
---|
319 | </events> |
---|
320 | <templates> |
---|
321 | <Template link=spaceshippirate /> |
---|
322 | </templates> |
---|
323 | <controller> |
---|
324 | <WaypointPatrolController alertnessradius=2000 team=1 active=false> |
---|
325 | <waypoints> |
---|
326 | <Model mesh="cube.mesh" scale=8 position="5000,1000,1000" /> |
---|
327 | <Model mesh="cube.mesh" scale=8 position="5000,-1000,-1000" /> |
---|
328 | </waypoints> |
---|
329 | <events> |
---|
330 | <activity> |
---|
331 | <EventListener event=spawntrigger2 /> |
---|
332 | </activity> |
---|
333 | </events> |
---|
334 | </WaypointPatrolController> |
---|
335 | </controller> |
---|
336 | </SpaceShip> |
---|
337 | |
---|
338 | <!-- ----------------------------------------------------- --> |
---|
339 | |
---|
340 | <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"/> |
---|
341 | |
---|
342 | <SpawnPoint team=0 position="0,0,0" lookat="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipswallow /> |
---|
343 | |
---|
344 | <!-- triple large belt around the planet --> |
---|
345 | <?lua |
---|
346 | dofile("includes/asteroidField.lua") |
---|
347 | asteroidBelt(2000, -250, 9000, 30, 0, 30, 30, 50, 7190, 7800, 250, 1) |
---|
348 | ?> |
---|
349 | <?lua |
---|
350 | dofile("includes/asteroidField.lua") |
---|
351 | asteroidBelt(2000, -250, 9000, 30, 0, 30, 30, 50, 10000, 11000, 300, 1) |
---|
352 | ?> |
---|
353 | <?lua |
---|
354 | dofile("includes/asteroidField.lua") |
---|
355 | asteroidBelt(2000, -250, 9000, 30, 0, 30, 30, 50, 14000, 15000, 350, 1) |
---|
356 | ?> |
---|
357 | |
---|
358 | |
---|
359 | <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 /> |
---|
360 | |
---|
361 | |
---|
362 | <!-- ----------------Rotating SpaceStation--------------- --> |
---|
363 | |
---|
364 | <StaticEntity position="5500,0,0" yaw=112 pitch=67> |
---|
365 | <attached> |
---|
366 | <?lua |
---|
367 | createSpaceStationPar(0,2,1,2,1,4,1,50) |
---|
368 | ?> |
---|
369 | </attached> |
---|
370 | </StaticEntity> |
---|
371 | |
---|
372 | |
---|
373 | </Scene> |
---|
374 | </Level> |
---|
375 | |
---|