Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 8999 was 8706, checked in by dafrick, 13 years ago

Merging presentation branch back into trunk.
There are many new features and also a lot of other changes and bugfixes, if you want to know, digg through the svn log.
Not everything is yet working as it should, but it should be fairly stable. If you habe any bug reports, just send me an email.

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