Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 10907 was 10906, checked in by gania, 9 years ago

tried to fix fighting whn fps is low

File size: 14.1 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"/>
[10898]38    <TeamSpawnPoint team=0 position="1500, 1500, 1500" lookat="1,1,-1" spawnclass=SpaceShip pawndesign=spaceshipassff />
[10838]39   
[10888]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 -->
[10859]48<!-- HERE STARTS DEMO FOR THE "WAYPOINTS" -->
[10883]49      <!--
[10888]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 <!--   
[10859]69    <Model mesh="cube.mesh" scale=8 position="  0,2000,-600" />
[10888]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" />
[10855]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>
[10859]80            <Actionpoint position="  0,2000,-600" action="FLY" loopStart=true/>
[10888]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 />
[10855]84          </actionpoints>
85        </DivisionController>
86      </controller>
[10888]87    </SpaceShip>  -->
88   
[10859]89<!-- HERE ENDS DEMO FOR THE "WAYPOINTS" -->
90
[10861]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 -->
[10888]93       <!--
[10859]94    <Model mesh="cube.mesh" scale=8 position="0,0,0" />
95
[10851]96    <SpaceShip position="-2000, 1500, -1000" lookat="0,0,0" team=0 name="ss2">
[10847]97      <templates>
98        <Template link=spaceshipassff />
99      </templates>
100      <controller>
[10854]101        <DivisionController team=0 formationMode="finger4">
[10847]102          <actionpoints>
[10861]103            <Actionpoint position="0,0,0" action="FLY" />
[10898]104            <Actionpoint position="-1000,750,-500" action="ATTACK" attack="attack" />
[10861]105            <Actionpoint position="-1000,750,-500" action="PROTECt" protectMe=true />
[10898]106            <Actionpoint position="-1000,750,-500" action="PROTECt" protect="protect" />
[10861]107            <Actionpoint position="-1000,750,-500" action="FIGHTALL" />
108           </actionpoints>
[10847]109        </DivisionController>
110      </controller>
111    </SpaceShip>
[10854]112    <SpaceShip position="-2000, 1900, -1000" lookat="0,0,0" team=0>
[10851]113      <templates>
114        <Template link=spaceshipassff />
115      </templates>
116      <controller>
117        <SectionController team=0>
118        </SectionController>
119      </controller>
120    </SpaceShip>
[10859]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>
[10849]139    <SpaceShip position="0, 0, 0" lookat="0,0,0" team=2 name="ss4">
140      <templates>
141        <Template link=spaceshipassff />
142      </templates>
143    </SpaceShip>
[10898]144    <SpaceShip position="3000, 1000, 2000" lookat="0,0,0" team=2 name="attack">
[10849]145      <templates>
146        <Template link=spaceshipassff />
147      </templates>
148    </SpaceShip>
[10898]149    <SpaceShip position="-500, -300, -300" lookat="0,0,0" team=0 name="protect">
[10849]150      <templates>
151        <Template link=spaceshipassff />
152      </templates>
153    </SpaceShip>
[10898]154  -->
155   
[10859]156<!-- HERE ENDS DEMO FOR THE ACTIONPOINTS -->
157<!-- HERE STARTS DEMO FOR FIGHTING -->
[10888]158   
[10906]159<!--
[10903]160    <SpaceShip position="-4000, 1500, -1000" lookat="0,0,0" team=0 name="d1sd1">
[10759]161      <templates>
162        <Template link=spaceshipassff />
163      </templates>
164      <controller>
[10870]165        <DivisionController team=0 formationMode="WALL">
[10885]166
[10859]167        </DivisionController>
168      </controller>
169    </SpaceShip>
[10903]170    <SpaceShip position="-4000, 1900, -1000" lookat="0,0,0" team=0 name="d1ss1">
[10859]171      <templates>
172        <Template link=spaceshipassff />
173      </templates>
174      <controller>
175        <SectionController team=0>
176        </SectionController>
177      </controller>
178    </SpaceShip>
[10903]179    <SpaceShip position="-4000, 2100, -1000" lookat="0,0,0" team=0 name="d1sw1">
[10859]180      <templates>
181        <Template link=spaceshipassff />
182      </templates>
183      <controller>
[10840]184        <WingmanController team=0>
[10759]185        </WingmanController>
186      </controller>
187    </SpaceShip>
[10903]188    <SpaceShip position="-4000, 2400, -1000" lookat="0,0,0" team=0 name="d1sw2">
[10759]189      <templates>
190        <Template link=spaceshipassff />
191      </templates>
192      <controller>
[10840]193        <WingmanController team=0>
[10759]194        </WingmanController>
195      </controller>
196    </SpaceShip>
[10906]197    <SpaceShip position="-5000, 1500, -1000" lookat="0,0,0" team=0 name="d1s1d1">
198      <templates>
199        <Template link=spaceshipassff />
200      </templates>
201      <controller>
202        <DivisionController team=0 formationMode="WALL">
[10859]203
[10906]204        </DivisionController>
205      </controller>
206    </SpaceShip>
207    <SpaceShip position="-5000, 1900, -1000" lookat="0,0,0" team=0 name="d1s1s1">
208      <templates>
209        <Template link=spaceshipassff />
210      </templates>
211      <controller>
212        <SectionController team=0>
213        </SectionController>
214      </controller>
215    </SpaceShip>
216    <SpaceShip position="-5000, 2100, -1000" lookat="0,0,0" team=0 name="d1s1w1">
217      <templates>
218        <Template link=spaceshipassff />
219      </templates>
220      <controller>
221        <WingmanController team=0>
222        </WingmanController>
223      </controller>
224    </SpaceShip>
225    <SpaceShip position="-5000, 2400, -1000" lookat="0,0,0" team=0 name="d1s1w2">
226      <templates>
227        <Template link=spaceshipassff />
228      </templates>
229      <controller>
230        <WingmanController team=0>
231        </WingmanController>
232      </controller>
233    </SpaceShip>
234
[10903]235    <SpaceShip position="2000, -1500, 1000" lookat="0,0,0" team=1  name="d2sd1">
[10759]236      <templates>
237        <Template link=spaceshipassff />
238      </templates>
239      <controller>
[10859]240        <DivisionController team=1 formationMode="WALL">
[10885]241
[10859]242        </DivisionController>
[10759]243      </controller>
[10805]244    </SpaceShip>
[10903]245    <SpaceShip position="2000, -1900, 1000" lookat="0,0,0" team=1 name="d2ss1">
[10838]246      <templates>
247        <Template link=spaceshipassff />
248      </templates>
249      <controller>
[10859]250        <SectionController team=1>
[10838]251        </SectionController>
252      </controller>
[10859]253    </SpaceShip>
[10903]254    <SpaceShip position="2000, -2100, 1000" lookat="0,0,0" team=1 name="d2sw1">
[10709]255      <templates>
256        <Template link=spaceshipassff />
257      </templates>
258      <controller>
[10859]259        <WingmanController team=1>
260        </WingmanController>
[10717]261      </controller>
262    </SpaceShip>
[10903]263    <SpaceShip position="2000, -2400, 1000" lookat="0,0,0" team=1 name="d2sw2">
[10717]264      <templates>
265        <Template link=spaceshipassff />
266      </templates>
267      <controller>
[10859]268        <WingmanController team=1>
[10709]269        </WingmanController>
270      </controller>
[10859]271    </SpaceShip>
[10906]272    <SpaceShip position="1000, -1500, 1000" lookat="0,0,0" team=1  name="d2s1d1">
273      <templates>
274        <Template link=spaceshipassff />
275      </templates>
276      <controller>
277        <DivisionController team=1 formationMode="WALL">
278
279        </DivisionController>
280      </controller>
281    </SpaceShip>
282    <SpaceShip position="1000, -1900, 1000" lookat="0,0,0" team=1 name="d2s1s1">
283      <templates>
284        <Template link=spaceshipassff />
285      </templates>
286      <controller>
287        <SectionController team=1>
288        </SectionController>
289      </controller>
290    </SpaceShip>
291    <SpaceShip position="1000, -2100, 1000" lookat="0,0,0" team=1 name="d2s1w1">
292      <templates>
293        <Template link=spaceshipassff />
294      </templates>
295      <controller>
296        <WingmanController team=1>
297        </WingmanController>
298      </controller>
299    </SpaceShip> -->
300    <SpaceShip position="1000, -2400, 1000" lookat="0,0,0" team=1 name="d2s1w2">
301      <templates>
302        <Template link=spaceshipassff />
303      </templates>
304      <controller>
305        <WingmanController team=1>
306        </WingmanController>
307      </controller>
308    </SpaceShip>
[10898]309   <!--  <SpaceShip position="2000, -1500, 3000" lookat="0,0,0" team=1>
[10885]310      <templates>
311        <Template link=spaceshipassff />
312      </templates>
313      <controller>
314        <DivisionController team=1 formationMode="WALL">
315
316        </DivisionController>
317      </controller>
318    </SpaceShip>
319    <SpaceShip position="2000, -1900, 3000" lookat="0,0,0" team=1>
320      <templates>
321        <Template link=spaceshipassff />
322      </templates>
323      <controller>
324        <SectionController team=1>
325        </SectionController>
326      </controller>
327    </SpaceShip>
[10898]328 -->
[10885]329   
[10859]330<!-- HERE ENDS DEMO FOR FIGHTING -->
331<!-- HERE STARTS DEMO FOR FORMATIONS -->
[10885]332    <!--
[10859]333    <Model mesh="cube.mesh" scale=8 position="   0,2000,    0" />
334    <Model mesh="cube.mesh" scale=8 position="   0,2000,-2000" />
335    <Model mesh="cube.mesh" scale=8 position="2000,2000,-2000" />
336    <Model mesh="cube.mesh" scale=8 position="2000,2000,    0" />
337
338    <SpaceShip position="-1500, 1500, -1000" lookat="0,0,0" team=0 name="ss1">
339      <templates>
340        <Template link=spaceshipassff />
341      </templates>
342      <controller>
[10880]343        <DivisionController team=0 formationMode="diamond" spread=100>
[10859]344          <actionpoints>
345            <Actionpoint position="   0,2000,    0" action="FLY" loopStart=true/>
346            <Actionpoint position="   0,2000,-2000" action="FLY"  />
347            <Actionpoint position="2000,2000,-2000" action="FLY" />
348            <Actionpoint position="2000,2000,    0" action="FLY" loopEnd=true />
349          </actionpoints>
350        </DivisionController>
351      </controller>
[10709]352    </SpaceShip>
[10859]353
354    <SpaceShip position="-2000, 1900, -1000" lookat="0,0,0" team=0>
[10725]355      <templates>
356        <Template link=spaceshipassff />
357      </templates>
358      <controller>
[10859]359        <SectionController team=0>
360        </SectionController>
361      </controller>
362    </SpaceShip>
363    <SpaceShip position="-2000, 2100, -1000" lookat="0,0,0" team=0>
364      <templates>
365        <Template link=spaceshipassff />
366      </templates>
367      <controller>
368        <WingmanController team=0>
[10725]369        </WingmanController>
370      </controller>
371    </SpaceShip>
[10859]372    <SpaceShip position="-2000, 2400, -1000" lookat="0,0,0" team=0>
[10717]373      <templates>
374        <Template link=spaceshipassff />
375      </templates>
376      <controller>
[10859]377        <WingmanController team=0>
378        </WingmanController>
[10717]379      </controller>
[10859]380    </SpaceShip>
[10885]381    -->
[10859]382<!-- HERE ENDS DEMO FOR FORMATIONS -->
[10886]383    <!-- 1 division is roughly equal to 6 AIControllers--!>
384<!--
385    <SpaceShip position="2000, -1500, 1000" lookat="0,0,0" team=1 >
[10877]386      <templates>
387        <Template link=spaceshipassff />
388      </templates>
389      <controller>
[10886]390        <DivisionController team=1 formationMode="WALL">
391
[10877]392        </DivisionController>
393      </controller>
394    </SpaceShip>
[10886]395    <SpaceShip position="2000, -1900, 1000" lookat="0,0,0" team=1>
396      <templates>
397        <Template link=spaceshipassff />
398      </templates>
399      <controller>
400        <SectionController team=1>
401        </SectionController>
402      </controller>
403    </SpaceShip>
404    <SpaceShip position="2000, -2100, 1000" lookat="0,0,0" team=1>
405      <templates>
406        <Template link=spaceshipassff />
407      </templates>
408      <controller>
409        <WingmanController team=1>
410        </WingmanController>
411      </controller>
412    </SpaceShip>
413    <SpaceShip position="2000, -2400, 1000" lookat="0,0,0" team=1>
414      <templates>
415        <Template link=spaceshipassff />
416      </templates>
417      <controller>
418        <WingmanController team=1>
419        </WingmanController>
420      </controller>
421    </SpaceShip>
[10885]422
[10886]423    <?lua
424      for i = 0, 5, 1 do
425        ?>
426      <SpaceShip position="<?lua print(7000) ?>,<?lua print(i*500) ?>,<?lua print(0) ?>" team=2>
427        <templates>
428          <Template link=spaceshipassff />
429        </templates>
430        <controller>
431          <AIController team=2 />
432        </controller>
433      </SpaceShip>
434    <?lua end ?> -->
435   
436
[10655]437  </Scene>
438</Level>
439
Note: See TracBrowser for help on using the repository browser.