Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/shieldTest.oxw @ 8976

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