Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 10214 was 9939, checked in by jo, 11 years ago

presentationHS13 branch merged into trunk

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