| 1 | <?lua | 
|---|
| 2 |   include("hudtemplates3.oxo") | 
|---|
| 3 |   include("stats.oxo") | 
|---|
| 4 |   include("templates/spaceship_assff.oxt") | 
|---|
| 5 | ?> | 
|---|
| 6 |  | 
|---|
| 7 | <Level | 
|---|
| 8 |  name         = "Presentation" | 
|---|
| 9 |  description  = "A simple testlevel" | 
|---|
| 10 | > | 
|---|
| 11 |   <Scene | 
|---|
| 12 |    ambientlight = "0.5, 0.5, 0.5" | 
|---|
| 13 |    skybox       = "Orxonox/skypanoramagen1" | 
|---|
| 14 |   > | 
|---|
| 15 |  | 
|---|
| 16 | <Drone name="meineDrohne" primarythrust="80" auxilarythrust="10" rotationthrust="10" mass= "50" linearDamping = "0.9" angularDamping = "0.7"> | 
|---|
| 17 |   <attached> | 
|---|
| 18 |     <Model scale="10" mesh="drone.mesh"/> | 
|---|
| 19 |   </attached> | 
|---|
| 20 |   <collisionShapes> | 
|---|
| 21 |     <BoxCollisionShape position="0,0,0"      halfExtents="10, 10, 10" /> | 
|---|
| 22 |   </collisionShapes> | 
|---|
| 23 | </Drone> | 
|---|
| 24 |  | 
|---|
| 25 |  | 
|---|
| 26 |     <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" /> | 
|---|
| 27 |  | 
|---|
| 28 | <Model mesh="hs-w01.mesh" scale=10 position="0,0,-100" /> | 
|---|
| 29 | <Model mesh="hs-w01s.mesh" scale=10 position="0,0,-100" /> | 
|---|
| 30 |  | 
|---|
| 31 | <?lua | 
|---|
| 32 | for i = 1, 10, 1 | 
|---|
| 33 | do ?> | 
|---|
| 34 |     <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 /> | 
|---|
| 35 | <?lua | 
|---|
| 36 | end | 
|---|
| 37 | ?> | 
|---|
| 38 |  | 
|---|
| 39 |     <GlobalShader compositor="Bloom" visible=false> | 
|---|
| 40 |       <events> | 
|---|
| 41 |         <visibility> | 
|---|
| 42 |           <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true /> | 
|---|
| 43 |         </visibility> | 
|---|
| 44 |       </events> | 
|---|
| 45 |     </GlobalShader> | 
|---|
| 46 |     <Model position="0,0,0" scale=8 mesh="ast1.mesh" /> | 
|---|
| 47 |     <StaticEntity position="0,0,0" collisionType=static> | 
|---|
| 48 |       <collisionShapes> | 
|---|
| 49 |         <SphereCollisionShape radius="20" /> | 
|---|
| 50 |       </collisionShapes> | 
|---|
| 51 |     </StaticEntity> | 
|---|
| 52 | <!-- | 
|---|
| 53 | <?lua | 
|---|
| 54 | for i = 1, 70, 1 | 
|---|
| 55 | do ?> | 
|---|
| 56 |   <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 1000 + 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> | 
|---|
| 57 |     <attached> | 
|---|
| 58 |       <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> | 
|---|
| 59 |     </attached> | 
|---|
| 60 |   </MovableEntity> | 
|---|
| 61 |   <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * -1000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> | 
|---|
| 62 |     <attached> | 
|---|
| 63 |       <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> | 
|---|
| 64 |     </attached> | 
|---|
| 65 |   </MovableEntity> | 
|---|
| 66 |  | 
|---|
| 67 |   <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 1000 + 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> | 
|---|
| 68 |     <attached> | 
|---|
| 69 |       <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> | 
|---|
| 70 |     </attached> | 
|---|
| 71 |   </MovableEntity> | 
|---|
| 72 |   <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * -1000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> | 
|---|
| 73 |     <attached> | 
|---|
| 74 |       <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> | 
|---|
| 75 |     </attached> | 
|---|
| 76 |   </MovableEntity> | 
|---|
| 77 |  | 
|---|
| 78 |   <MovableEntity position="<?lua print(math.random() * 1000 + 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> | 
|---|
| 79 |     <attached> | 
|---|
| 80 |       <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> | 
|---|
| 81 |     </attached> | 
|---|
| 82 |   </MovableEntity> | 
|---|
| 83 |   <MovableEntity position="<?lua print(math.random() * -1000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> | 
|---|
| 84 |     <attached> | 
|---|
| 85 |       <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> | 
|---|
| 86 |     </attached> | 
|---|
| 87 |   </MovableEntity> | 
|---|
| 88 | <?lua | 
|---|
| 89 | end | 
|---|
| 90 | ?> | 
|---|
| 91 | --> | 
|---|
| 92 |   </Scene> | 
|---|
| 93 | </Level> | 
|---|