1 | <LevelInfo |
---|
2 | name = "New AI testing level" |
---|
3 | description = "A level with two opposing new AI teams" |
---|
4 | tags = "test" |
---|
5 | screenshot = "emptylevel.png" |
---|
6 | /> |
---|
7 | |
---|
8 | <?lua |
---|
9 | include("stats.oxo") |
---|
10 | include("HUDTemplates3.oxo") |
---|
11 | include("templates/lodInformation.oxt") |
---|
12 | ?> |
---|
13 | |
---|
14 | <?lua |
---|
15 | include("templates/spaceshipAssff.oxt") |
---|
16 | include("templates/spaceshipPirate.oxt") |
---|
17 | include("templates/spaceshipEscort.oxt") |
---|
18 | include("templates/spaceshipRing.oxt") |
---|
19 | include("templates/spaceshipSwallow.oxt") |
---|
20 | include("templates/pickupRepresentationTemplates.oxt") |
---|
21 | ?> |
---|
22 | |
---|
23 | |
---|
24 | <Level> |
---|
25 | <templates> |
---|
26 | <Template link=lodtemplate_default /> |
---|
27 | </templates> |
---|
28 | <?lua include("includes/notifications.oxi") ?> |
---|
29 | |
---|
30 | <Scene |
---|
31 | ambientlight = "0.8, 0.8, 0.8" |
---|
32 | skybox = "Orxonox/Starbox" |
---|
33 | > |
---|
34 | <?lua |
---|
35 | include("includes/pickups.oxi") |
---|
36 | ?> |
---|
37 | <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"/> |
---|
38 | <TeamSpawnPoint team=0 position="1500, 1500, 1500" lookat="1,1,-1" spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
39 | |
---|
40 | <!-- |
---|
41 | <PickupSpawner pickup=largedamageboostpickup position="0,0,0" triggerDistance="20" respawnTime="30" maxSpawnedItems="10" /> |
---|
42 | <PickupSpawner pickup=crazyhealthpickup position="0,0,0" triggerDistance="50" respawnTime="30" maxSpawnedItems="10" /> |
---|
43 | <PickupSpawner pickup=hugeshieldpickup position="4000,4500, 4500" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" /> |
---|
44 | <PickupSpawner pickup=smalljumppickup position="6500,6500, 6000" triggerDistance="20" respawnTime="10" maxSpawnedItems="99" /> |
---|
45 | <PickupSpawner pickup=largedamageboostpickup position="9500,9500, 9500" triggerDistance="20" respawnTime="30" maxSpawnedItems="10" /> |
---|
46 | <PickupSpawner pickup=largedamageboostpickup position="13000,13000,13000" triggerDistance="10" respawnTime="30" maxSpawnedItems="10" /> |
---|
47 | --> |
---|
48 | <!-- HERE STARTS DEMO FOR THE "WAYPOINTS" --> |
---|
49 | <!-- |
---|
50 | <SpaceShip position="-1500, -1500, -1500" lookat="0,0,0" team=0 name="ss1"> |
---|
51 | <templates> |
---|
52 | <Template link=spaceshipassff /> |
---|
53 | </templates> |
---|
54 | <controller> |
---|
55 | <DivisionController team=0 formationMode="finger4"> |
---|
56 | <actionpoints> |
---|
57 | <Model mesh="cube.mesh" scale=8 position=" 0,2000,-600" /> |
---|
58 | <Model mesh="cube.mesh" scale=8 position=" 0,2000,-1000" /> |
---|
59 | <Model mesh="cube.mesh" scale=8 position="400,2000,-1000" /> |
---|
60 | <Model mesh="cube.mesh" scale=8 position="400,2000,-600" /> |
---|
61 | </actionpoints> |
---|
62 | </DivisionController> |
---|
63 | </controller> |
---|
64 | </SpaceShip> |
---|
65 | --> |
---|
66 | <!-- those two are same --> |
---|
67 | |
---|
68 | <!-- |
---|
69 | <Model mesh="cube.mesh" scale=8 position=" 0,2000,-600" /> |
---|
70 | <Model mesh="cube.mesh" scale=8 position=" 0,2000,-1000" /> |
---|
71 | <Model mesh="cube.mesh" scale=8 position="400,2000,-1000" /> |
---|
72 | <Model mesh="cube.mesh" scale=8 position="400,2000,-600" /> |
---|
73 | <SpaceShip position="-1500, 1500, -1000" lookat="0,0,0" team=0 name="ss1"> |
---|
74 | <templates> |
---|
75 | <Template link=spaceshipassff /> |
---|
76 | </templates> |
---|
77 | <controller> |
---|
78 | <DivisionController team=0 formationMode="finger4"> |
---|
79 | <actionpoints> |
---|
80 | <Actionpoint position=" 0,2000,-600" action="FLY" loopStart=true/> |
---|
81 | <Actionpoint position=" 0,2000,-1000" action="FLY" /> |
---|
82 | <Actionpoint position="400,2000,-1000" action="FLY" /> |
---|
83 | <Actionpoint position="400,2000,-600" action="FLY" loopEnd=true /> |
---|
84 | </actionpoints> |
---|
85 | </DivisionController> |
---|
86 | </controller> |
---|
87 | </SpaceShip> --> |
---|
88 | |
---|
89 | <!-- HERE ENDS DEMO FOR THE "WAYPOINTS" --> |
---|
90 | |
---|
91 | <!-- HERE STARTS DEMO FOR THE ACTIONPOINTS. |
---|
92 | P.S. Never set protectMe in the first actionpoint: if human didn't spawn, that actionpoint will be skipped --> |
---|
93 | <!-- |
---|
94 | <Model mesh="cube.mesh" scale=8 position="0,0,0" /> |
---|
95 | |
---|
96 | <SpaceShip position="-2000, 1500, -1000" lookat="0,0,0" team=0 name="ss2"> |
---|
97 | <templates> |
---|
98 | <Template link=spaceshipassff /> |
---|
99 | </templates> |
---|
100 | <controller> |
---|
101 | <DivisionController team=0 formationMode="finger4"> |
---|
102 | <actionpoints> |
---|
103 | <Actionpoint position="0,0,0" action="FLY" /> |
---|
104 | <Actionpoint position="-1000,750,-500" action="ATTACK" attack="attack" /> |
---|
105 | <Actionpoint position="-1000,750,-500" action="PROTECt" protectMe=true /> |
---|
106 | <Actionpoint position="-1000,750,-500" action="PROTECt" protect="protect" /> |
---|
107 | <Actionpoint position="-1000,750,-500" action="FIGHTALL" /> |
---|
108 | </actionpoints> |
---|
109 | </DivisionController> |
---|
110 | </controller> |
---|
111 | </SpaceShip> |
---|
112 | <SpaceShip position="-2000, 1900, -1000" lookat="0,0,0" team=0> |
---|
113 | <templates> |
---|
114 | <Template link=spaceshipassff /> |
---|
115 | </templates> |
---|
116 | <controller> |
---|
117 | <SectionController team=0> |
---|
118 | </SectionController> |
---|
119 | </controller> |
---|
120 | </SpaceShip> |
---|
121 | <SpaceShip position="-2000, 2100, -1000" lookat="0,0,0" team=0> |
---|
122 | <templates> |
---|
123 | <Template link=spaceshipassff /> |
---|
124 | </templates> |
---|
125 | <controller> |
---|
126 | <WingmanController team=0> |
---|
127 | </WingmanController> |
---|
128 | </controller> |
---|
129 | </SpaceShip> |
---|
130 | <SpaceShip position="-2000, 2400, -1000" lookat="0,0,0" team=0> |
---|
131 | <templates> |
---|
132 | <Template link=spaceshipassff /> |
---|
133 | </templates> |
---|
134 | <controller> |
---|
135 | <WingmanController team=0> |
---|
136 | </WingmanController> |
---|
137 | </controller> |
---|
138 | </SpaceShip> |
---|
139 | <SpaceShip position="0, 0, 0" lookat="0,0,0" team=2 name="ss4"> |
---|
140 | <templates> |
---|
141 | <Template link=spaceshipassff /> |
---|
142 | </templates> |
---|
143 | </SpaceShip> |
---|
144 | <SpaceShip position="3000, 1000, 2000" lookat="0,0,0" team=2 name="attack"> |
---|
145 | <templates> |
---|
146 | <Template link=spaceshipassff /> |
---|
147 | </templates> |
---|
148 | </SpaceShip> |
---|
149 | <SpaceShip position="-500, -300, -300" lookat="0,0,0" team=0 name="protect"> |
---|
150 | <templates> |
---|
151 | <Template link=spaceshipassff /> |
---|
152 | </templates> |
---|
153 | </SpaceShip> |
---|
154 | --> |
---|
155 | |
---|
156 | <!-- HERE ENDS DEMO FOR THE ACTIONPOINTS --> |
---|
157 | <!-- HERE STARTS DEMO FOR FIGHTING --> |
---|
158 | |
---|
159 | |
---|
160 | <SpaceShip position="-4000, 1500, -1000" lookat="0,0,0" team=0 name="d1sd1"> |
---|
161 | <templates> |
---|
162 | <Template link=spaceshipassff /> |
---|
163 | </templates> |
---|
164 | <controller> |
---|
165 | <DivisionController team=0 formationMode="WALL"> |
---|
166 | |
---|
167 | </DivisionController> |
---|
168 | </controller> |
---|
169 | </SpaceShip> |
---|
170 | <SpaceShip position="-4000, 1900, -1000" lookat="0,0,0" team=0 name="d1ss1"> |
---|
171 | <templates> |
---|
172 | <Template link=spaceshipassff /> |
---|
173 | </templates> |
---|
174 | <controller> |
---|
175 | <SectionController team=0> |
---|
176 | </SectionController> |
---|
177 | </controller> |
---|
178 | </SpaceShip> |
---|
179 | <SpaceShip position="-4000, 2100, -1000" lookat="0,0,0" team=0 name="d1sw1"> |
---|
180 | <templates> |
---|
181 | <Template link=spaceshipassff /> |
---|
182 | </templates> |
---|
183 | <controller> |
---|
184 | <WingmanController team=0> |
---|
185 | </WingmanController> |
---|
186 | </controller> |
---|
187 | </SpaceShip> |
---|
188 | <SpaceShip position="-4000, 2400, -1000" lookat="0,0,0" team=0 name="d1sw2"> |
---|
189 | <templates> |
---|
190 | <Template link=spaceshipassff /> |
---|
191 | </templates> |
---|
192 | <controller> |
---|
193 | <WingmanController team=0> |
---|
194 | </WingmanController> |
---|
195 | </controller> |
---|
196 | </SpaceShip> |
---|
197 | <SpaceShip position="-5000, 1500, -1000" lookat="0,0,0" team=0 name="d1s1d1"> |
---|
198 | <templates> |
---|
199 | <Template link=spaceshipassff /> |
---|
200 | </templates> |
---|
201 | <controller> |
---|
202 | <DivisionController team=0 formationMode="WALL"> |
---|
203 | |
---|
204 | </DivisionController> |
---|
205 | </controller> |
---|
206 | </SpaceShip> |
---|
207 | <SpaceShip position="-5000, 1900, -1000" lookat="0,0,0" team=0 name="d1s1s1"> |
---|
208 | <templates> |
---|
209 | <Template link=spaceshipassff /> |
---|
210 | </templates> |
---|
211 | <controller> |
---|
212 | <SectionController team=0> |
---|
213 | </SectionController> |
---|
214 | </controller> |
---|
215 | </SpaceShip> |
---|
216 | <SpaceShip position="-5000, 2100, -1000" lookat="0,0,0" team=0 name="d1s1w1"> |
---|
217 | <templates> |
---|
218 | <Template link=spaceshipassff /> |
---|
219 | </templates> |
---|
220 | <controller> |
---|
221 | <WingmanController team=0> |
---|
222 | </WingmanController> |
---|
223 | </controller> |
---|
224 | </SpaceShip> |
---|
225 | <SpaceShip position="-5000, 2400, -1000" lookat="0,0,0" team=0 name="d1s1w2"> |
---|
226 | <templates> |
---|
227 | <Template link=spaceshipassff /> |
---|
228 | </templates> |
---|
229 | <controller> |
---|
230 | <WingmanController team=0> |
---|
231 | </WingmanController> |
---|
232 | </controller> |
---|
233 | </SpaceShip> |
---|
234 | |
---|
235 | <SpaceShip position="2000, -1500, 1000" lookat="0,0,0" team=1 name="d2sd1"> |
---|
236 | <templates> |
---|
237 | <Template link=spaceshipassff /> |
---|
238 | </templates> |
---|
239 | <controller> |
---|
240 | <DivisionController team=1 formationMode="WALL"> |
---|
241 | |
---|
242 | </DivisionController> |
---|
243 | </controller> |
---|
244 | </SpaceShip> |
---|
245 | <SpaceShip position="2000, -1900, 1000" lookat="0,0,0" team=1 name="d2ss1"> |
---|
246 | <templates> |
---|
247 | <Template link=spaceshipassff /> |
---|
248 | </templates> |
---|
249 | <controller> |
---|
250 | <SectionController team=1> |
---|
251 | </SectionController> |
---|
252 | </controller> |
---|
253 | </SpaceShip> |
---|
254 | <SpaceShip position="2000, -2100, 1000" lookat="0,0,0" team=1 name="d2sw1"> |
---|
255 | <templates> |
---|
256 | <Template link=spaceshipassff /> |
---|
257 | </templates> |
---|
258 | <controller> |
---|
259 | <WingmanController team=1> |
---|
260 | </WingmanController> |
---|
261 | </controller> |
---|
262 | </SpaceShip> |
---|
263 | <SpaceShip position="2000, -2400, 1000" lookat="0,0,0" team=1 name="d2sw2"> |
---|
264 | <templates> |
---|
265 | <Template link=spaceshipassff /> |
---|
266 | </templates> |
---|
267 | <controller> |
---|
268 | <WingmanController team=1> |
---|
269 | </WingmanController> |
---|
270 | </controller> |
---|
271 | </SpaceShip> |
---|
272 | <SpaceShip position="1000, -1500, 1000" lookat="0,0,0" team=1 name="d2s1d1"> |
---|
273 | <templates> |
---|
274 | <Template link=spaceshipassff /> |
---|
275 | </templates> |
---|
276 | <controller> |
---|
277 | <DivisionController team=1 formationMode="WALL"> |
---|
278 | |
---|
279 | </DivisionController> |
---|
280 | </controller> |
---|
281 | </SpaceShip> |
---|
282 | <SpaceShip position="1000, -1900, 1000" lookat="0,0,0" team=1 name="d2s1s1"> |
---|
283 | <templates> |
---|
284 | <Template link=spaceshipassff /> |
---|
285 | </templates> |
---|
286 | <controller> |
---|
287 | <SectionController team=1> |
---|
288 | </SectionController> |
---|
289 | </controller> |
---|
290 | </SpaceShip> |
---|
291 | <SpaceShip position="1000, -2100, 1000" lookat="0,0,0" team=1 name="d2s1w1"> |
---|
292 | <templates> |
---|
293 | <Template link=spaceshipassff /> |
---|
294 | </templates> |
---|
295 | <controller> |
---|
296 | <WingmanController team=1> |
---|
297 | </WingmanController> |
---|
298 | </controller> |
---|
299 | </SpaceShip> |
---|
300 | <SpaceShip position="1000, -2400, 1000" lookat="0,0,0" team=1 name="d2s1w2"> |
---|
301 | <templates> |
---|
302 | <Template link=spaceshipassff /> |
---|
303 | </templates> |
---|
304 | <controller> |
---|
305 | <WingmanController team=1> |
---|
306 | </WingmanController> |
---|
307 | </controller> |
---|
308 | </SpaceShip> |
---|
309 | <!-- <SpaceShip position="2000, -1500, 3000" lookat="0,0,0" team=1> |
---|
310 | <templates> |
---|
311 | <Template link=spaceshipassff /> |
---|
312 | </templates> |
---|
313 | <controller> |
---|
314 | <DivisionController team=1 formationMode="WALL"> |
---|
315 | |
---|
316 | </DivisionController> |
---|
317 | </controller> |
---|
318 | </SpaceShip> |
---|
319 | <SpaceShip position="2000, -1900, 3000" lookat="0,0,0" team=1> |
---|
320 | <templates> |
---|
321 | <Template link=spaceshipassff /> |
---|
322 | </templates> |
---|
323 | <controller> |
---|
324 | <SectionController team=1> |
---|
325 | </SectionController> |
---|
326 | </controller> |
---|
327 | </SpaceShip> |
---|
328 | --> |
---|
329 | |
---|
330 | <!-- HERE ENDS DEMO FOR FIGHTING --> |
---|
331 | <!-- HERE STARTS DEMO FOR FORMATIONS --> |
---|
332 | <!-- |
---|
333 | <Model mesh="cube.mesh" scale=8 position=" 0,2000, 0" /> |
---|
334 | <Model mesh="cube.mesh" scale=8 position=" 0,2000,-2000" /> |
---|
335 | <Model mesh="cube.mesh" scale=8 position="2000,2000,-2000" /> |
---|
336 | <Model mesh="cube.mesh" scale=8 position="2000,2000, 0" /> |
---|
337 | |
---|
338 | <SpaceShip position="-1500, 1500, -1000" lookat="0,0,0" team=0 name="ss1"> |
---|
339 | <templates> |
---|
340 | <Template link=spaceshipassff /> |
---|
341 | </templates> |
---|
342 | <controller> |
---|
343 | <DivisionController team=0 formationMode="diamond" spread=100> |
---|
344 | <actionpoints> |
---|
345 | <Actionpoint position=" 0,2000, 0" action="FLY" loopStart=true/> |
---|
346 | <Actionpoint position=" 0,2000,-2000" action="FLY" /> |
---|
347 | <Actionpoint position="2000,2000,-2000" action="FLY" /> |
---|
348 | <Actionpoint position="2000,2000, 0" action="FLY" loopEnd=true /> |
---|
349 | </actionpoints> |
---|
350 | </DivisionController> |
---|
351 | </controller> |
---|
352 | </SpaceShip> |
---|
353 | |
---|
354 | <SpaceShip position="-2000, 1900, -1000" lookat="0,0,0" team=0> |
---|
355 | <templates> |
---|
356 | <Template link=spaceshipassff /> |
---|
357 | </templates> |
---|
358 | <controller> |
---|
359 | <SectionController team=0> |
---|
360 | </SectionController> |
---|
361 | </controller> |
---|
362 | </SpaceShip> |
---|
363 | <SpaceShip position="-2000, 2100, -1000" lookat="0,0,0" team=0> |
---|
364 | <templates> |
---|
365 | <Template link=spaceshipassff /> |
---|
366 | </templates> |
---|
367 | <controller> |
---|
368 | <WingmanController team=0> |
---|
369 | </WingmanController> |
---|
370 | </controller> |
---|
371 | </SpaceShip> |
---|
372 | <SpaceShip position="-2000, 2400, -1000" lookat="0,0,0" team=0> |
---|
373 | <templates> |
---|
374 | <Template link=spaceshipassff /> |
---|
375 | </templates> |
---|
376 | <controller> |
---|
377 | <WingmanController team=0> |
---|
378 | </WingmanController> |
---|
379 | </controller> |
---|
380 | </SpaceShip> |
---|
381 | --> |
---|
382 | <!-- HERE ENDS DEMO FOR FORMATIONS --> |
---|
383 | <!-- 1 division is roughly equal to 6 AIControllers--!> |
---|
384 | <!-- |
---|
385 | <SpaceShip position="2000, -1500, 1000" lookat="0,0,0" team=1 > |
---|
386 | <templates> |
---|
387 | <Template link=spaceshipassff /> |
---|
388 | </templates> |
---|
389 | <controller> |
---|
390 | <DivisionController team=1 formationMode="WALL"> |
---|
391 | |
---|
392 | </DivisionController> |
---|
393 | </controller> |
---|
394 | </SpaceShip> |
---|
395 | <SpaceShip position="2000, -1900, 1000" lookat="0,0,0" team=1> |
---|
396 | <templates> |
---|
397 | <Template link=spaceshipassff /> |
---|
398 | </templates> |
---|
399 | <controller> |
---|
400 | <SectionController team=1> |
---|
401 | </SectionController> |
---|
402 | </controller> |
---|
403 | </SpaceShip> |
---|
404 | <SpaceShip position="2000, -2100, 1000" lookat="0,0,0" team=1> |
---|
405 | <templates> |
---|
406 | <Template link=spaceshipassff /> |
---|
407 | </templates> |
---|
408 | <controller> |
---|
409 | <WingmanController team=1> |
---|
410 | </WingmanController> |
---|
411 | </controller> |
---|
412 | </SpaceShip> |
---|
413 | <SpaceShip position="2000, -2400, 1000" lookat="0,0,0" team=1> |
---|
414 | <templates> |
---|
415 | <Template link=spaceshipassff /> |
---|
416 | </templates> |
---|
417 | <controller> |
---|
418 | <WingmanController team=1> |
---|
419 | </WingmanController> |
---|
420 | </controller> |
---|
421 | </SpaceShip> |
---|
422 | |
---|
423 | <?lua |
---|
424 | for i = 0, 5, 1 do |
---|
425 | ?> |
---|
426 | <SpaceShip position="<?lua print(7000) ?>,<?lua print(i*500) ?>,<?lua print(0) ?>" team=2> |
---|
427 | <templates> |
---|
428 | <Template link=spaceshipassff /> |
---|
429 | </templates> |
---|
430 | <controller> |
---|
431 | <AIController team=2 /> |
---|
432 | </controller> |
---|
433 | </SpaceShip> |
---|
434 | <?lua end ?> --> |
---|
435 | |
---|
436 | |
---|
437 | </Scene> |
---|
438 | </Level> |
---|
439 | |
---|