Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Jetzt auch mit einfachem HUD.

  • Property svn:eol-style set to native
File size: 3.9 KB
Line 
1<?lua
2  include("stats.oxo")
3  include("hudtemplates3.oxo")
4  include("templates/lodinformation.oxt")
5  include("lastmanstandinghud.oxo")
6?>
7
8<?lua
9  include("templates/spaceship_assff.oxt")
10  include("templates/spaceship_pirate.oxt")
11?>
12
13<Level
14 name         = "Last Man Standing"
15 description  = "testmap for gametype last man standing"
16 gametype     =  "LastManStanding"
17>
18  <templates>
19    <Template link=lodtemplate_default />
20  </templates>
21
22  <Scene
23    ambientlight = "0.8, 0.8, 0.8"
24    skybox       = "Orxonox/skypanoramagen1"
25  >
26<!----- Spawnpoints ----->
27    <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"/>
28    <SpawnPoint team=0 position="-1150,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
29    <SpawnPoint team=0 position="1150,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
30    <SpawnPoint team=0 position="-700,0,700" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
31    <SpawnPoint team=0 position="700,0,-700" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
32    <SpawnPoint team=0 position="0,0,-1150" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
33    <SpawnPoint team=0 position="0,0,1150" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
34<Bot />
35
36<!-- ------------ middle asteroid -------------- -->
37    <StaticEntity position="0,20,0">
38       <attached>
39           <Model position="0,0,0" scale=140 mesh="asteroid_UV.mesh" shadow=true />
40           <!-- ParticleEmitter position="0,0,0" source="Orxonox/Steam" / -->
41       </attached>
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, 25, 1
60do
61j = math.random()
62?>
63
64    <StaticEntity position="<?lua print(y) ?>,0,<?lua print(z) ?>" scale=<?lua print(j * 2) ?> >
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    </StaticEntity>
70
71    <StaticEntity position="<?lua print(y) ?>,100,<?lua print(z) ?>" scale=<?lua print(j * 2) ?> >
72      <attached>
73        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i+3,6) + 1) ?>.mesh">
74        </Model>
75      </attached>
76    </StaticEntity>#
77
78    <StaticEntity position="<?lua print(y) ?>,200,<?lua print(z) ?>" scale=<?lua print(j * 2) ?> >
79      <attached>
80        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*5,6) + 1) ?>.mesh">
81        </Model>
82      </attached>
83    </StaticEntity>
84
85    <StaticEntity position="<?lua print(y) ?>,-100,<?lua print(z) ?>" scale=<?lua print(j * 2) ?> >
86      <attached>
87        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*13+1,6) + 1) ?>.mesh">
88        </Model>
89      </attached>
90    </StaticEntity>
91
92    <StaticEntity position="<?lua print(y) ?>,-200,<?lua print(z) ?>" scale=<?lua print(j * 2) ?> >
93      <attached>
94        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*17,6) + 1) ?>.mesh">
95        </Model>
96      </attached>
97    </StaticEntity>
98
99
100
101  <MovableEntity 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) ?>" >
102       <attached>
103           <Model position="0,0,0" scale=25 mesh="ast6.mesh" shadow=true />
104           <!--ParticleEmitter position="0,0,0" source="Orxonox/Steam" /-->
105       </attached>
106
107      <!--collisionShapes>
108        <BoxCollisionShape position="<?lua print(y) ?>,0,<?lua print(z) ?>"      halfExtents="50, 200, 50" />
109      </collisionShapes-->
110
111  </MovableEntity>
112
113<?lua
114end
115?>
116<?lua end ?>
117
118
119
120
121  </Scene>
122</Level>
123
124
Note: See TracBrowser for help on using the repository browser.