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