Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 10903 was 10903, checked in by gania, 8 years ago

AI attacks targets that are close

File size: 11.9 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="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.
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
198    <SpaceShip position="2000, -1500, 1000" lookat="0,0,0" team=1  name="d2sd1">
199      <templates>
200        <Template link=spaceshipassff />
201      </templates>
202      <controller>
203        <DivisionController team=1 formationMode="WALL">
204
205        </DivisionController>
206      </controller>
207    </SpaceShip>
208    <SpaceShip position="2000, -1900, 1000" lookat="0,0,0" team=1 name="d2ss1">
209      <templates>
210        <Template link=spaceshipassff />
211      </templates>
212      <controller>
213        <SectionController team=1>
214        </SectionController>
215      </controller>
216    </SpaceShip>
217    <SpaceShip position="2000, -2100, 1000" lookat="0,0,0" team=1 name="d2sw1">
218      <templates>
219        <Template link=spaceshipassff />
220      </templates>
221      <controller>
222        <WingmanController team=1>
223        </WingmanController>
224      </controller>
225    </SpaceShip>
226    <SpaceShip position="2000, -2400, 1000" lookat="0,0,0" team=1 name="d2sw2">
227      <templates>
228        <Template link=spaceshipassff />
229      </templates>
230      <controller>
231        <WingmanController team=1>
232        </WingmanController>
233      </controller>
234    </SpaceShip>
235   <!--  <SpaceShip position="2000, -1500, 3000" lookat="0,0,0" team=1>
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, 3000" lookat="0,0,0" team=1>
246      <templates>
247        <Template link=spaceshipassff />
248      </templates>
249      <controller>
250        <SectionController team=1>
251        </SectionController>
252      </controller>
253    </SpaceShip>
254 -->
255   
256<!-- HERE ENDS DEMO FOR FIGHTING -->
257<!-- HERE STARTS DEMO FOR FORMATIONS -->
258    <!--
259    <Model mesh="cube.mesh" scale=8 position="   0,2000,    0" />
260    <Model mesh="cube.mesh" scale=8 position="   0,2000,-2000" />
261    <Model mesh="cube.mesh" scale=8 position="2000,2000,-2000" />
262    <Model mesh="cube.mesh" scale=8 position="2000,2000,    0" />
263
264    <SpaceShip position="-1500, 1500, -1000" lookat="0,0,0" team=0 name="ss1">
265      <templates>
266        <Template link=spaceshipassff />
267      </templates>
268      <controller>
269        <DivisionController team=0 formationMode="diamond" spread=100>
270          <actionpoints>
271            <Actionpoint position="   0,2000,    0" action="FLY" loopStart=true/>
272            <Actionpoint position="   0,2000,-2000" action="FLY"  />
273            <Actionpoint position="2000,2000,-2000" action="FLY" />
274            <Actionpoint position="2000,2000,    0" action="FLY" loopEnd=true />
275          </actionpoints>
276        </DivisionController>
277      </controller>
278    </SpaceShip>
279
280    <SpaceShip position="-2000, 1900, -1000" lookat="0,0,0" team=0>
281      <templates>
282        <Template link=spaceshipassff />
283      </templates>
284      <controller>
285        <SectionController team=0>
286        </SectionController>
287      </controller>
288    </SpaceShip>
289    <SpaceShip position="-2000, 2100, -1000" lookat="0,0,0" team=0>
290      <templates>
291        <Template link=spaceshipassff />
292      </templates>
293      <controller>
294        <WingmanController team=0>
295        </WingmanController>
296      </controller>
297    </SpaceShip>
298    <SpaceShip position="-2000, 2400, -1000" lookat="0,0,0" team=0>
299      <templates>
300        <Template link=spaceshipassff />
301      </templates>
302      <controller>
303        <WingmanController team=0>
304        </WingmanController>
305      </controller>
306    </SpaceShip>
307    -->
308<!-- HERE ENDS DEMO FOR FORMATIONS -->
309    <!-- 1 division is roughly equal to 6 AIControllers--!>
310<!--
311    <SpaceShip position="2000, -1500, 1000" lookat="0,0,0" team=1 >
312      <templates>
313        <Template link=spaceshipassff />
314      </templates>
315      <controller>
316        <DivisionController team=1 formationMode="WALL">
317
318        </DivisionController>
319      </controller>
320    </SpaceShip>
321    <SpaceShip position="2000, -1900, 1000" lookat="0,0,0" team=1>
322      <templates>
323        <Template link=spaceshipassff />
324      </templates>
325      <controller>
326        <SectionController team=1>
327        </SectionController>
328      </controller>
329    </SpaceShip>
330    <SpaceShip position="2000, -2100, 1000" lookat="0,0,0" team=1>
331      <templates>
332        <Template link=spaceshipassff />
333      </templates>
334      <controller>
335        <WingmanController team=1>
336        </WingmanController>
337      </controller>
338    </SpaceShip>
339    <SpaceShip position="2000, -2400, 1000" lookat="0,0,0" team=1>
340      <templates>
341        <Template link=spaceshipassff />
342      </templates>
343      <controller>
344        <WingmanController team=1>
345        </WingmanController>
346      </controller>
347    </SpaceShip>
348
349    <?lua
350      for i = 0, 5, 1 do
351        ?>
352      <SpaceShip position="<?lua print(7000) ?>,<?lua print(i*500) ?>,<?lua print(0) ?>" team=2>
353        <templates>
354          <Template link=spaceshipassff />
355        </templates>
356        <controller>
357          <AIController team=2 />
358        </controller>
359      </SpaceShip>
360    <?lua end ?> -->
361   
362
363  </Scene>
364</Level>
365
Note: See TracBrowser for help on using the repository browser.