Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/lastmanstanding2/data/levels/lastTeamStanding.oxw @ 7737

Last change on this file since 7737 was 7697, checked in by dafrick, 14 years ago

Manually merging changes in lastmanstanding branch to lastmanstanding2 branch.
Please continue here, since the lastmanstanding branch has already been merged.

File size: 4.5 KB
Line 
1<?lua
2  include("stats.oxo")
3  include("HUDTemplates3.oxo")
4  include("templates/lodInformation.oxt")
5  include("lastTeamStandingHUD.oxo")
6  include("templates/spaceshipAssff.oxt")
7  include("templates/spaceshipPirate.oxt")
8  include("templates/pickupRepresentationTemplates.oxt")
9?>
10
11<Level
12 name         = "Last Team Standing"
13 description  = "testmap for gametype last team standing"
14 gametype     =  "LastTeamStanding"
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<Bot />
30
31<!-- ------------ middle asteroid -------------- -->
32    <StaticEntity position="0,20,0" collisionType=static>
33       <attached>
34           <Model position="0,0,0" scale=140 mesh="asteroid_UV.mesh" shadow=true />
35           <!-- ParticleEmitter position="0,0,0" source="Orxonox/Steam" / -->
36       </attached>
37      <collisionShapes>
38        <SphereCollisionShape radius="145" />
39      </collisionShapes>
40    </StaticEntity>
41
42    <PickupSpawner position="-160,65,10" triggerDistance="10" respawnTime="5" maxSpawnedItems="10"><!--EasterEgg-->
43      <pickup>
44        <InvisiblePickup template=mediuminvisiblepickup />
45      </pickup>
46    </PickupSpawner>
47    <PickupSpawner position="-160,60,17" triggerDistance="10" respawnTime="5" maxSpawnedItems="10"><!--EasterEgg-->
48      <pickup>
49        <InvisiblePickup template=hugeinvisiblepickup />
50      </pickup>
51    </PickupSpawner>
52    <StaticEntity position="-160,60,28.4"><!--EasterEgg-Indicator-->
53      <attached>
54        <Model position="0,0,0" scale=1 mesh="sphere.mesh" />
55      </attached>
56    </StaticEntity>
57
58<!-- ---------------asteroid dome----------------- -->
59<?lua
60max = 16
61for i = 0, max, 1
62do
63    y = math.sin(i/max*6)*750
64    z = math.cos(i/max*6)*750
65    j = 1
66    ?>
67
68    <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 />
69
70    <StaticEntity position="<?lua print(y) ?>,0,<?lua print(z) ?>" scale=<?lua print(j * 2) ?> collisionType=static >
71      <attached>
72        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh">
73        </Model>
74      </attached>
75      <collisionShapes>
76        <BoxCollisionShape    halfExtents="<?lua print(j * 2) ?>,100,<?lua print(j * 2) ?>" position = "0,0,0" />
77      </collisionShapes>
78    </StaticEntity>
79
80    <StaticEntity position="<?lua print(y) ?>,100,<?lua print(z) ?>" scale=<?lua print(j * 2) ?> collisionType=static >
81      <attached>
82        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i+3,6) + 1) ?>.mesh">
83        </Model>
84      </attached>
85      <collisionShapes>
86        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
87      </collisionShapes>
88    </StaticEntity>
89
90    <StaticEntity position="<?lua print(y) ?>,200,<?lua print(z) ?>" scale=<?lua print(j * 2) ?> collisionType=static >
91      <attached>
92        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*5,6) + 1) ?>.mesh">
93        </Model>
94      </attached>
95      <collisionShapes>
96        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
97      </collisionShapes>
98    </StaticEntity>
99
100    <StaticEntity position="<?lua print(y) ?>,-100,<?lua print(z) ?>" scale=<?lua print(j * 2) ?> collisionType=static >
101      <attached>
102        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*13+1,6) + 1) ?>.mesh">
103        </Model>
104      </attached>
105      <collisionShapes>
106        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
107      </collisionShapes>
108    </StaticEntity>
109
110    <StaticEntity position="<?lua print(y) ?>,-200,<?lua print(z) ?>" scale=<?lua print(j * 2) ?> collisionType=static >
111      <attached>
112        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*17,6) + 1) ?>.mesh">
113        </Model>
114      </attached>
115      <collisionShapes>
116        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
117      </collisionShapes>
118    </StaticEntity>
119
120<!-- ---------Top Asteroid----------- -->
121    <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 >
122      <attached>
123        <Model position="0,0,0" scale=25 mesh="ast6.mesh">
124        </Model>
125      </attached>
126      <collisionShapes>
127        <BoxCollisionShape    halfExtents="50,140,30" position="0,0,0"/>
128      </collisionShapes>
129    </StaticEntity>
130
131
132<?lua end ?>
133
134  </Scene>
135</Level>
136
137
Note: See TracBrowser for help on using the repository browser.