Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/plehmannFS16/data/levels/AITest.oxw @ 11479

Last change on this file since 11479 was 11052, checked in by landauf, 9 years ago

merged branch presentationHS15 back to trunk

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