Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/lastmanstanding2/data/levels/lastManStanding.oxw @ 7899

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

Level polishing.

  • Property svn:eol-style set to native
File size: 5.3 KB
Line 
1<?lua
2  include("stats.oxo")
3  include("HUDTemplates3.oxo")
4  include("templates/lodInformation.oxt")
5  include("lastManStandingHUD.oxo")
6  include("templates/spaceshipAssff.oxt")
7  include("templates/spaceshipPirate.oxt")
8  include("templates/pickupRepresentationTemplates.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,0,0" collisionType=static>   
41        <attached>
42            <MovableEntity position="0,20,0" rotationrate="-4.5" rotationaxis="0,1,0" >
43                <attached>
44                    <Model position="0,0,0" scale=140 mesh="asteroid_UV.mesh" shadow=true />
45                    <Model position="-160,40,28.4" scale=1 mesh="sphere.mesh" /><!--EasterEgg indicator-->
46                    <PickupSpawner position="-160,40,17" triggerDistance="20" respawnTime="5" maxSpawnedItems="15"><!--EasterEgg-->
47                        <pickup>
48                            <InvisiblePickup template=hugeinvisiblepickup />
49                        </pickup>
50                    </PickupSpawner>
51                </attached>
52            </MovableEntity>
53        </attached>
54        <collisionShapes>
55            <SphereCollisionShape radius="145" />
56        </collisionShapes>
57    </StaticEntity>
58
59
60<!-- ---------------asteroid dome----------------- -->
61<?lua
62max = 16
63for i = 0, max, 1
64do
65    y = math.sin(i/max*6)*750
66    z = math.cos(i/max*6)*750
67    j = 1
68    ?>
69
70    <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 />
71
72    <StaticEntity position="<?lua print(y) ?>,0,<?lua print(z) ?>" scale=<?lua print(j * 2) ?> collisionType=static >
73      <attached>
74        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh">
75        </Model>
76      </attached>
77      <collisionShapes>
78        <BoxCollisionShape    halfExtents="<?lua print(j * 2) ?>,100,<?lua print(j * 2) ?>" position = "0,0,0" />
79      </collisionShapes>
80    </StaticEntity>
81
82    <StaticEntity position="<?lua print(y) ?>,100,<?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+3,6) + 1) ?>.mesh">
85        </Model>
86      </attached>
87      <collisionShapes>
88        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
89      </collisionShapes>
90    </StaticEntity>
91
92    <StaticEntity position="<?lua print(y) ?>,200,<?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*5,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) ?>,-100,<?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*13+1,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) ?>,-200,<?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*17,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<!-- ---------Top Asteroid----------- -->
123    <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 >
124      <attached>
125        <Model position="0,0,0" scale=25 mesh="ast6.mesh">
126        </Model>
127      </attached>
128      <collisionShapes>
129        <BoxCollisionShape    halfExtents="50,140,30" position="0,0,0"/>
130      </collisionShapes>
131    </StaticEntity>
132
133
134<?lua end ?><!-- ---------------asteroid dome END------------------->
135
136  </Scene>
137</Level>
138
139
Note: See TracBrowser for help on using the repository browser.