[8146] | 1 | <LevelInfo |
---|
[8386] | 2 | name = "shield-test-level" |
---|
| 3 | description = "A simple Level with one shielded drone to shoot at" |
---|
[8146] | 4 | /> |
---|
| 5 | |
---|
| 6 | <?lua |
---|
| 7 | include("HUDTemplates3.oxo") |
---|
| 8 | include("stats.oxo") |
---|
[8386] | 9 | include("templates/spaceshipImmTest.oxt") |
---|
[8146] | 10 | include("templates/lodInformation.oxt") |
---|
| 11 | ?> |
---|
| 12 | |
---|
| 13 | <Level |
---|
[8386] | 14 | name = "shieldTL" |
---|
[8146] | 15 | description = "LEVEL-DESCRIPTION" |
---|
| 16 | > |
---|
| 17 | |
---|
[8386] | 18 | <templates> |
---|
| 19 | <Template link=lodtemplate_default /> |
---|
| 20 | </templates> |
---|
[8146] | 21 | |
---|
[8386] | 22 | <Scene |
---|
[8146] | 23 | ambientlight = "0.8, 0.5, 0.5" |
---|
| 24 | skybox = "Orxonox/Starbox" |
---|
[8386] | 25 | > |
---|
[8146] | 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 | |
---|
[8187] | 38 | health= 100 |
---|
[8146] | 39 | maxhealth= 150 |
---|
[8187] | 40 | inithealth= 200 |
---|
[8146] | 41 | |
---|
[8187] | 42 | shieldhealth= 100 |
---|
| 43 | initialshieldhealth= 200 |
---|
[8184] | 44 | maxshieldhealth= 250 |
---|
[8146] | 45 | |
---|
[8187] | 46 | shieldabsorption= 1 |
---|
| 47 | |
---|
[8146] | 48 | reloadrate= "10" |
---|
[8184] | 49 | reloadwaittime= 1 |
---|
[8146] | 50 | |
---|
| 51 | > |
---|
| 52 | <attached> |
---|
| 53 | <Model scale="4" mesh="drone.mesh"/> |
---|
| 54 | </attached> |
---|
| 55 | <collisionShapes> |
---|
| 56 | <BoxCollisionShape position="0,0,0" halfExtents="10, 10, 10" /> |
---|
| 57 | </collisionShapes> |
---|
| 58 | </Drone> |
---|
| 59 | |
---|
| 60 | <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" /> |
---|
| 61 | |
---|
| 62 | |
---|
| 63 | <?lua |
---|
| 64 | for i = 1, 10, 1 do |
---|
| 65 | ?> |
---|
[8386] | 66 | <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] | 67 | <?lua end ?> |
---|
| 68 | |
---|
| 69 | <GlobalShader compositor="Bloom" visible=false> |
---|
| 70 | <events> |
---|
| 71 | <visibility> |
---|
| 72 | <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true /> |
---|
| 73 | </visibility> |
---|
| 74 | </events> |
---|
| 75 | </GlobalShader> |
---|
| 76 | <Model position="0,0,0" scale=8 mesh="ast1.mesh" /> |
---|
| 77 | <StaticEntity position="0,0,0" collisionType=static> |
---|
| 78 | <collisionShapes> |
---|
| 79 | <SphereCollisionShape radius="20" /> |
---|
| 80 | </collisionShapes> |
---|
| 81 | </StaticEntity> |
---|
| 82 | |
---|
| 83 | </Scene> |
---|
| 84 | </Level> |
---|