Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 11641 was 9968, checked in by landauf, 11 years ago

fixed crash while loading lastManStanding.oxw (BigExplosion is now a MovableEntity and cannot have static collision type anymore)

  • Property svn:eol-style set to native
File size: 5.6 KB
RevLine 
[8178]1<LevelInfo
2 name = "Last Man Standing"
3 description = "Be the sole survivor."
[9016]4 tags = "gametype"
5 screenshot = "lastmanstanding.png"
[8178]6/>
7
[7556]8<?lua
9  include("stats.oxo")
[7679]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")
[7556]16?>
17
18<Level
[9016]19 gametype = "LastManStanding"
[7556]20>
21  <templates>
22    <Template link=lodtemplate_default />
23  </templates>
[8706]24  <?lua include("includes/notifications.oxi") ?>
[7556]25
26  <Scene
27    ambientlight = "0.8, 0.8, 0.8"
[7785]28    skybox       = "Orxonox/skyBoxMoreNebula"
[7556]29  >
[7605]30
31    <?lua
32      include("includes/pickups.oxi")
33    ?>
[9939]34   
35    <WorldAmbientSound source="Nebula_metal.ogg" looping="true" playOnLoad="true" />
[7605]36
[9348]37<!----- Spawnpoints
[7556]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"/>
[7561]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 />
[7605]44    <SpawnPoint team=0 position="0,0,1150" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /> ----->
[7561]45<Bot />
[7556]46
[7561]47<!-- ------------ middle asteroid -------------- -->
[9348]48    <StaticEntity position="0,0,0" collisionType=static>
[8178]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-->
[9348]54                    <PickupSpawner pickup=hugeinvisiblepickup position="-160,40,17" triggerDistance="20" respawnTime="5" maxSpawnedItems="15" /><!--EasterEgg : invisible pickup is hidden inside the asteroid -->
[8178]55                </attached>
56            </MovableEntity>
57        </attached>
58        <collisionShapes>
59            <SphereCollisionShape radius="145" />
60        </collisionShapes>
[7561]61    </StaticEntity>
62
[7605]63
[7561]64<!-- ---------------asteroid dome----------------- -->
[7556]65<?lua
[7617]66max = 16
67for i = 0, max, 1
[7556]68do
[7561]69    y = math.sin(i/max*6)*750
70    z = math.cos(i/max*6)*750
[7617]71    j = 1
[7561]72    ?>
[7556]73
[7605]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 />
[7600]75
[8079]76    <StaticEntity position="<?lua print(y) ?>,0,<?lua print(z) ?>" scale="<?lua print(j * 2) ?>" collisionType=static >
[7556]77      <attached>
[7561]78        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh">
[9348]79        </Model>
[7556]80      </attached>
[7585]81      <collisionShapes>
82        <BoxCollisionShape    halfExtents="<?lua print(j * 2) ?>,100,<?lua print(j * 2) ?>" position = "0,0,0" />
83      </collisionShapes>
[7556]84    </StaticEntity>
85
[8079]86    <StaticEntity position="<?lua print(y) ?>,100,<?lua print(z) ?>" scale="<?lua print(j * 2) ?>" collisionType=static >
[7556]87      <attached>
[7561]88        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i+3,6) + 1) ?>.mesh">
[9348]89        </Model>
[7556]90      </attached>
[7585]91      <collisionShapes>
92        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
93      </collisionShapes>
[7605]94    </StaticEntity>
[7556]95
[8079]96    <StaticEntity position="<?lua print(y) ?>,200,<?lua print(z) ?>" scale="<?lua print(j * 2) ?>" collisionType=static >
[7556]97      <attached>
[7561]98        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*5,6) + 1) ?>.mesh">
[9348]99        </Model>
[7556]100      </attached>
[7585]101      <collisionShapes>
102        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
103      </collisionShapes>
[7561]104    </StaticEntity>
[7556]105
[8079]106    <StaticEntity position="<?lua print(y) ?>,-100,<?lua print(z) ?>" scale="<?lua print(j * 2) ?>" collisionType=static >
[7561]107      <attached>
[7573]108        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*13+1,6) + 1) ?>.mesh">
[9348]109        </Model>
[7561]110      </attached>
[7585]111      <collisionShapes>
112        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
113      </collisionShapes>
[7561]114    </StaticEntity>
[7556]115
[8079]116    <StaticEntity position="<?lua print(y) ?>,-200,<?lua print(z) ?>" scale="<?lua print(j * 2) ?>" collisionType=static >
[7561]117      <attached>
118        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*17,6) + 1) ?>.mesh">
[9348]119        </Model>
[7561]120      </attached>
[7585]121      <collisionShapes>
122        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
123      </collisionShapes>
[7561]124    </StaticEntity>
125
[7596]126<!-- ---------Top Asteroid----------- -->
[8079]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 >
[7596]128      <attached>
129        <Model position="0,0,0" scale=25 mesh="ast6.mesh">
[9348]130        </Model>
[7596]131      </attached>
132      <collisionShapes>
[7603]133        <BoxCollisionShape    halfExtents="50,140,30" position="0,0,0"/>
[7596]134      </collisionShapes>
135    </StaticEntity>
[7573]136
[9555]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 -->
[9968]139     <BigExplosion position="1e12,0,0" visible=false >
[9555]140     </BigExplosion>
[7573]141
[9555]142
143
[8178]144<?lua end ?><!-- ---------------asteroid dome END------------------->
[7561]145
[7556]146  </Scene>
147</Level>
148
[7561]149
Note: See TracBrowser for help on using the repository browser.