[Orxonox-commit 3460] r8146 - code/branches/gameimmersion/data/levels
simonmie at orxonox.net
simonmie at orxonox.net
Mon Mar 28 15:57:44 CEST 2011
Author: simonmie
Date: 2011-03-28 15:57:44 +0200 (Mon, 28 Mar 2011)
New Revision: 8146
Added:
code/branches/gameimmersion/data/levels/test-immersion-shield-01.oxw
Log:
Added test-level for auto-reloading shield
Added: code/branches/gameimmersion/data/levels/test-immersion-shield-01.oxw
===================================================================
--- code/branches/gameimmersion/data/levels/test-immersion-shield-01.oxw (rev 0)
+++ code/branches/gameimmersion/data/levels/test-immersion-shield-01.oxw 2011-03-28 13:57:44 UTC (rev 8146)
@@ -0,0 +1,82 @@
+<LevelInfo
+ name = "shield-test-01"
+ description = "LEVELINFO-DESCRIPTION"
+/>
+
+<?lua
+ include("HUDTemplates3.oxo")
+ include("stats.oxo")
+ include("templates/spaceshipAssff.oxt")
+ include("templates/lodInformation.oxt")
+?>
+
+<Level
+ name = "LEVEL-NAME"
+ description = "LEVEL-DESCRIPTION"
+>
+
+ <templates>
+ <Template link=lodtemplate_default />
+ </templates>
+
+ <Scene
+ ambientlight = "0.8, 0.5, 0.5"
+ skybox = "Orxonox/Starbox"
+ >
+
+
+
+
+<Drone name="meineDrohne"
+ primarythrust= "80"
+ auxilarythrust= "10"
+ rotationthrust= "10"
+ mass= "50"
+ linearDamping= "0.9"
+ angularDamping= "0.7"
+
+ health= 100
+ maxhealth= 150
+ inithealth= 100
+
+ shieldhealth= 200
+ shieldabsorption= 1
+
+ reloadrate= "10"
+
+>
+ <attached>
+ <Model scale="4" mesh="drone.mesh"/>
+ </attached>
+ <collisionShapes>
+ <BoxCollisionShape position="0,0,0" halfExtents="10, 10, 10" />
+ </collisionShapes>
+</Drone>
+
+<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" />
+
+<Model mesh="hs-w01.mesh" scale=10 position="0,0,-100" />
+<Model mesh="hs-w01s.mesh" scale=10 position="0,0,-100" />
+
+ <?lua
+ for i = 1, 10, 1 do
+ ?>
+ <SpawnPoint position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
+ <?lua end ?>
+
+ <GlobalShader compositor="Bloom" visible=false>
+ <events>
+ <visibility>
+ <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true />
+ </visibility>
+ </events>
+ </GlobalShader>
+ <Model position="0,0,0" scale=8 mesh="ast1.mesh" />
+ <StaticEntity position="0,0,0" collisionType=static>
+ <collisionShapes>
+ <SphereCollisionShape radius="20" />
+ </collisionShapes>
+ </StaticEntity>
+
+ </Scene>
+</Level>
More information about the Orxonox-commit
mailing list