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