Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/campaignHS15/data/levels/AITest.oxw @ 10912

Last change on this file since 10912 was 10912, checked in by gania, 9 years ago

defaultPatrol and defaultFightAll XML commands

File size: 13.6 KB
Line 
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    <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=1 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.
92P.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
310<!-- HERE ENDS DEMO FOR FIGHTING -->
311<!-- HERE STARTS DEMO FOR FORMATIONS -->
312    <!--
313    <Model mesh="cube.mesh" scale=8 position="   0,2000,    0" />
314    <Model mesh="cube.mesh" scale=8 position="   0,2000,-2000" />
315    <Model mesh="cube.mesh" scale=8 position="2000,2000,-2000" />
316    <Model mesh="cube.mesh" scale=8 position="2000,2000,    0" />
317
318    <SpaceShip position="-1500, 1500, -1000" lookat="0,0,0" team=0 name="ss1">
319      <templates>
320        <Template link=spaceshipassff />
321      </templates>
322      <controller>
323        <DivisionController team=0 formationMode="diamond" spread=100>
324          <actionpoints>
325            <Actionpoint position="   0,2000,    0" action="FLY" loopStart=true/>
326            <Actionpoint position="   0,2000,-2000" action="FLY"  />
327            <Actionpoint position="2000,2000,-2000" action="FLY" />
328            <Actionpoint position="2000,2000,    0" action="FLY" loopEnd=true />
329          </actionpoints>
330        </DivisionController>
331      </controller>
332    </SpaceShip>
333
334    <SpaceShip position="-2000, 1900, -1000" lookat="0,0,0" team=0>
335      <templates>
336        <Template link=spaceshipassff />
337      </templates>
338      <controller>
339        <SectionController team=0>
340        </SectionController>
341      </controller>
342    </SpaceShip>
343    <SpaceShip position="-2000, 2100, -1000" lookat="0,0,0" team=0>
344      <templates>
345        <Template link=spaceshipassff />
346      </templates>
347      <controller>
348        <WingmanController team=0>
349        </WingmanController>
350      </controller>
351    </SpaceShip>
352    <SpaceShip position="-2000, 2400, -1000" lookat="0,0,0" team=0>
353      <templates>
354        <Template link=spaceshipassff />
355      </templates>
356      <controller>
357        <WingmanController team=0>
358        </WingmanController>
359      </controller>
360    </SpaceShip>
361    -->
362<!-- HERE ENDS DEMO FOR FORMATIONS -->
363    <!-- 1 division is roughly equal to 6 AIControllers--!>
364<!--
365    <SpaceShip position="2000, -1500, 1000" lookat="0,0,0" team=1 >
366      <templates>
367        <Template link=spaceshipassff />
368      </templates>
369      <controller>
370        <DivisionController team=1 formationMode="WALL">
371
372        </DivisionController>
373      </controller>
374    </SpaceShip>
375    <SpaceShip position="2000, -1900, 1000" lookat="0,0,0" team=1>
376      <templates>
377        <Template link=spaceshipassff />
378      </templates>
379      <controller>
380        <SectionController team=1>
381        </SectionController>
382      </controller>
383    </SpaceShip>
384    <SpaceShip position="2000, -2100, 1000" lookat="0,0,0" team=1>
385      <templates>
386        <Template link=spaceshipassff />
387      </templates>
388      <controller>
389        <WingmanController team=1>
390        </WingmanController>
391      </controller>
392    </SpaceShip>
393    <SpaceShip position="2000, -2400, 1000" lookat="0,0,0" team=1>
394      <templates>
395        <Template link=spaceshipassff />
396      </templates>
397      <controller>
398        <WingmanController team=1>
399        </WingmanController>
400      </controller>
401    </SpaceShip>
402
403    <?lua
404      for i = 0, 5, 1 do
405        ?>
406      <SpaceShip position="<?lua print(7000) ?>,<?lua print(i*500) ?>,<?lua print(0) ?>" team=2>
407        <templates>
408          <Template link=spaceshipassff />
409        </templates>
410        <controller>
411          <AIController team=2 />
412        </controller>
413      </SpaceShip>
414    <?lua end ?> -->
415   
416
417  </Scene>
418</Level>
419
Note: See TracBrowser for help on using the repository browser.