Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentation3/data/levels/waypoints.oxw @ 7029

Last change on this file since 7029 was 7007, checked in by dafrick, 15 years ago

Tested and cleaned all levels (except for the ones that someone is working on at the moment).
Two levels had old Pickups in them, they have been updated to work properly now.
All levels except one are working. The one that isn't is the presentationHS09b level, which crashes due to LOD.

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