Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/ai2/data/levels/waypoints.oxw @ 8895

Last change on this file since 8895 was 8706, checked in by dafrick, 13 years ago

Merging presentation branch back into trunk.
There are many new features and also a lot of other changes and bugfixes, if you want to know, digg through the svn log.
Not everything is yet working as it should, but it should be fairly stable. If you habe any bug reports, just send me an email.

  • Property svn:eol-style set to native
File size: 5.4 KB
Line 
1<LevelInfo
2 name = "Waypoints Testlevel"
3 description = "Testing waypoings for AI controlled spaceships."
4 tags = "test"
5/>
6
7<?lua
8  include("HUDTemplates3.oxo")
9  include("stats.oxo")
10  include("templates/spaceshipAssff.oxt")
11  include("templates/spaceshipH2.oxt")
12  include("templates/spaceshipPirate.oxt")
13  include("templates/lodInformation.oxt")
14?>
15
16<Level
17 name         = "Waypoints"
18 description  = "Testing waypoings for AI controlled spaceships."
19>
20  <templates>
21    <Template link=lodtemplate_default />
22  </templates>
23  <?lua include("includes/notifications.oxi") ?>
24
25  <Scene
26   ambientlight = "0.5, 0.5, 0.5"
27   skybox       = "Orxonox/skypanoramagen1"
28  >
29    <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" />
30
31    <SpawnPoint position="0,0,0" direction="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
32
33    <SpaceShip position="0,2000,200" lookat="0,0,0">
34      <templates>
35        <Template link=spaceshipassff />
36      </templates>
37      <controller>
38        <WaypointPatrolController alertnessradius=1000 team=10>
39          <waypoints>
40            <Model mesh="cube.mesh" scale=8 position="  0,2000,-200" />
41            <Model mesh="cube.mesh" scale=8 position="  0,2000,-700" />
42            <Model mesh="cube.mesh" scale=8 position="500,2000,-700" />
43            <Model mesh="cube.mesh" scale=8 position="500,2000,-200" />
44          </waypoints>
45        </WaypointPatrolController>
46      </controller>
47    </SpaceShip>
48    <SpaceShip position="0,2000,400" lookat="0,0,0">
49      <templates>
50        <Template link=spaceshipassff />
51      </templates>
52      <controller>
53        <WaypointPatrolController alertnessradius=1000 team=10>
54          <waypoints>
55            <Model mesh="cube.mesh" scale=8 position="  0,2000,-200" />
56            <Model mesh="cube.mesh" scale=8 position="  0,2000,-700" />
57            <Model mesh="cube.mesh" scale=8 position="500,2000,-700" />
58            <Model mesh="cube.mesh" scale=8 position="500,2000,-200" />
59          </waypoints>
60        </WaypointPatrolController>
61      </controller>
62    </SpaceShip>
63
64    <SpaceShip position="1500,2000,200" lookat="0,0,0">
65      <templates>
66        <Template link=spaceshipassff />
67      </templates>
68      <controller>
69        <WaypointPatrolController alertnessradius=1000 team=11>
70          <waypoints>
71            <Model mesh="cube.mesh" scale=8 position="1500,2000,-200" />
72            <Model mesh="cube.mesh" scale=8 position="1500,2000,-700" />
73            <Model mesh="cube.mesh" scale=8 position="1000,2000,-700" />
74            <Model mesh="cube.mesh" scale=8 position="1000,2000,-200" />
75          </waypoints>
76        </WaypointPatrolController>
77      </controller>
78    </SpaceShip>
79
80    <SpaceShip position="1500,-2000,200" lookat="0,0,0" name=polonaise1>
81      <templates>
82        <Template link=spaceshipassff />
83      </templates>
84      <controller>
85        <WaypointPatrolController alertnessradius=1000 team=12>
86          <waypoints>
87            <Model mesh="cube.mesh" scale=8 position="1500,-2000,-200" />
88<!--
89            <Attacher target=polonaise6 deletewithparent=false />
90            <Model mesh="cube.mesh" scale=8 position="1500,-2000,-700" />
91            <Model mesh="cube.mesh" scale=8 position="1000,-2000,-700" />
92            <Model mesh="cube.mesh" scale=8 position="1000,-2000,-200" />
93-->
94          </waypoints>
95        </WaypointPatrolController>
96      </controller>
97    </SpaceShip>
98
99    <?lua
100      for i = 1, 5, 1 do
101    ?>
102      <SpaceShip position="1500,<?lua print(-2000 + 50*i) ?>,200" lookat="0,0,0" name=polonaise<?lua print(i+1) ?> >
103        <templates>
104          <Template link=spaceshipassff />
105        </templates>
106        <controller>
107          <WaypointPatrolController alertnessradius=1000 team=12>
108            <waypoints>
109              <Attacher target=polonaise<?lua print(i) ?> deletewithparent=false />
110            </waypoints>
111          </WaypointPatrolController>
112        </controller>
113      </SpaceShip>
114    <?lua end ?>
115
116    <SpaceShip position="-1500,-2000,200" lookat="0,0,0" name=attack1>
117      <templates>
118        <Template link=spaceshipassff />
119      </templates>
120      <controller>
121        <WaypointPatrolController alertnessradius=1000 team=13>
122          <waypoints>
123            <Model mesh="cube.mesh" scale=8 position="1500,-2000,-200" />
124          </waypoints>
125        </WaypointPatrolController>
126      </controller>
127    </SpaceShip>
128
129    <?lua
130      for i = 1, 5, 1 do
131    ?>
132      <SpaceShip position="-1500,<?lua print(-2000 + 50*i) ?>,200" lookat="0,0,0" name=attack<?lua print(i+1) ?> >
133        <templates>
134          <Template link=spaceshipassff />
135        </templates>
136        <controller>
137          <WaypointPatrolController alertnessradius=1000 team=13>
138            <waypoints>
139              <Attacher target=attack<?lua print(i) ?> deletewithparent=false />
140            </waypoints>
141          </WaypointPatrolController>
142        </controller>
143      </SpaceShip>
144    <?lua end ?>
145
146<!--
147    <?lua
148      for i = 1, 50, 1 do
149    ?>
150      <SpaceShip position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" >
151        <templates>
152          <Template link=spaceshipassff />
153        </templates>
154        <controller>
155          <AIController />
156        </controller>
157      </SpaceShip>
158    <?lua end ?>
159-->
160
161  </Scene>
162</Level>
Note: See TracBrowser for help on using the repository browser.