1 | <LevelInfo |
---|
2 | name = "kecks" |
---|
3 | description = "Save your planet." |
---|
4 | tags = "test" |
---|
5 | screenshot = "kecks.png" |
---|
6 | gametype=Mission |
---|
7 | /> |
---|
8 | |
---|
9 | |
---|
10 | <?lua |
---|
11 | include("stats.oxo") |
---|
12 | include("HUDTemplates3.oxo") |
---|
13 | include("templates/lodInformation.oxt") |
---|
14 | |
---|
15 | ?> |
---|
16 | |
---|
17 | <?lua |
---|
18 | dofile("includes/asteroidField.lua") |
---|
19 | ?> |
---|
20 | |
---|
21 | <?lua |
---|
22 | include("templates/spaceshipAssff2.oxt") |
---|
23 | include("templates/spaceshipPirate.oxt") |
---|
24 | include("templates/spaceshipHXY.oxt") |
---|
25 | ?> |
---|
26 | |
---|
27 | <Level gametype = "Mission"> |
---|
28 | |
---|
29 | <templates> |
---|
30 | <Template link=lodtemplate_default /> |
---|
31 | </templates> |
---|
32 | |
---|
33 | <?lua include("includes/notifications.oxi") ?> |
---|
34 | |
---|
35 | <NotificationQueueCEGUI |
---|
36 | name="narrative" |
---|
37 | targets="simpleNotification" |
---|
38 | size=3 |
---|
39 | displayTime=3.9 |
---|
40 | position="0.2, 0, 0.1, 0" |
---|
41 | fontSize="23" |
---|
42 | fontColor="0.3, 1, 0.2, 0.8" |
---|
43 | alignment="HorzCentred" |
---|
44 | displaySize="0.6, 0, 0, 0" |
---|
45 | /> |
---|
46 | |
---|
47 | <Scene |
---|
48 | ambientlight = "0.8, 0.8, 0.8" |
---|
49 | skybox = "Orxonox/skyBoxBasic" |
---|
50 | > |
---|
51 | <!-- TODO: Trigger fuer Boxen, SimpleNotification, Gegner sollen nicht explodieren, Spawnpoint 2 --> |
---|
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 | <SpawnPoint roll="180" position="0,0, 0" lookat="0, 1000, 0" spawnclass=SpaceShip pawndesign=spaceshipHXY team=0 active="true" /> |
---|
56 | |
---|
57 | <!-- 2. Spawnpoint |
---|
58 | <SpawnPoint roll="180" position="0, 114500, 0" lookat="0, 150000, 0" spawnclass=SpaceShip pawndesign=spaceshipHXY team=0 active="false" /> |
---|
59 | <events> |
---|
60 | <activity> |
---|
61 | <EventListener event="atPortal1" /> |
---|
62 | </activity> |
---|
63 | </events> |
---|
64 | </SpawnPoint> |
---|
65 | --> |
---|
66 | <DistanceTrigger name="startmission" position="0,100,0" target="SpaceShip" targetname="spaceshipHXY" distance=90 activations=1 stayActive=true /> |
---|
67 | |
---|
68 | <SimpleNotification message="Follow the spaceships to escape" boadcast="true"> |
---|
69 | <events> |
---|
70 | <trigger> |
---|
71 | <EventListener event="startmission" /> |
---|
72 | </trigger> |
---|
73 | </events> |
---|
74 | </SimpleNotification> |
---|
75 | |
---|
76 | <SimpleNotification message="Destroy the box to free the spaceships." boadcast="true"> |
---|
77 | <events> |
---|
78 | <trigger> |
---|
79 | <EventListener event="atPortal1" /> |
---|
80 | </trigger> |
---|
81 | </events> |
---|
82 | </SimpleNotification> |
---|
83 | |
---|
84 | <SimpleNotification message="Defend your planet." broadcast="true"> |
---|
85 | <events> |
---|
86 | <trigger> |
---|
87 | <EventListener event="boxDestroyed" /> |
---|
88 | </trigger> |
---|
89 | </events> |
---|
90 | </SimpleNotification> |
---|
91 | |
---|
92 | |
---|
93 | <!-- Distance Trigger--> |
---|
94 | |
---|
95 | <DistanceTrigger name="atPortal1" position="0,112000,0" target="SpaceShip" targetname="spaceshipHXY" distance=100 activations=1 stayActive=true /> |
---|
96 | <EventTrigger name="boxtrigger" activations="1" stayactive="true" delay=0.1> |
---|
97 | <events> |
---|
98 | <trigger> |
---|
99 | <EventListener event="boxDestroyed" /> |
---|
100 | </trigger> |
---|
101 | </events> |
---|
102 | </EventTrigger> |
---|
103 | |
---|
104 | <!--Asteroiden-Guertel Versuch Schlaufe |
---|
105 | <?lua |
---|
106 | for i = 1, 3, 1 |
---|
107 | do |
---|
108 | ?> |
---|
109 | |
---|
110 | asteroidBelt(0, 0, 0, 0, 0, 100, 50+10*i, 100+10*i, 3000*i+500, 3000*i, 100+100*i , 0) |
---|
111 | |
---|
112 | <?lua |
---|
113 | end |
---|
114 | ?> |
---|
115 | --> |
---|
116 | |
---|
117 | |
---|
118 | <!-- Asteroidenguertel--> |
---|
119 | <?lua |
---|
120 | asteroidBelt(0, 0, 0, 0, 0, 50, 60, 110, 3300, 3000, 100 , 1) |
---|
121 | asteroidBelt(0, 0, 0, 0, 0, 50, 70, 120, 6400, 6000, 125 , 1) |
---|
122 | asteroidBelt(0, 0, 0, 0, 0, 50, 80, 130, 9500, 9000, 150 , 1) |
---|
123 | ?> |
---|
124 | <!--ENDE Asteroidenguertel--> |
---|
125 | |
---|
126 | <!-- Beschuetzer und Wegweiser Innen--> |
---|
127 | |
---|
128 | <?lua |
---|
129 | for i = 0, (3*math.pi/2), (math.pi/2) |
---|
130 | do |
---|
131 | ?> |
---|
132 | |
---|
133 | |
---|
134 | |
---|
135 | <SpaceShip position="<?lua print(250*math.sin(i)) ?>, <?lua print(250*math.cos(i)) ?>,0" lookat="<?lua print(1500*math.sin(i)) ?>, <?lua print(1500*math.cos(i)) ?>,0" maxhealt="150" initialhealth="150" roll="<?lua print(180-i*180/math.pi)?>" > |
---|
136 | <templates> |
---|
137 | <Template link=spaceshipassff2 /> <!--spaceshipTransporter --> |
---|
138 | </templates> |
---|
139 | <controller> |
---|
140 | <WaypointPatrolController alertnessradius=1500 active=true team=0> |
---|
141 | <waypoints> |
---|
142 | <StaticEntity position="0,10350,0"/> |
---|
143 | </waypoints> |
---|
144 | </WaypointPatrolController> |
---|
145 | </controller> |
---|
146 | </SpaceShip> |
---|
147 | |
---|
148 | |
---|
149 | <?lua |
---|
150 | end |
---|
151 | ?> |
---|
152 | |
---|
153 | <!-- ENDE Beschuetzer und Wegweiser Innen--> |
---|
154 | |
---|
155 | <!-- Gegner Innen--> |
---|
156 | |
---|
157 | <?lua |
---|
158 | for i = 0, (3*math.pi/2), (math.pi/2) |
---|
159 | do |
---|
160 | ?> |
---|
161 | |
---|
162 | |
---|
163 | <SpaceShip position="<?lua print(1500*math.sin(i)) ?>,<?lua print(1500*math.cos(i)) ?>,0" roll="<?lua print(180-i*180/math.pi)?>" lookat="0, 0, 0"> |
---|
164 | |
---|
165 | <templates> |
---|
166 | <Template link=spaceshippirate /> |
---|
167 | </templates> |
---|
168 | <controller> |
---|
169 | <WaypointPatrolController alertnessradius=1500 active=true team=1> |
---|
170 | <waypoints> |
---|
171 | <StaticEntity position="0,0,0"/> |
---|
172 | </waypoints> |
---|
173 | </WaypointPatrolController> |
---|
174 | </controller> |
---|
175 | </SpaceShip> |
---|
176 | |
---|
177 | <?lua |
---|
178 | end |
---|
179 | ?> |
---|
180 | |
---|
181 | <!-- ENDE Gegner Innen--> |
---|
182 | |
---|
183 | <!-- Gegnerische Patrouille --> |
---|
184 | |
---|
185 | <?lua |
---|
186 | for i = 0, (7*math.pi/4), (math.pi/4) |
---|
187 | do |
---|
188 | ?> |
---|
189 | |
---|
190 | <?lua |
---|
191 | for j = 1, 3, 1 |
---|
192 | do |
---|
193 | ?> |
---|
194 | <SpaceShip position="<?lua print((600+3200*j)*math.sin(i)) ?>,<?lua print((600+3200*j)*math.cos(i)) ?>,0" roll="<?lua print(180-i*180/math.pi)?>" lookat="0, 0, 0" > |
---|
195 | |
---|
196 | <templates> |
---|
197 | <Template link=spaceshippirate /> |
---|
198 | </templates> |
---|
199 | <controller> |
---|
200 | <WaypointPatrolController alertnessradius=1500 active=true team=1> |
---|
201 | <waypoints> |
---|
202 | <?lua |
---|
203 | for k = 0, (29*math.pi/15), (math.pi/15) |
---|
204 | do |
---|
205 | ?> |
---|
206 | |
---|
207 | <Model mesh="cube.mesh" scale=0 position="<?lua print((600+3200*j)*math.sin(i+k)) ?>,<?lua print((600+3200*j)*math.cos(i+k)) ?>,0" /> |
---|
208 | |
---|
209 | <?lua |
---|
210 | end |
---|
211 | ?> |
---|
212 | |
---|
213 | </waypoints> |
---|
214 | </WaypointPatrolController> |
---|
215 | </controller> |
---|
216 | </SpaceShip> |
---|
217 | <?lua |
---|
218 | end |
---|
219 | ?> |
---|
220 | <?lua |
---|
221 | end |
---|
222 | ?> |
---|
223 | |
---|
224 | <!-- ENDE Gegnerische Patrouille --> |
---|
225 | |
---|
226 | <!-- Gegnerische Flotte/ Totenkopfflotte--> |
---|
227 | |
---|
228 | <?lua |
---|
229 | for j = 0, 1, 1 |
---|
230 | do |
---|
231 | ?> |
---|
232 | <?lua |
---|
233 | for i = 0, 4, 1 |
---|
234 | do |
---|
235 | ?> |
---|
236 | <SpaceShip position="<?lua print (50*i-100)?>, 120000 ,<?lua print (-200*j+150)?>" roll="180" lookat="0, 0, 0"> |
---|
237 | <templates> |
---|
238 | <Template link=spaceshippirate /> |
---|
239 | </templates> |
---|
240 | <controller> |
---|
241 | <WaypointPatrolController alertnessradius=1000 active=false team=1> |
---|
242 | <waypoints> |
---|
243 | <StaticEntity position="<?lua print (5000*i-10000)?>, 0 ,<?lua print (-20000*j+15000)?>"/> |
---|
244 | </waypoints> |
---|
245 | <events> |
---|
246 | <activity> |
---|
247 | <EventListener event="atPortal1" /> |
---|
248 | </activity> |
---|
249 | </events> |
---|
250 | </WaypointPatrolController> |
---|
251 | </controller> |
---|
252 | </SpaceShip> |
---|
253 | <?lua |
---|
254 | end |
---|
255 | ?> |
---|
256 | <?lua |
---|
257 | end |
---|
258 | ?> |
---|
259 | |
---|
260 | <?lua |
---|
261 | for j = 0, 1, 1 |
---|
262 | do |
---|
263 | ?> |
---|
264 | <?lua |
---|
265 | for i = 0, 6, 1 |
---|
266 | do |
---|
267 | ?> |
---|
268 | <SpaceShip position="<?lua print (50*i-150)?>, 120000 ,<?lua print (100-100*j)?>" roll="180" lookat="0, 0, 0"> |
---|
269 | <templates> |
---|
270 | <Template link=spaceshippirate /> |
---|
271 | </templates> |
---|
272 | <controller> |
---|
273 | <WaypointPatrolController alertnessradius=1250 active=false team=1> |
---|
274 | <waypoints> |
---|
275 | <StaticEntity position="<?lua print (5000*i-15000)?>, 0 ,<?lua print (10000-10000*j)?>"/> |
---|
276 | </waypoints> |
---|
277 | <events> |
---|
278 | <activity> |
---|
279 | <EventListener event="atPortal1" /> |
---|
280 | </activity> |
---|
281 | </events> |
---|
282 | </WaypointPatrolController> |
---|
283 | </controller> |
---|
284 | </SpaceShip> |
---|
285 | <?lua |
---|
286 | end |
---|
287 | ?> |
---|
288 | <?lua |
---|
289 | end |
---|
290 | ?> |
---|
291 | |
---|
292 | <?lua |
---|
293 | for i = 0, 6, 3 |
---|
294 | do |
---|
295 | ?> |
---|
296 | <SpaceShip position="<?lua print (50*i-150)?>, 120000 ,50" roll="180" lookat="0, 0, 0"> |
---|
297 | <templates> |
---|
298 | <Template link=spaceshippirate /> |
---|
299 | </templates> |
---|
300 | <controller> |
---|
301 | <WaypointPatrolController alertnessradius=1500 active=false team=1> |
---|
302 | <waypoints> |
---|
303 | <StaticEntity position="<?lua print (5000*i-15000)?>, 0 ,5000"/> |
---|
304 | </waypoints> |
---|
305 | <events> |
---|
306 | <activity> |
---|
307 | <EventListener event="atPortal1" /> |
---|
308 | </activity> |
---|
309 | </events> |
---|
310 | </WaypointPatrolController> |
---|
311 | </controller> |
---|
312 | </SpaceShip> |
---|
313 | <?lua |
---|
314 | end |
---|
315 | ?> |
---|
316 | |
---|
317 | |
---|
318 | <?lua |
---|
319 | for i = 1, 5, 2 |
---|
320 | do |
---|
321 | ?> |
---|
322 | |
---|
323 | <SpaceShip position="<?lua print (50*i-150)?>, 120000 ,-100" roll="180" lookat="0, 0, 0"> |
---|
324 | <templates> |
---|
325 | <Template link=spaceshippirate /> |
---|
326 | </templates> |
---|
327 | <controller> |
---|
328 | <WaypointPatrolController alertnessradius=1000 active=false team=1> |
---|
329 | <waypoints> |
---|
330 | <StaticEntity position="<?lua print (5000*i-15000)?>, 0 ,-10000"/> |
---|
331 | </waypoints> |
---|
332 | <events> |
---|
333 | <activity> |
---|
334 | <EventListener event="atPortal1" /> |
---|
335 | </activity> |
---|
336 | </events> |
---|
337 | </WaypointPatrolController> |
---|
338 | </controller> |
---|
339 | </SpaceShip> |
---|
340 | |
---|
341 | <?lua |
---|
342 | end |
---|
343 | ?> |
---|
344 | |
---|
345 | <!-- ENDE Gegnerische Flotte/ Totenkopfflotte--> |
---|
346 | |
---|
347 | <!-- Boxen um Flotte zu befreien --> |
---|
348 | |
---|
349 | |
---|
350 | <Pawn health=20 position="0, 112900, 0" direction="0,-1,0" name="boxDestroyed" collisionType=dynamic mass=100000 radarname = "Gravitation Box" > |
---|
351 | <attached> |
---|
352 | <Model position="0,0,0" scale="10" mesh="CuboidBody.mesh" /> |
---|
353 | </attached> |
---|
354 | <collisionShapes> |
---|
355 | <BoxCollisionShape position="0,0,0" halfExtents="5,5,5" /> |
---|
356 | </collisionShapes> |
---|
357 | <controller> |
---|
358 | <WaypointController team=1> |
---|
359 | </WaypointController> |
---|
360 | </controller> |
---|
361 | </Pawn> |
---|
362 | |
---|
363 | |
---|
364 | <!-- Flotte Erde--> |
---|
365 | <?lua |
---|
366 | for j = 0, 2, 1 |
---|
367 | do |
---|
368 | ?> |
---|
369 | <?lua |
---|
370 | for i = 0, 2, 1 |
---|
371 | do |
---|
372 | ?> |
---|
373 | |
---|
374 | |
---|
375 | <SpaceShip position="<?lua print(50-i*50) ?>, 113000,<?lua print(50-j*50) ?>" lookat="0,150000,0" maxhealt="200" initialhealth="200" > |
---|
376 | <templates> |
---|
377 | <Template link=spaceshipassff2 /> <!--spaceshipTransporter --> |
---|
378 | </templates> |
---|
379 | <controller> |
---|
380 | <WaypointPatrolController alertnessradius=5000 active=false team=0> |
---|
381 | <waypoints> |
---|
382 | <StaticEntity position="<?lua print(200-i*200) ?>,113000,<?lua print(400-j*400) ?>"/> |
---|
383 | </waypoints> |
---|
384 | <events> |
---|
385 | <activity> |
---|
386 | <EventListener event="boxtrigger" /> |
---|
387 | </activity> |
---|
388 | </events> |
---|
389 | </WaypointPatrolController> |
---|
390 | </controller> |
---|
391 | </SpaceShip> |
---|
392 | |
---|
393 | |
---|
394 | <?lua |
---|
395 | end |
---|
396 | ?> |
---|
397 | |
---|
398 | <?lua |
---|
399 | end |
---|
400 | ?> |
---|
401 | |
---|
402 | <!-- ENDE Flotte Erde--> |
---|
403 | |
---|
404 | <!--Portal--> |
---|
405 | <Template name=PortalDefault> |
---|
406 | <PortalEndPoint> |
---|
407 | <attached> |
---|
408 | <Model mesh="Spacegate.mesh" /> |
---|
409 | </attached> |
---|
410 | </PortalEndPoint> |
---|
411 | </Template> |
---|
412 | |
---|
413 | <PortalEndPoint position="0,112000,0" id="1" pitch="90" distance="40" target="MobileEntity" design="PortalDefault" reenterDelay="0"/> |
---|
414 | <PortalEndPoint position="0,10350,0" id="2" pitch="90" distance="40" target="MobileEntity" design="PortalDefault" reenterDelay="0"/> |
---|
415 | <PortalLink fromID="1" toID="2" /> |
---|
416 | <PortalLink fromID="2" toID="1" /> |
---|
417 | <!--ENDE Portal--> |
---|
418 | |
---|
419 | <!--Heimatplanet--> |
---|
420 | <Planet |
---|
421 | position="0,100000,0" |
---|
422 | scale="10000" |
---|
423 | collisionType="dynamic" |
---|
424 | linearDamping="0.8" |
---|
425 | angularDamping="0" |
---|
426 | mass="5000000" |
---|
427 | pitch="180" |
---|
428 | yaw="0" |
---|
429 | roll="0" |
---|
430 | mesh="planets/earth.mesh" |
---|
431 | atmosphere="atmosphere1" |
---|
432 | rotationaxis="0,0,1" |
---|
433 | rotationrate="5.0" |
---|
434 | atmospheresize="80.0f" |
---|
435 | imagesize="1024.0f" |
---|
436 | collisiondamage = 1 |
---|
437 | enablecollisiondamage = true |
---|
438 | > |
---|
439 | <attached> |
---|
440 | <ForceField position="0,0,0" mode="sphere" diameter="1000" velocity="-500" /> |
---|
441 | </attached> |
---|
442 | <collisionShapes> |
---|
443 | <SphereCollisionShape radius="10000" position="0,0,0" /> |
---|
444 | </collisionShapes> |
---|
445 | </Planet> |
---|
446 | <!--ENDE Heimatplanet--> |
---|
447 | |
---|
448 | </Scene> |
---|
449 | |
---|
450 | </Level> |
---|
451 | |
---|