Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 7058 was 7036, checked in by scheusso, 15 years ago

some changes regarding lod:

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