Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

commented some stuff

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