Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Various successful changes. But the part I commented out in punishPlayer(PlayerInfo* player) causes crashes.

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