Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/Racingbot/data/levels/lastManStanding.oxw @ 10022

Last change on this file since 10022 was 9348, checked in by landauf, 12 years ago

merged branch presentation2012merge back to trunk

  • Property svn:eol-style set to native
File size: 5.3 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<!----- Spawnpoints
36    <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"/>
37    <SpawnPoint team=0 position="-1150,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
38    <SpawnPoint team=0 position="1150,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
39    <SpawnPoint team=0 position="-700,0,700" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
40    <SpawnPoint team=0 position="700,0,-700" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
41    <SpawnPoint team=0 position="0,0,-1150" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
42    <SpawnPoint team=0 position="0,0,1150" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /> ----->
43<Bot />
44
45<!-- ------------ middle asteroid -------------- -->
46    <StaticEntity position="0,0,0" collisionType=static>
47        <attached>
48            <MovableEntity position="0,20,0" rotationrate="-4.5" rotationaxis="0,1,0" >
49                <attached>
50                    <Model position="0,0,0" scale=140 mesh="asteroid_UV.mesh" shadow=true />
51                    <Model position="-160,40,28.4" scale=1 mesh="sphere.mesh" /><!--EasterEgg indicator-->
52                    <PickupSpawner pickup=hugeinvisiblepickup position="-160,40,17" triggerDistance="20" respawnTime="5" maxSpawnedItems="15" /><!--EasterEgg : invisible pickup is hidden inside the asteroid -->
53                </attached>
54            </MovableEntity>
55        </attached>
56        <collisionShapes>
57            <SphereCollisionShape radius="145" />
58        </collisionShapes>
59    </StaticEntity>
60
61
62<!-- ---------------asteroid dome----------------- -->
63<?lua
64max = 16
65for i = 0, max, 1
66do
67    y = math.sin(i/max*6)*750
68    z = math.cos(i/max*6)*750
69    j = 1
70    ?>
71
72    <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 />
73
74    <StaticEntity position="<?lua print(y) ?>,0,<?lua print(z) ?>" scale="<?lua print(j * 2) ?>" collisionType=static >
75      <attached>
76        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh">
77        </Model>
78      </attached>
79      <collisionShapes>
80        <BoxCollisionShape    halfExtents="<?lua print(j * 2) ?>,100,<?lua print(j * 2) ?>" position = "0,0,0" />
81      </collisionShapes>
82    </StaticEntity>
83
84    <StaticEntity position="<?lua print(y) ?>,100,<?lua print(z) ?>" scale="<?lua print(j * 2) ?>" collisionType=static >
85      <attached>
86        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i+3,6) + 1) ?>.mesh">
87        </Model>
88      </attached>
89      <collisionShapes>
90        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
91      </collisionShapes>
92    </StaticEntity>
93
94    <StaticEntity position="<?lua print(y) ?>,200,<?lua print(z) ?>" scale="<?lua print(j * 2) ?>" collisionType=static >
95      <attached>
96        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*5,6) + 1) ?>.mesh">
97        </Model>
98      </attached>
99      <collisionShapes>
100        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
101      </collisionShapes>
102    </StaticEntity>
103
104    <StaticEntity position="<?lua print(y) ?>,-100,<?lua print(z) ?>" scale="<?lua print(j * 2) ?>" collisionType=static >
105      <attached>
106        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*13+1,6) + 1) ?>.mesh">
107        </Model>
108      </attached>
109      <collisionShapes>
110        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
111      </collisionShapes>
112    </StaticEntity>
113
114    <StaticEntity position="<?lua print(y) ?>,-200,<?lua print(z) ?>" scale="<?lua print(j * 2) ?>" collisionType=static >
115      <attached>
116        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*17,6) + 1) ?>.mesh">
117        </Model>
118      </attached>
119      <collisionShapes>
120        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
121      </collisionShapes>
122    </StaticEntity>
123
124<!-- ---------Top Asteroid----------- -->
125    <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 >
126      <attached>
127        <Model position="0,0,0" scale=25 mesh="ast6.mesh">
128        </Model>
129      </attached>
130      <collisionShapes>
131        <BoxCollisionShape    halfExtents="50,140,30" position="0,0,0"/>
132      </collisionShapes>
133    </StaticEntity>
134
135
136<?lua end ?><!-- ---------------asteroid dome END------------------->
137
138  </Scene>
139</Level>
140
141
Note: See TracBrowser for help on using the repository browser.