Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/lod/data/levels/teambasematchlevel.oxw @ 6926

Last change on this file since 6926 was 6909, checked in by kolibri7, 15 years ago

*fully functional lod implementation
*added file templates/lodinformation.oxt in many maps
*changed some settings in templates/lodinformation.oxt

  • Property svn:eol-style set to native
File size: 8.1 KB
Line 
1<?lua
2  include("hudtemplates3.oxo")
3  include("stats.oxo")
4  include("teambasematchhud.oxo")
5  include("templates/spaceship_assff.oxt")
6  include("templates/spaceship_pirate.oxt")
7  include("templates/lodinformation.oxt")
8?>
9
10<Level
11 name         = "Presentation"
12 description  = "A simple testlevel"
13 gametype     = TeamBaseMatch
14>
15  <templates>
16    <Template link=lodtemplate_default />
17  </templates>
18
19  <Scene
20   ambientlight = "0.5, 0.5, 0.5"
21   skybox       = "Orxonox/skypanoramagen1"
22  >
23    <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" />
24
25    <TeamSpawnPoint team=0 position=" 900,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
26    <TeamSpawnPoint team=1 position="-900,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate />
27
28    <TeamBaseMatchBase
29     name              = "base 1"
30     position          = "1200, 0, 0"
31     pitch = -90
32
33     health            = 1000
34     maxhealth         = 1000
35     initialhealth     = 1000
36
37     collisionType     = "dynamic"
38     mass              = 10000
39     linearDamping     = 0.9
40     angularDamping    = 0.99999
41    >
42      <attached>
43        <Model scale=10 mesh="DuBall1.mesh" position = "-100,0,0"/>
44        <Model scale=10 mesh="DuBall2.mesh" position = "100,0,0"/>
45        <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "-100,0,0"/>
46        <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "100,0,0"/>
47<?lua
48for i = 1, 10, 1
49do ?>
50        <ParticleSpawner position="<?lua print(math.random() * 400 - 200) ?>,<?lua print(math.random() * 200 - 100) ?>,<?lua print(math.random() * 200 - 100) ?>" startdelay=<?lua print(math.random()) ?> source="Orxonox/BigExplosion1part1" lifetime=2.0 loop=0 autostart=0>
51          <events><spawn><EventListener event="base 1" /></spawn></events>
52        </ParticleSpawner>
53<?lua
54end
55?>
56      </attached>
57      <collisionShapes>
58        <SphereCollisionShape radius="80"            position = "-100,0,0" />
59        <SphereCollisionShape radius="120"           position = "100,0,0" />
60        <BoxCollisionShape    halfExtents="90,25,45" position = "-155,0,40" />
61      </collisionShapes>
62    </TeamBaseMatchBase>
63
64
65    <TeamBaseMatchBase
66     name              = "base 2"
67     position          = "-1200, 0, 0"
68     pitch = -90
69
70     health            = 1000
71     maxhealth         = 1000
72     initialhealth     = 1000
73
74     collisionType     = "dynamic"
75     mass              = 10000
76     linearDamping     = 0.9
77     angularDamping    = 0.99999
78    >
79      <attached>
80        <Model scale=10 mesh="DuBall1.mesh" position = "-100,0,0"/>
81        <Model scale=10 mesh="DuBall2.mesh" position = "100,0,0"/>
82        <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "-100,0,0"/>
83        <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "100,0,0"/>
84<?lua
85for i = 1, 10, 1
86do ?>
87        <ParticleSpawner position="<?lua print(math.random() * 400 - 200) ?>,<?lua print(math.random() * 200 - 100) ?>,<?lua print(math.random() * 200 - 100) ?>" startdelay=<?lua print(math.random()) ?> source="Orxonox/BigExplosion1part1" lifetime=2.0 loop=0 autostart=0>
88          <events><spawn><EventListener event="base 2" /></spawn></events>
89        </ParticleSpawner>
90<?lua
91end
92?>
93      </attached>
94      <collisionShapes>
95        <SphereCollisionShape radius="80"            position = "-100,0,0" />
96        <SphereCollisionShape radius="120"           position = "100,0,0" />
97        <BoxCollisionShape    halfExtents="90,25,45" position = "-155,0,40" />
98      </collisionShapes>
99    </TeamBaseMatchBase>
100
101
102    <TeamBaseMatchBase
103     name              = "base 3"
104     position          = "0, 0, 1200"
105     pitch = -90
106
107     health            = 1000
108     maxhealth         = 1000
109     initialhealth     = 1000
110
111     collisionType     = "dynamic"
112     mass              = 10000
113     linearDamping     = 0.9
114     angularDamping    = 0.99999
115    >
116      <attached>
117        <Model scale=10 mesh="DuBall1.mesh" position = "-100,0,0"/>
118        <Model scale=10 mesh="DuBall2.mesh" position = "100,0,0"/>
119        <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "-100,0,0"/>
120        <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "100,0,0"/>
121<?lua
122for i = 1, 10, 1
123do ?>
124        <ParticleSpawner position="<?lua print(math.random() * 400 - 200) ?>,<?lua print(math.random() * 200 - 100) ?>,<?lua print(math.random() * 200 - 100) ?>" startdelay=<?lua print(math.random()) ?> source="Orxonox/BigExplosion1part1" lifetime=2.0 loop=0 autostart=0>
125          <events><spawn><EventListener event="base 3" /></spawn></events>
126        </ParticleSpawner>
127<?lua
128end
129?>
130      </attached>
131      <collisionShapes>
132        <SphereCollisionShape radius="80"            position = "-100,0,0" />
133        <SphereCollisionShape radius="120"           position = "100,0,0" />
134        <BoxCollisionShape    halfExtents="90,25,45" position = "-155,0,40" />
135      </collisionShapes>
136    </TeamBaseMatchBase>
137
138    <TeamBaseMatchBase
139     name              = "base 4"
140     position          = "0, 0, -1200"
141
142     health            = 1000
143     maxhealth         = 1000
144     initialhealth     = 1000
145     pitch = -90
146
147     collisionType     = "dynamic"
148     mass              = 10000
149     linearDamping     = 0.9
150     angularDamping    = 0.99999
151    >
152      <attached>
153        <Model scale=10 mesh="DuBall1.mesh" position = "-100,0,0"/>
154        <Model scale=10 mesh="DuBall2.mesh" position = "100,0,0"/>
155        <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "-100,0,0"/>
156        <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "100,0,0"/>
157<?lua
158for i = 1, 10, 1
159do ?>
160        <ParticleSpawner position="<?lua print(math.random() * 400 - 200) ?>,<?lua print(math.random() * 200 - 100) ?>,<?lua print(math.random() * 200 - 100) ?>" startdelay=<?lua print(math.random()) ?> source="Orxonox/BigExplosion1part1" lifetime=2.0 loop=0 autostart=0>
161          <events><spawn><EventListener event="base 4" /></spawn></events>
162        </ParticleSpawner>
163<?lua
164end
165?>
166      </attached>
167      <collisionShapes>
168        <SphereCollisionShape radius="80"            position = "-100,0,0" />
169        <SphereCollisionShape radius="120"           position = "100,0,0" />
170        <BoxCollisionShape    halfExtents="90,25,45" position = "-155,0,40" />
171      </collisionShapes>
172    </TeamBaseMatchBase>
173
174
175    <TeamBaseMatchBase
176     name              = "base 5"
177     position          = "0, 0, 0"
178     pitch = -90
179
180     health            = 1000
181     maxhealth         = 1000
182     initialhealth     = 1000
183
184     collisionType     = "dynamic"
185     mass              = 10000
186     linearDamping     = 0.9
187     angularDamping    = 0.99999
188    >
189      <attached>
190        <Model scale=10 mesh="DuBall1.mesh" position = "-100,0,0"/>
191        <Model scale=10 mesh="DuBall2.mesh" position = "100,0,0"/>
192        <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "-100,0,0"/>
193        <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "100,0,0"/>
194<?lua
195for i = 1, 10, 1
196do ?>
197        <ParticleSpawner position="<?lua print(math.random() * 400 - 200) ?>,<?lua print(math.random() * 200 - 100) ?>,<?lua print(math.random() * 200 - 100) ?>" startdelay=<?lua print(math.random()) ?> source="Orxonox/BigExplosion1part1" lifetime=2.0 loop=0 autostart=0>
198          <events><spawn><EventListener event="base 5" /></spawn></events>
199        </ParticleSpawner>
200<?lua
201end
202?>
203      </attached>
204      <collisionShapes>
205        <SphereCollisionShape radius="80"            position = "-100,0,0" />
206        <SphereCollisionShape radius="120"           position = "100,0,0" />
207        <BoxCollisionShape    halfExtents="90,25,45" position = "-155,0,40" />
208      </collisionShapes>
209    </TeamBaseMatchBase>
210
211
212
213    <!--Model position="0,0,0" scale=8 mesh="ast1.mesh" />
214    <StaticEntity position="0,0,0" collisionType=static>
215      <collisionShapes>
216        <SphereCollisionShape radius="20" />
217      </collisionShapes>
218    </StaticEntity-->
219  </Scene>
220</Level>
Note: See TracBrowser for help on using the repository browser.