Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/lastManStanding.oxw @ 8452

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

Merged lastmastanding3 into trunk. There's an xml parsing error that only appeared after merging. The level seems to load properly though.

  • Property svn:eol-style set to native
File size: 5.4 KB
Line 
1<LevelInfo
2 name = "Last Man Standing"
3 description = "Be the sole survivor."
4 tags = ""
5/>
6
7<?lua
8  include("stats.oxo")
9  include("HUDTemplates3.oxo")
10  include("templates/lodInformation.oxt")
11  include("lastManStandingHUD.oxo")
12  include("templates/spaceshipAssff.oxt")
13  include("templates/spaceshipPirate.oxt")
14  include("templates/pickupRepresentationTemplates.oxt")
15?>
16
17<Level
18 name         = "Last Man Standing"
19 description  = "testmap for gametype last man standing"
20 gametype     =  "LastManStanding"
21>
22  <templates>
23    <Template link=lodtemplate_default />
24  </templates>
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 position="-160,40,17" triggerDistance="20" respawnTime="5" maxSpawnedItems="15"><!--EasterEgg-->
53                        <pickup>
54                            <InvisiblePickup template=hugeinvisiblepickup />
55                        </pickup>
56                    </PickupSpawner>
57                </attached>
58            </MovableEntity>
59        </attached>
60        <collisionShapes>
61            <SphereCollisionShape radius="145" />
62        </collisionShapes>
63    </StaticEntity>
64
65
66<!-- ---------------asteroid dome----------------- -->
67<?lua
68max = 16
69for i = 0, max, 1
70do
71    y = math.sin(i/max*6)*750
72    z = math.cos(i/max*6)*750
73    j = 1
74    ?>
75
76    <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 />
77
78    <StaticEntity position="<?lua print(y) ?>,0,<?lua print(z) ?>" scale="<?lua print(j * 2) ?>" collisionType=static >
79      <attached>
80        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh">
81        </Model>
82      </attached>
83      <collisionShapes>
84        <BoxCollisionShape    halfExtents="<?lua print(j * 2) ?>,100,<?lua print(j * 2) ?>" position = "0,0,0" />
85      </collisionShapes>
86    </StaticEntity>
87
88    <StaticEntity position="<?lua print(y) ?>,100,<?lua print(z) ?>" scale="<?lua print(j * 2) ?>" collisionType=static >
89      <attached>
90        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i+3,6) + 1) ?>.mesh">
91        </Model>
92      </attached>
93      <collisionShapes>
94        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
95      </collisionShapes>
96    </StaticEntity>
97
98    <StaticEntity position="<?lua print(y) ?>,200,<?lua print(z) ?>" scale="<?lua print(j * 2) ?>" collisionType=static >
99      <attached>
100        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*5,6) + 1) ?>.mesh">
101        </Model>
102      </attached>
103      <collisionShapes>
104        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
105      </collisionShapes>
106    </StaticEntity>
107
108    <StaticEntity position="<?lua print(y) ?>,-100,<?lua print(z) ?>" scale="<?lua print(j * 2) ?>" collisionType=static >
109      <attached>
110        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*13+1,6) + 1) ?>.mesh">
111        </Model>
112      </attached>
113      <collisionShapes>
114        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
115      </collisionShapes>
116    </StaticEntity>
117
118    <StaticEntity position="<?lua print(y) ?>,-200,<?lua print(z) ?>" scale="<?lua print(j * 2) ?>" collisionType=static >
119      <attached>
120        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*17,6) + 1) ?>.mesh">
121        </Model>
122      </attached>
123      <collisionShapes>
124        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
125      </collisionShapes>
126    </StaticEntity>
127
128<!-- ---------Top Asteroid----------- -->
129    <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 >
130      <attached>
131        <Model position="0,0,0" scale=25 mesh="ast6.mesh">
132        </Model>
133      </attached>
134      <collisionShapes>
135        <BoxCollisionShape    halfExtents="50,140,30" position="0,0,0"/>
136      </collisionShapes>
137    </StaticEntity>
138
139
140<?lua end ?><!-- ---------------asteroid dome END------------------->
141
142  </Scene>
143</Level>
144
145
Note: See TracBrowser for help on using the repository browser.