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 = "missions" |
---|
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="" /> |
---|
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 | </LocalQuest> |
---|
148 | |
---|
149 | <LocalQuest id="spacefight. |
---|
150 | |
---|
151 | |
---|
152 | <!-- ---------------------------------------------------------------------- --> |
---|
153 | <QuestEffectBeacon times=0> |
---|
154 | <effects> |
---|
155 | <AddQuest questId="spacefight.flying1" /> |
---|
156 | </effects> |
---|
157 | <events> |
---|
158 | <execute> |
---|
159 | <EventListener event=spawntrigger /> |
---|
160 | </execute> |
---|
161 | </events> |
---|
162 | <attached> |
---|
163 | <BlinkingBillboard position="5000,0,0" colour="1,0,0" frequency=0.5 amplitude=5 material="Examples/Flare"/> |
---|
164 | </attached> |
---|
165 | </QuestEffectBeacon> |
---|
166 | |
---|
167 | <QuestEffectBeacon times=1> |
---|
168 | <effects> |
---|
169 | <AddQuest questId="spacefight.guard1" /> |
---|
170 | </effects> |
---|
171 | <events> |
---|
172 | <execute> |
---|
173 | <EventListener event="flying1" /> |
---|
174 | </execute> |
---|
175 | </events> |
---|
176 | </QuestEffectBeacon> |
---|
177 | |
---|
178 | <!-- --> |
---|
179 | |
---|
180 | <DistanceTrigger name="flying1" position="3000,0,0" target="SpaceShip" distance=1500 stayActive="true" delay=0 /> |
---|
181 | |
---|
182 | <DistanceTrigger name=spawntrigger2 position="0,0,0" target="SpaceShip" distance=10 stayActive="true" delay=0 /> |
---|
183 | <SimpleNotification message="Let's fly to the blinking light." > |
---|
184 | <events> |
---|
185 | <trigger> |
---|
186 | <EventListener event=spawntrigger2 /> |
---|
187 | </trigger> |
---|
188 | </events> |
---|
189 | </SimpleNotification> |
---|
190 | |
---|
191 | <!-- ----------------------------------------------------- --> |
---|
192 | |
---|
193 | <!-- EVENTTRIGGER |
---|
194 | |
---|
195 | <EventTrigger name="guard1trigger4" activations="1" stayactive="true" delay=0.1> |
---|
196 | <events> |
---|
197 | <trigger> |
---|
198 | <EventListener event="firstPatrol" /> |
---|
199 | </trigger> |
---|
200 | </events> |
---|
201 | <EventTrigger name="guard1trigger3" activations="1" stayactive="true" delay=0.1> |
---|
202 | <events> |
---|
203 | <trigger> |
---|
204 | <EventListener event="firstPatrol" /> |
---|
205 | </trigger> |
---|
206 | </events> |
---|
207 | <EventTrigger name="guard1trigger2" activations="1" stayactive="true" delay=0.1> |
---|
208 | <events> |
---|
209 | <trigger> |
---|
210 | <EventListener event="firstPatrol" /> |
---|
211 | </trigger> |
---|
212 | </events> |
---|
213 | <EventTrigger name="guard1trigger1" activations="1" stayactive="true" delay=0.1> |
---|
214 | <events> |
---|
215 | <trigger> |
---|
216 | <EventListener event="firstPatrol" /> |
---|
217 | </trigger> |
---|
218 | </events> |
---|
219 | </EventTrigger> |
---|
220 | </EventTrigger> |
---|
221 | </EventTrigger> |
---|
222 | </EventTrigger> --> |
---|
223 | |
---|
224 | <!-- ----------------------------------------------------- --> |
---|
225 | |
---|
226 | <!-- Passive Piraten --> |
---|
227 | |
---|
228 | <SpaceShip position="5000,1000,0" lookat="-1,0,0" name="firstPatrol" radarname="Patrol"> |
---|
229 | <events> |
---|
230 | <visibility> |
---|
231 | <EventListener event="spacefight.guard1" /> |
---|
232 | </visibility> |
---|
233 | </events> |
---|
234 | <templates> |
---|
235 | <Template link=spaceshippirate /> |
---|
236 | </templates> |
---|
237 | <controller> |
---|
238 | <WaypointController team=1> |
---|
239 | <waypoints> |
---|
240 | <Model mesh="cube.mesh" scale=8 position="5000,-1000,0" /> |
---|
241 | <Model mesh="cube.mesh" scale=8 position="5000,1000,0" /> |
---|
242 | </waypoints> |
---|
243 | </WaypointController> |
---|
244 | </controller> |
---|
245 | </SpaceShip> |
---|
246 | |
---|
247 | <SpaceShip position="5000,0,0" lookat="-1,0,0" name="firstPatrol" radarname="Patrol"> |
---|
248 | <events> |
---|
249 | <visibility> |
---|
250 | <EventListener event="spacefight.guard1" /> |
---|
251 | </visibility> |
---|
252 | </events> |
---|
253 | <templates> |
---|
254 | <Template link=spaceshippirate /> |
---|
255 | </templates> |
---|
256 | <controller> |
---|
257 | <WaypointController team=1> |
---|
258 | <waypoints> |
---|
259 | <Model mesh="cube.mesh" scale=8 position="5000,0,-1000" /> |
---|
260 | <Model mesh="cube.mesh" scale=8 position="5000,0,1000" /> |
---|
261 | </waypoints> |
---|
262 | </WaypointController> |
---|
263 | </controller> |
---|
264 | </SpaceShip> |
---|
265 | |
---|
266 | |
---|
267 | <!-- Angreiffender Pirat 1 --> |
---|
268 | <SpaceShip position="5000,-1000,1000" lookat="5000,1000,-1000" name="firstPatrol" visible="true" > |
---|
269 | <events> |
---|
270 | <visibility> |
---|
271 | <EventListener event=spawntrigger /> |
---|
272 | </visibility> |
---|
273 | </events> |
---|
274 | <templates> |
---|
275 | <Template link=spaceshippirate /> |
---|
276 | </templates> |
---|
277 | <controller> |
---|
278 | <WaypointPatrolController alertnessradius=2000 team=1 active=false> |
---|
279 | <waypoints> |
---|
280 | <Model mesh="cube.mesh" scale=8 position="5000,1000,-1000" /> |
---|
281 | <Model mesh="cube.mesh" scale=8 position="5000,-1000,1000" /> |
---|
282 | </waypoints> |
---|
283 | <events> |
---|
284 | <activity> |
---|
285 | <EventListener event=spawntrigger /> |
---|
286 | </activity> |
---|
287 | </events> |
---|
288 | </WaypointPatrolController> |
---|
289 | </controller> |
---|
290 | </SpaceShip> |
---|
291 | |
---|
292 | <!-- Angreiffender Pirat 2 --> |
---|
293 | <SpaceShip position="5000,-500,-500" lookat="5000,1000,1000" name="firstPatrol" visible="true" > |
---|
294 | <events> |
---|
295 | <visibility> |
---|
296 | <EventListener event=spawntrigger /> |
---|
297 | </visibility> |
---|
298 | </events> |
---|
299 | <templates> |
---|
300 | <Template link=spaceshippirate /> |
---|
301 | </templates> |
---|
302 | <controller> |
---|
303 | <WaypointPatrolController alertnessradius=2000 team=1 active=false> |
---|
304 | <waypoints> |
---|
305 | <Model mesh="cube.mesh" scale=8 position="5000,1000,1000" /> |
---|
306 | <Model mesh="cube.mesh" scale=8 position="5000,-1000,-1000" /> |
---|
307 | </waypoints> |
---|
308 | <events> |
---|
309 | <activity> |
---|
310 | <EventListener event=spawntrigger /> |
---|
311 | </activity> |
---|
312 | </events> |
---|
313 | </WaypointPatrolController> |
---|
314 | </controller> |
---|
315 | </SpaceShip> |
---|
316 | |
---|
317 | <!-- ----------------------------------------------------- --> |
---|
318 | |
---|
319 | <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"/> |
---|
320 | |
---|
321 | <SpawnPoint team=0 position="0,0,0" lookat="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipswallow /> |
---|
322 | |
---|
323 | <!-- triple large belt around the planet --> |
---|
324 | <?lua |
---|
325 | dofile("includes/asteroidField.lua") |
---|
326 | asteroidBelt(2000, -250, 9000, 30, 0, 30, 30, 50, 7190, 7800, 250, 1) |
---|
327 | ?> |
---|
328 | <?lua |
---|
329 | dofile("includes/asteroidField.lua") |
---|
330 | asteroidBelt(2000, -250, 9000, 30, 0, 30, 30, 50, 10000, 11000, 300, 1) |
---|
331 | ?> |
---|
332 | <?lua |
---|
333 | dofile("includes/asteroidField.lua") |
---|
334 | asteroidBelt(2000, -250, 9000, 30, 0, 30, 30, 50, 14000, 15000, 350, 1) |
---|
335 | ?> |
---|
336 | |
---|
337 | |
---|
338 | <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 /> |
---|
339 | |
---|
340 | |
---|
341 | <!-- ----------------Rotating SpaceStation--------------- --> |
---|
342 | |
---|
343 | <StaticEntity position="5500,0,0" yaw=112 pitch=67> |
---|
344 | <attached> |
---|
345 | <?lua |
---|
346 | createSpaceStationPar(0,2,1,2,1,4,1,50) |
---|
347 | ?> |
---|
348 | </attached> |
---|
349 | </StaticEntity> |
---|
350 | |
---|
351 | |
---|
352 | </Scene> |
---|
353 | </Level> |
---|
354 | |
---|