Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

check in

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