Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

finished everything, demos are commented out in AITest.oxw

File size: 8.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?>
21
22<Level>
23  <templates>
24    <Template link=lodtemplate_default />
25  </templates>
26  <?lua include("includes/notifications.oxi") ?>
27
28  <Scene
29    ambientlight = "0.8, 0.8, 0.8"
30    skybox       = "Orxonox/Starbox"
31  >
32
33    <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"/>
34    <TeamSpawnPoint team=0 position="-1000,-1000,-1000" lookat="1,1,-1" spawnclass=SpaceShip pawndesign=spaceshipassff />
35   
36<!-- HERE STARTS DEMO FOR THE "WAYPOINTS" -->
37    <!--   
38    <Model mesh="cube.mesh" scale=8 position="  0,2000,-600" />
39    <Model mesh="cube.mesh" scale=8 position="  0,2000,-700" />
40    <Model mesh="cube.mesh" scale=8 position="100,2000,-700" />
41    <Model mesh="cube.mesh" scale=8 position="100,2000,-600" />
42    <Model mesh="cube.mesh" scale=8 position="0,0,0" />
43
44    <SpaceShip position="-1500, 1500, -1000" lookat="0,0,0" team=0 name="ss1">
45      <templates>
46        <Template link=spaceshipassff />
47      </templates>
48      <controller>
49        <DivisionController team=0 formationMode="finger4">
50          <actionpoints>
51            <Actionpoint position="  0,2000,-600" action="FLY" loopStart=true/>
52            <Actionpoint position="  0,2000,-700" action="FLY"  />
53            <Actionpoint position="100,2000,-700" action="FLY" />
54            <Actionpoint position="100,2000,-600" action="FLY" loopEnd=true />
55          </actionpoints>
56        </DivisionController>
57      </controller>
58    </SpaceShip>
59    -->
60<!-- HERE ENDS DEMO FOR THE "WAYPOINTS" -->
61
62<!-- HERE STARTS DEMO FOR THE ACTIONPOINTS.
63P.S. Never set protectMe in the first actionpoint: if human didn't spawn, that actionpoint will be skipped -->
64       
65    <Model mesh="cube.mesh" scale=8 position="0,0,0" />
66
67    <SpaceShip position="-2000, 1500, -1000" lookat="0,0,0" team=0 name="ss2">
68      <templates>
69        <Template link=spaceshipassff />
70      </templates>
71      <controller>
72        <DivisionController team=0 formationMode="finger4">
73          <actionpoints>
74            <Actionpoint position="0,0,0" action="FLY" />
75            <Actionpoint position="-1000,750,-500" action="ATTACK" attack="ss3" />
76            <Actionpoint position="-1000,750,-500" action="PROTECt" protectMe=true />
77            <Actionpoint position="-1000,750,-500" action="PROTECt" protect="fuck" />
78            <Actionpoint position="-1000,750,-500" action="FIGHTALL" />
79           </actionpoints>
80        </DivisionController>
81      </controller>
82    </SpaceShip>
83    <SpaceShip position="-2000, 1900, -1000" lookat="0,0,0" team=0>
84      <templates>
85        <Template link=spaceshipassff />
86      </templates>
87      <controller>
88        <SectionController team=0>
89        </SectionController>
90      </controller>
91    </SpaceShip>
92    <SpaceShip position="-2000, 2100, -1000" lookat="0,0,0" team=0>
93      <templates>
94        <Template link=spaceshipassff />
95      </templates>
96      <controller>
97        <WingmanController team=0>
98        </WingmanController>
99      </controller>
100    </SpaceShip>
101    <SpaceShip position="-2000, 2400, -1000" lookat="0,0,0" team=0>
102      <templates>
103        <Template link=spaceshipassff />
104      </templates>
105      <controller>
106        <WingmanController team=0>
107        </WingmanController>
108      </controller>
109    </SpaceShip>
110    <SpaceShip position="0, 0, 0" lookat="0,0,0" team=2 name="ss4">
111      <templates>
112        <Template link=spaceshipassff />
113      </templates>
114    </SpaceShip>
115    <SpaceShip position="3000, 1000, 2000" lookat="0,0,0" team=2 name="ss3">
116      <templates>
117        <Template link=spaceshipassff />
118      </templates>
119    </SpaceShip>
120    <SpaceShip position="-500, -300, -300" lookat="0,0,0" team=0 name="fuck">
121      <templates>
122        <Template link=spaceshipassff />
123      </templates>
124    </SpaceShip>
125 
126   
127<!-- HERE ENDS DEMO FOR THE ACTIONPOINTS -->
128<!-- HERE STARTS DEMO FOR FIGHTING -->
129   <!-- 
130    <SpaceShip position="-2000, 1500, -1000" lookat="0,0,0" team=0 name="ss2">
131      <templates>
132        <Template link=spaceshipassff />
133      </templates>
134      <controller>
135        <DivisionController team=0 formationMode="finger4">
136          <actionpoints>
137            <Actionpoint position="0,0,0" action="ATTACK" attack="ss3" />
138          </actionpoints>
139        </DivisionController>
140      </controller>
141    </SpaceShip>
142    <SpaceShip position="-2000, 1900, -1000" lookat="0,0,0" team=0>
143      <templates>
144        <Template link=spaceshipassff />
145      </templates>
146      <controller>
147        <SectionController team=0>
148        </SectionController>
149      </controller>
150    </SpaceShip>
151    <SpaceShip position="-2000, 2100, -1000" lookat="0,0,0" team=0>
152      <templates>
153        <Template link=spaceshipassff />
154      </templates>
155      <controller>
156        <WingmanController team=0>
157        </WingmanController>
158      </controller>
159    </SpaceShip>
160    <SpaceShip position="-2000, 2400, -1000" lookat="0,0,0" team=0>
161      <templates>
162        <Template link=spaceshipassff />
163      </templates>
164      <controller>
165        <WingmanController team=0>
166        </WingmanController>
167      </controller>
168    </SpaceShip>
169
170    <SpaceShip position="2000, -1500, 1000" lookat="0,0,0" team=1 name="ss3">
171      <templates>
172        <Template link=spaceshipassff />
173      </templates>
174      <controller>
175        <DivisionController team=1 formationMode="WALL">
176          <actionpoints>
177            <Actionpoint position="0,0,0" action="ATTACk" attack="ss2" />
178          </actionpoints>
179        </DivisionController>
180      </controller>
181    </SpaceShip>
182    <SpaceShip position="2000, -1900, 1000" lookat="0,0,0" team=1>
183      <templates>
184        <Template link=spaceshipassff />
185      </templates>
186      <controller>
187        <SectionController team=1>
188        </SectionController>
189      </controller>
190    </SpaceShip>
191    <SpaceShip position="2000, -2100, 1000" lookat="0,0,0" team=1>
192      <templates>
193        <Template link=spaceshipassff />
194      </templates>
195      <controller>
196        <WingmanController team=1>
197        </WingmanController>
198      </controller>
199    </SpaceShip>
200    <SpaceShip position="2000, -2400, 1000" lookat="0,0,0" team=1>
201      <templates>
202        <Template link=spaceshipassff />
203      </templates>
204      <controller>
205        <WingmanController team=1>
206        </WingmanController>
207      </controller>
208    </SpaceShip>
209     -->
210<!-- HERE ENDS DEMO FOR FIGHTING -->
211<!-- HERE STARTS DEMO FOR FORMATIONS -->
212    <!--
213    <Model mesh="cube.mesh" scale=8 position="   0,2000,    0" />
214    <Model mesh="cube.mesh" scale=8 position="   0,2000,-2000" />
215    <Model mesh="cube.mesh" scale=8 position="2000,2000,-2000" />
216    <Model mesh="cube.mesh" scale=8 position="2000,2000,    0" />
217
218    <SpaceShip position="-1500, 1500, -1000" lookat="0,0,0" team=0 name="ss1">
219      <templates>
220        <Template link=spaceshipassff />
221      </templates>
222      <controller>
223        <DivisionController team=0 formationMode="DIAMOND">
224          <actionpoints>
225            <Actionpoint position="   0,2000,    0" action="FLY" loopStart=true/>
226            <Actionpoint position="   0,2000,-2000" action="FLY"  />
227            <Actionpoint position="2000,2000,-2000" action="FLY" />
228            <Actionpoint position="2000,2000,    0" action="FLY" loopEnd=true />
229          </actionpoints>
230        </DivisionController>
231      </controller>
232    </SpaceShip>
233
234    <SpaceShip position="-2000, 1900, -1000" lookat="0,0,0" team=0>
235      <templates>
236        <Template link=spaceshipassff />
237      </templates>
238      <controller>
239        <SectionController team=0>
240        </SectionController>
241      </controller>
242    </SpaceShip>
243    <SpaceShip position="-2000, 2100, -1000" lookat="0,0,0" team=0>
244      <templates>
245        <Template link=spaceshipassff />
246      </templates>
247      <controller>
248        <WingmanController team=0>
249        </WingmanController>
250      </controller>
251    </SpaceShip>
252    <SpaceShip position="-2000, 2400, -1000" lookat="0,0,0" team=0>
253      <templates>
254        <Template link=spaceshipassff />
255      </templates>
256      <controller>
257        <WingmanController team=0>
258        </WingmanController>
259      </controller>
260    </SpaceShip>
261    -->
262<!-- HERE ENDS DEMO FOR FORMATIONS -->
263   
264   
265   
266
267  </Scene>
268</Level>
269
Note: See TracBrowser for help on using the repository browser.