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