Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/sfxThilo/data/levels/lastManStanding.oxw @ 10156

Last change on this file since 10156 was 9889, checked in by thiweber, 11 years ago

A few changes..

  • Property svn:eol-style set to native
File size: 5.6 KB
Line 
1<LevelInfo
2 name = "Last Man Standing"
3 description = "Be the sole survivor."
4 tags = "gametype"
5 screenshot = "lastmanstanding.png"
6/>
7
8<?lua
9  include("stats.oxo")
10  include("HUDTemplates3.oxo")
11  include("templates/lodInformation.oxt")
12  include("lastManStandingHUD.oxo")
13  include("templates/spaceshipAssff.oxt")
14  include("templates/spaceshipPirate.oxt")
15  include("templates/pickupRepresentationTemplates.oxt")
16?>
17
18<Level
19 gametype = "LastManStanding"
20>
21  <templates>
22    <Template link=lodtemplate_default />
23  </templates>
24  <?lua include("includes/notifications.oxi") ?>
25
26  <Scene
27    ambientlight = "0.8, 0.8, 0.8"
28    skybox       = "Orxonox/skyBoxMoreNebula"
29  >
30
31    <?lua
32      include("includes/pickups.oxi")
33    ?>
34   
35    <WorldAmbientSound source="Nebula_metal.ogg" looping="true" playOnLoad="true" />
36
37<!----- Spawnpoints
38    <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"/>
39    <SpawnPoint team=0 position="-1150,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
40    <SpawnPoint team=0 position="1150,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
41    <SpawnPoint team=0 position="-700,0,700" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
42    <SpawnPoint team=0 position="700,0,-700" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
43    <SpawnPoint team=0 position="0,0,-1150" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
44    <SpawnPoint team=0 position="0,0,1150" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /> ----->
45<Bot />
46
47<!-- ------------ middle asteroid -------------- -->
48    <StaticEntity position="0,0,0" collisionType=static>
49        <attached>
50            <MovableEntity position="0,20,0" rotationrate="-4.5" rotationaxis="0,1,0" >
51                <attached>
52                    <Model position="0,0,0" scale=140 mesh="asteroid_UV.mesh" shadow=true />
53                    <Model position="-160,40,28.4" scale=1 mesh="sphere.mesh" /><!--EasterEgg indicator-->
54                    <PickupSpawner pickup=hugeinvisiblepickup position="-160,40,17" triggerDistance="20" respawnTime="5" maxSpawnedItems="15" /><!--EasterEgg : invisible pickup is hidden inside the asteroid -->
55                </attached>
56            </MovableEntity>
57        </attached>
58        <collisionShapes>
59            <SphereCollisionShape radius="145" />
60        </collisionShapes>
61    </StaticEntity>
62
63
64<!-- ---------------asteroid dome----------------- -->
65<?lua
66max = 16
67for i = 0, max, 1
68do
69    y = math.sin(i/max*6)*750
70    z = math.cos(i/max*6)*750
71    j = 1
72    ?>
73
74    <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 />
75
76    <StaticEntity position="<?lua print(y) ?>,0,<?lua print(z) ?>" scale="<?lua print(j * 2) ?>" collisionType=static >
77      <attached>
78        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh">
79        </Model>
80      </attached>
81      <collisionShapes>
82        <BoxCollisionShape    halfExtents="<?lua print(j * 2) ?>,100,<?lua print(j * 2) ?>" position = "0,0,0" />
83      </collisionShapes>
84    </StaticEntity>
85
86    <StaticEntity position="<?lua print(y) ?>,100,<?lua print(z) ?>" scale="<?lua print(j * 2) ?>" collisionType=static >
87      <attached>
88        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i+3,6) + 1) ?>.mesh">
89        </Model>
90      </attached>
91      <collisionShapes>
92        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
93      </collisionShapes>
94    </StaticEntity>
95
96    <StaticEntity position="<?lua print(y) ?>,200,<?lua print(z) ?>" scale="<?lua print(j * 2) ?>" collisionType=static >
97      <attached>
98        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*5,6) + 1) ?>.mesh">
99        </Model>
100      </attached>
101      <collisionShapes>
102        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
103      </collisionShapes>
104    </StaticEntity>
105
106    <StaticEntity position="<?lua print(y) ?>,-100,<?lua print(z) ?>" scale="<?lua print(j * 2) ?>" collisionType=static >
107      <attached>
108        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*13+1,6) + 1) ?>.mesh">
109        </Model>
110      </attached>
111      <collisionShapes>
112        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
113      </collisionShapes>
114    </StaticEntity>
115
116    <StaticEntity position="<?lua print(y) ?>,-200,<?lua print(z) ?>" scale="<?lua print(j * 2) ?>" collisionType=static >
117      <attached>
118        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*17,6) + 1) ?>.mesh">
119        </Model>
120      </attached>
121      <collisionShapes>
122        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
123      </collisionShapes>
124    </StaticEntity>
125
126<!-- ---------Top Asteroid----------- -->
127    <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 >
128      <attached>
129        <Model position="0,0,0" scale=25 mesh="ast6.mesh">
130        </Model>
131      </attached>
132      <collisionShapes>
133        <BoxCollisionShape    halfExtents="50,140,30" position="0,0,0"/>
134      </collisionShapes>
135    </StaticEntity>
136
137<!-- top explosion, this is instantiated here so it does not load all resources
138     later when the first kill happens. Far away since we don't want to see it -->
139     <BigExplosion position="1e12,0,0" collisionType=static visible=false >
140     </BigExplosion>
141
142
143
144<?lua end ?><!-- ---------------asteroid dome END------------------->
145
146  </Scene>
147</Level>
148
149
Note: See TracBrowser for help on using the repository browser.