Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/lastTeamStanding.oxw @ 8179

Last change on this file since 8179 was 8179, checked in by rgrieder, 13 years ago

Hopefully fixed XML parsing errors at startup (can't test right now, sry).

  • Property svn:eol-style set to native
File size: 4.7 KB
RevLine 
[7903]1<LevelInfo
2 name = "Last Team Standing"
3 description = "Survive as a team."
4 tags = "singleplayer"
5/>
[7556]6<?lua
7  include("stats.oxo")
[7679]8  include("HUDTemplates3.oxo")
9  include("templates/lodInformation.oxt")
[7903]10  include("lastTeamStandingHUD.oxo")
[7679]11  include("templates/spaceshipAssff.oxt")
12  include("templates/spaceshipPirate.oxt")
13  include("templates/pickupRepresentationTemplates.oxt")
[7556]14?>
15
16<Level
[7903]17 name         = "Last Team Standing"
18 description  = "testmap for gametype last team standing"
19 gametype     =  "LastTeamStanding"
[7556]20>
21  <templates>
22    <Template link=lodtemplate_default />
23  </templates>
24
25  <Scene
26    ambientlight = "0.8, 0.8, 0.8"
[7903]27    skybox       = "Orxonox/skypanoramagen1"
[7556]28  >
[7605]29
30    <?lua
31      include("includes/pickups.oxi")
32    ?>
33
[7561]34<Bot />
[7556]35
[7561]36<!-- ------------ middle asteroid -------------- -->
[7585]37    <StaticEntity position="0,20,0" collisionType=static>
[7561]38       <attached>
39           <Model position="0,0,0" scale=140 mesh="asteroid_UV.mesh" shadow=true />
[7573]40           <!-- ParticleEmitter position="0,0,0" source="Orxonox/Steam" / -->
[7561]41       </attached>
[7585]42      <collisionShapes>
43        <SphereCollisionShape radius="145" />
44      </collisionShapes>
[7561]45    </StaticEntity>
46
[7605]47    <PickupSpawner position="-160,65,10" triggerDistance="10" respawnTime="5" maxSpawnedItems="10"><!--EasterEgg-->
48      <pickup>
49        <InvisiblePickup template=mediuminvisiblepickup />
50      </pickup>
51    </PickupSpawner>
52    <PickupSpawner position="-160,60,17" triggerDistance="10" respawnTime="5" maxSpawnedItems="10"><!--EasterEgg-->
53      <pickup>
54        <InvisiblePickup template=hugeinvisiblepickup />
55      </pickup>
56    </PickupSpawner>
57    <StaticEntity position="-160,60,28.4"><!--EasterEgg-Indicator-->
58      <attached>
59        <Model position="0,0,0" scale=1 mesh="sphere.mesh" />
60      </attached>
61    </StaticEntity>
62
[7561]63<!-- ---------------asteroid dome----------------- -->
[7556]64<?lua
[7617]65max = 16
66for i = 0, max, 1
[7556]67do
[7561]68    y = math.sin(i/max*6)*750
69    z = math.cos(i/max*6)*750
[7617]70    j = 1
[7561]71    ?>
[7556]72
[8179]73    <TeamSpawnPoint team="<?lua print( math.mod(i,4)) ?>" position="<?lua print(y*1.4+z*0.2) ?>,0,<?lua print(z*1.4-y*0.2) ?>" direction="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
[7600]74
[8179]75    <StaticEntity position="<?lua print(y) ?>,0,<?lua print(z) ?>" scale="<?lua print(j * 2) ?>" collisionType=static >
[7556]76      <attached>
[7561]77        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh">
78        </Model>
[7556]79      </attached>
[7585]80      <collisionShapes>
81        <BoxCollisionShape    halfExtents="<?lua print(j * 2) ?>,100,<?lua print(j * 2) ?>" position = "0,0,0" />
82      </collisionShapes>
[7556]83    </StaticEntity>
84
[8179]85    <StaticEntity position="<?lua print(y) ?>,100,<?lua print(z) ?>" scale="<?lua print(j * 2) ?>" collisionType=static >
[7556]86      <attached>
[7561]87        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i+3,6) + 1) ?>.mesh">
88        </Model>
[7556]89      </attached>
[7585]90      <collisionShapes>
91        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
92      </collisionShapes>
[7605]93    </StaticEntity>
[7556]94
[8179]95    <StaticEntity position="<?lua print(y) ?>,200,<?lua print(z) ?>" scale="<?lua print(j * 2) ?>" collisionType=static >
[7556]96      <attached>
[7561]97        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*5,6) + 1) ?>.mesh">
98        </Model>
[7556]99      </attached>
[7585]100      <collisionShapes>
101        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
102      </collisionShapes>
[7561]103    </StaticEntity>
[7556]104
[8179]105    <StaticEntity position="<?lua print(y) ?>,-100,<?lua print(z) ?>" scale="<?lua print(j * 2) ?>" collisionType=static >
[7561]106      <attached>
[7573]107        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*13+1,6) + 1) ?>.mesh">
[7561]108        </Model>
109      </attached>
[7585]110      <collisionShapes>
111        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
112      </collisionShapes>
[7561]113    </StaticEntity>
[7556]114
[8179]115    <StaticEntity position="<?lua print(y) ?>,-200,<?lua print(z) ?>" scale="<?lua print(j * 2) ?>" collisionType=static >
[7561]116      <attached>
117        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*17,6) + 1) ?>.mesh">
118        </Model>
119      </attached>
[7585]120      <collisionShapes>
121        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
122      </collisionShapes>
[7561]123    </StaticEntity>
124
[7596]125<!-- ---------Top Asteroid----------- -->
[8179]126    <StaticEntity position="<?lua print(y) ?>,300,<?lua print(z) ?>" scale="<?lua print(j * 2.1) ?>" pitch="90" roll="180" yaw="<?lua print(-90+i*360/max) ?>" collisionType=static >
[7596]127      <attached>
128        <Model position="0,0,0" scale=25 mesh="ast6.mesh">
129        </Model>
130      </attached>
131      <collisionShapes>
[7603]132        <BoxCollisionShape    halfExtents="50,140,30" position="0,0,0"/>
[7596]133      </collisionShapes>
134    </StaticEntity>
[7573]135
136
[7561]137<?lua end ?>
138
[7556]139  </Scene>
140</Level>
141
[7561]142
Note: See TracBrowser for help on using the repository browser.