Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/teamBaseMatch.oxw @ 8999

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