Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/gameimmersion/data/levels/test-immersion-shield-01.oxw @ 8184

Last change on this file since 8184 was 8184, checked in by simonmie, 13 years ago

Added maxShieldHealth

File size: 1.8 KB
Line 
1<LevelInfo
2 name = "shield-test-01"
3 description = "LEVELINFO-DESCRIPTION"
4/>
5
6<?lua
7  include("HUDTemplates3.oxo")
8  include("stats.oxo")
9  include("templates/spaceshipAssff.oxt")
10  include("templates/lodInformation.oxt")
11?>
12
13<Level
14 name         = "LEVEL-NAME"
15 description  = "LEVEL-DESCRIPTION"
16>
17
18  <templates>
19    <Template link=lodtemplate_default />
20  </templates>
21
22  <Scene
23   ambientlight = "0.8, 0.5, 0.5"
24   skybox       = "Orxonox/Starbox"
25  >
26
27
28
29
30<Drone name="meineDrohne"
31        primarythrust=          "80"
32        auxilarythrust=         "10"
33        rotationthrust=         "10"
34        mass=                   "50"
35        linearDamping=          "0.9"
36        angularDamping=         "0.7"
37
38        health=                 200
39        maxhealth=              150
40        inithealth=             100
41
42        shieldhealth=           200
43        shieldabsorption=       1
44        maxshieldhealth=        250
45
46        reloadrate=             "10"
47        reloadwaittime=         1
48
49>
50  <attached>
51    <Model scale="4" mesh="drone.mesh"/>
52  </attached>
53  <collisionShapes>
54    <BoxCollisionShape position="0,0,0"      halfExtents="10, 10, 10" />
55  </collisionShapes>
56</Drone>
57
58<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" />
59
60
61    <?lua
62      for i = 1, 10, 1 do
63    ?>
64      <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 />
65    <?lua end ?>
66
67    <GlobalShader compositor="Bloom" visible=false>
68      <events>
69        <visibility>
70          <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true />
71        </visibility>
72      </events>
73    </GlobalShader>
74    <Model position="0,0,0" scale=8 mesh="ast1.mesh" />
75    <StaticEntity position="0,0,0" collisionType=static>
76      <collisionShapes>
77        <SphereCollisionShape radius="20" />
78      </collisionShapes>
79    </StaticEntity>
80
81  </Scene>
82</Level>
Note: See TracBrowser for help on using the repository browser.