Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

New functionality successfully added. No bugs found so far. Only the delaytimer is running a little bit too fast.

  • Property svn:eol-style set to native
File size: 4.8 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
65    <!--SpawnPoint team=0 position="<?lua print(y*1.4) ?>,0,<?lua print(z*1.4) ?>" spawnclass=SpaceShip pawndesign=spaceshipassff /-->
66
67    <StaticEntity position="<?lua print(y) ?>,0,<?lua print(z) ?>" scale=<?lua print(j * 2) ?> collisionType=static >
68      <attached>
69        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh">
70        </Model>
71      </attached>
72      <collisionShapes>
73        <BoxCollisionShape    halfExtents="<?lua print(j * 2) ?>,100,<?lua print(j * 2) ?>" position = "0,0,0" />
74      </collisionShapes>
75    </StaticEntity>
76
77    <StaticEntity position="<?lua print(y) ?>,100,<?lua print(z) ?>" scale=<?lua print(j * 2) ?> collisionType=static >
78      <attached>
79        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i+3,6) + 1) ?>.mesh">
80        </Model>
81      </attached>
82      <collisionShapes>
83        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
84      </collisionShapes>
85    </StaticEntity>#
86
87    <StaticEntity position="<?lua print(y) ?>,200,<?lua print(z) ?>" scale=<?lua print(j * 2) ?> collisionType=static >
88      <attached>
89        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*5,6) + 1) ?>.mesh">
90        </Model>
91      </attached>
92      <collisionShapes>
93        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
94      </collisionShapes>
95    </StaticEntity>
96
97    <StaticEntity position="<?lua print(y) ?>,-100,<?lua print(z) ?>" scale=<?lua print(j * 2) ?> collisionType=static >
98      <attached>
99        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*13+1,6) + 1) ?>.mesh">
100        </Model>
101      </attached>
102      <collisionShapes>
103        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
104      </collisionShapes>
105    </StaticEntity>
106
107    <StaticEntity position="<?lua print(y) ?>,-200,<?lua print(z) ?>" scale=<?lua print(j * 2) ?> collisionType=static >
108      <attached>
109        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*17,6) + 1) ?>.mesh">
110        </Model>
111      </attached>
112      <collisionShapes>
113        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
114      </collisionShapes>
115    </StaticEntity>
116
117<!-- ---------Top Asteroid----------- -->
118
119    <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 >
120      <attached>
121        <Model position="0,0,0" scale=25 mesh="ast6.mesh">
122        </Model>
123      </attached>
124      <collisionShapes>
125        <BoxCollisionShape    halfExtents="50,25,50" position="0,0,0" yaw="<?lua print(-90+i*360/max) ?>"/>
126      </collisionShapes>
127    </StaticEntity>
128
129
130
131<?lua
132end
133?>
134<?lua end ?>
135
136
137
138
139  </Scene>
140</Level>
141
142
Note: See TracBrowser for help on using the repository browser.