Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/lastmanstanding/data/levels/gametype_lastmanstanding.oxw @ 7596

Last change on this file since 7596 was 7596, checked in by jo, 14 years ago

Respawn delay added. One new bug has to be removed.

  • Property svn:eol-style set to native
File size: 4.7 KB
Line 
1<?lua
2  include("stats.oxo")
3  include("hudtemplates3.oxo")
4  include("templates/lodinformation.oxt")
5  include("lastmanstandinghud.oxo")
6  include("templates/spaceship_assff.oxt")
7  include("templates/spaceship_pirate.oxt")
8?>
9
10<Level
11 name         = "Last Man Standing"
12 description  = "testmap for gametype last man standing"
13 gametype     =  "LastManStanding"
14>
15  <templates>
16    <Template link=lodtemplate_default />
17  </templates>
18
19  <Scene
20    ambientlight = "0.8, 0.8, 0.8"
21    skybox       = "Orxonox/skypanoramagen1"
22  >
23<!----- Spawnpoints ----->
24    <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"/>
25    <SpawnPoint team=0 position="-1150,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
26    <SpawnPoint team=0 position="1150,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
27    <SpawnPoint team=0 position="-700,0,700" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
28    <SpawnPoint team=0 position="700,0,-700" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
29    <SpawnPoint team=0 position="0,0,-1150" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
30    <SpawnPoint team=0 position="0,0,1150" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
31<Bot />
32
33<!-- ------------ middle asteroid -------------- -->
34    <StaticEntity position="0,20,0" collisionType=static>
35       <attached>
36           <Model position="0,0,0" scale=140 mesh="asteroid_UV.mesh" shadow=true />
37           <!-- ParticleEmitter position="0,0,0" source="Orxonox/Steam" / -->
38       </attached>
39      <collisionShapes>
40        <SphereCollisionShape radius="145" />
41      </collisionShapes>
42    </StaticEntity>
43<!--StaticEntity position="0,0,0" collisionType=static>
44      <collisionShapes>
45        <SphereCollisionShape radius="145" />
46      </collisionShapes>
47    </StaticEntity-->
48
49<!-- ---------------asteroid dome----------------- -->
50<?lua
51max = 17
52for i = 1, max, 1
53do
54    y = math.sin(i/max*6)*750
55    z = math.cos(i/max*6)*750
56    x = i*10
57    ?>
58<?lua
59for k = 1, 17, 1
60do
61j = math.random()
62?>
63
64    <StaticEntity position="<?lua print(y) ?>,0,<?lua print(z) ?>" scale=<?lua print(j * 2) ?> collisionType=static >
65      <attached>
66        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh">
67        </Model>
68      </attached>
69      <collisionShapes>
70        <BoxCollisionShape    halfExtents="<?lua print(j * 2) ?>,100,<?lua print(j * 2) ?>" position = "0,0,0" />
71      </collisionShapes>
72    </StaticEntity>
73
74    <StaticEntity position="<?lua print(y) ?>,100,<?lua print(z) ?>" scale=<?lua print(j * 2) ?> collisionType=static >
75      <attached>
76        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i+3,6) + 1) ?>.mesh">
77        </Model>
78      </attached>
79      <collisionShapes>
80        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
81      </collisionShapes>
82    </StaticEntity>#
83
84    <StaticEntity position="<?lua print(y) ?>,200,<?lua print(z) ?>" scale=<?lua print(j * 2) ?> collisionType=static >
85      <attached>
86        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*5,6) + 1) ?>.mesh">
87        </Model>
88      </attached>
89      <collisionShapes>
90        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
91      </collisionShapes>
92    </StaticEntity>
93
94    <StaticEntity position="<?lua print(y) ?>,-100,<?lua print(z) ?>" scale=<?lua print(j * 2) ?> collisionType=static >
95      <attached>
96        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*13+1,6) + 1) ?>.mesh">
97        </Model>
98      </attached>
99      <collisionShapes>
100        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
101      </collisionShapes>
102    </StaticEntity>
103
104    <StaticEntity position="<?lua print(y) ?>,-200,<?lua print(z) ?>" scale=<?lua print(j * 2) ?> collisionType=static >
105      <attached>
106        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*17,6) + 1) ?>.mesh">
107        </Model>
108      </attached>
109      <collisionShapes>
110        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
111      </collisionShapes>
112    </StaticEntity>
113
114<!-- ---------Top Asteroid----------- -->
115
116    <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 >
117      <attached>
118        <Model position="0,0,0" scale=25 mesh="ast6.mesh">
119        </Model>
120      </attached>
121      <collisionShapes>
122        <BoxCollisionShape    halfExtents="50,25,50" position="0,0,0" yaw="<?lua print(-90+i*360/max) ?>"/>
123      </collisionShapes>
124    </StaticEntity>
125
126
127
128<?lua
129end
130?>
131<?lua end ?>
132
133
134
135
136  </Scene>
137</Level>
138
139
Note: See TracBrowser for help on using the repository browser.