Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/AITest.oxw @ 11648

Last change on this file since 11648 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
RevLine 
[10655]1<LevelInfo
[10805]2 name = "New AI testing level"
3 description = "A level with two opposing new AI teams"
[10655]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")
[10888]20  include("templates/pickupRepresentationTemplates.oxt")
[10655]21?>
22
[10888]23
[10655]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  >
[10888]34    <?lua
35      include("includes/pickups.oxi")
36    ?>
[10655]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"/>
[10912]38    <TeamSpawnPoint team=0 position="2000, 2000, 2000" lookat="1,1,-1" spawnclass=SpaceShip pawndesign=spaceshipassff />
[10915]39       
[10953]40    <Pawn position = "100000, 100000, 100000">
41      <controller>
42        <MasterController>
43        </MasterController>
44      </controller>
45    </Pawn>
[10888]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 -->
[10859]54<!-- HERE STARTS DEMO FOR THE "WAYPOINTS" -->
[10883]55      <!--
[10888]56    <SpaceShip position="-1500, -1500, -1500" lookat="0,0,0" team=0 name="ss1">
57      <templates>
58        <Template link=spaceshipassff />
59      </templates>
60      <controller>
[10912]61        <DivisionController team=1 formationMode="finger4">
[10888]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 <!--   
[10859]75    <Model mesh="cube.mesh" scale=8 position="  0,2000,-600" />
[10888]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" />
[10855]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>
[10859]86            <Actionpoint position="  0,2000,-600" action="FLY" loopStart=true/>
[10888]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 />
[10855]90          </actionpoints>
91        </DivisionController>
92      </controller>
[10888]93    </SpaceShip>  -->
94   
[10859]95<!-- HERE ENDS DEMO FOR THE "WAYPOINTS" -->
96
[10861]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 -->
[10925]99       <!--
[10859]100    <Model mesh="cube.mesh" scale=8 position="0,0,0" />
101
[10851]102    <SpaceShip position="-2000, 1500, -1000" lookat="0,0,0" team=0 name="ss2">
[10847]103      <templates>
104        <Template link=spaceshipassff />
105      </templates>
106      <controller>
[10854]107        <DivisionController team=0 formationMode="finger4">
[10847]108          <actionpoints>
[10861]109            <Actionpoint position="0,0,0" action="FLY" />
[10898]110            <Actionpoint position="-1000,750,-500" action="ATTACK" attack="attack" />
[10861]111            <Actionpoint position="-1000,750,-500" action="PROTECt" protectMe=true />
[10898]112            <Actionpoint position="-1000,750,-500" action="PROTECt" protect="protect" />
[10861]113            <Actionpoint position="-1000,750,-500" action="FIGHTALL" />
114           </actionpoints>
[10847]115        </DivisionController>
116      </controller>
117    </SpaceShip>
[10854]118    <SpaceShip position="-2000, 1900, -1000" lookat="0,0,0" team=0>
[10851]119      <templates>
120        <Template link=spaceshipassff />
121      </templates>
122      <controller>
123        <SectionController team=0>
124        </SectionController>
125      </controller>
126    </SpaceShip>
[10859]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>
[10849]145    <SpaceShip position="0, 0, 0" lookat="0,0,0" team=2 name="ss4">
146      <templates>
147        <Template link=spaceshipassff />
148      </templates>
149    </SpaceShip>
[10898]150    <SpaceShip position="3000, 1000, 2000" lookat="0,0,0" team=2 name="attack">
[10849]151      <templates>
152        <Template link=spaceshipassff />
153      </templates>
154    </SpaceShip>
[10898]155    <SpaceShip position="-500, -300, -300" lookat="0,0,0" team=0 name="protect">
[10849]156      <templates>
157        <Template link=spaceshipassff />
158      </templates>
159    </SpaceShip>
[10925]160  -->
[10898]161   
[10859]162<!-- HERE ENDS DEMO FOR THE ACTIONPOINTS -->
163<!-- HERE STARTS DEMO FOR FIGHTING -->
[10974]164   
[10909]165
[10903]166    <SpaceShip position="-4000, 1500, -1000" lookat="0,0,0" team=0 name="d1sd1">
[10759]167      <templates>
168        <Template link=spaceshipassff />
169      </templates>
170      <controller>
[10870]171        <DivisionController team=0 formationMode="WALL">
[10885]172
[10859]173        </DivisionController>
174      </controller>
175    </SpaceShip>
[10903]176    <SpaceShip position="-4000, 1900, -1000" lookat="0,0,0" team=0 name="d1ss1">
[10859]177      <templates>
178        <Template link=spaceshipassff />
179      </templates>
180      <controller>
181        <SectionController team=0>
182        </SectionController>
183      </controller>
184    </SpaceShip>
[10903]185    <SpaceShip position="-4000, 2100, -1000" lookat="0,0,0" team=0 name="d1sw1">
[10859]186      <templates>
187        <Template link=spaceshipassff />
188      </templates>
189      <controller>
[10840]190        <WingmanController team=0>
[10759]191        </WingmanController>
192      </controller>
193    </SpaceShip>
[10903]194    <SpaceShip position="-4000, 2400, -1000" lookat="0,0,0" team=0 name="d1sw2">
[10759]195      <templates>
196        <Template link=spaceshipassff />
197      </templates>
198      <controller>
[10840]199        <WingmanController team=0>
[10759]200        </WingmanController>
201      </controller>
202    </SpaceShip>
[10859]203
[10903]204    <SpaceShip position="2000, -1500, 1000" lookat="0,0,0" team=1  name="d2sd1">
[10759]205      <templates>
206        <Template link=spaceshipassff />
207      </templates>
208      <controller>
[10925]209        <DivisionController team=1 formationMode="DIAMOND">
[10885]210
[10859]211        </DivisionController>
[10759]212      </controller>
[10805]213    </SpaceShip>
[10903]214    <SpaceShip position="2000, -1900, 1000" lookat="0,0,0" team=1 name="d2ss1">
[10838]215      <templates>
216        <Template link=spaceshipassff />
217      </templates>
218      <controller>
[10859]219        <SectionController team=1>
[10838]220        </SectionController>
221      </controller>
[10859]222    </SpaceShip>
[10903]223    <SpaceShip position="2000, -2100, 1000" lookat="0,0,0" team=1 name="d2sw1">
[10709]224      <templates>
225        <Template link=spaceshipassff />
226      </templates>
227      <controller>
[10859]228        <WingmanController team=1>
229        </WingmanController>
[10717]230      </controller>
231    </SpaceShip>
[10903]232    <SpaceShip position="2000, -2400, 1000" lookat="0,0,0" team=1 name="d2sw2">
[10717]233      <templates>
234        <Template link=spaceshipassff />
235      </templates>
236      <controller>
[10859]237        <WingmanController team=1>
[10709]238        </WingmanController>
239      </controller>
[10974]240    </SpaceShip>
[10925]241
[10859]242<!-- HERE ENDS DEMO FOR FIGHTING -->
243<!-- HERE STARTS DEMO FOR FORMATIONS -->
[10974]244    <!--
[10859]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>
[10880]255        <DivisionController team=0 formationMode="diamond" spread=100>
[10859]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>
[10709]264    </SpaceShip>
[10859]265
266    <SpaceShip position="-2000, 1900, -1000" lookat="0,0,0" team=0>
[10725]267      <templates>
268        <Template link=spaceshipassff />
269      </templates>
270      <controller>
[10859]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>
[10725]281        </WingmanController>
282      </controller>
283    </SpaceShip>
[10859]284    <SpaceShip position="-2000, 2400, -1000" lookat="0,0,0" team=0>
[10717]285      <templates>
286        <Template link=spaceshipassff />
287      </templates>
288      <controller>
[10859]289        <WingmanController team=0>
290        </WingmanController>
[10717]291      </controller>
[10859]292    </SpaceShip>
[10974]293    -->
[10859]294<!-- HERE ENDS DEMO FOR FORMATIONS -->
[10886]295    <!-- 1 division is roughly equal to 6 AIControllers--!>
296<!--
297    <SpaceShip position="2000, -1500, 1000" lookat="0,0,0" team=1 >
[10877]298      <templates>
299        <Template link=spaceshipassff />
300      </templates>
301      <controller>
[10886]302        <DivisionController team=1 formationMode="WALL">
303
[10877]304        </DivisionController>
305      </controller>
306    </SpaceShip>
[10886]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>
[10885]334
[10886]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
[10655]349  </Scene>
350</Level>
351
Note: See TracBrowser for help on using the repository browser.