[5378] | 1 | <?lua |
---|
[5654] | 2 | include("hudtemplates3.oxo") |
---|
| 3 | include("stats.oxo") |
---|
| 4 | include("templates/spaceship_assff.oxt") |
---|
| 5 | include("templates/spaceship_H2.oxt") |
---|
[5378] | 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 | |
---|
[5519] | 18 | |
---|
[7007] | 19 | <?lua |
---|
| 20 | for i = 1, 10, 1 do |
---|
| 21 | ?> |
---|
| 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 end ?> |
---|
[5383] | 24 | |
---|
| 25 | <GlobalShader compositor="Bloom" visible=false> |
---|
| 26 | <events> |
---|
| 27 | <visibility> |
---|
| 28 | <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true /> |
---|
| 29 | </visibility> |
---|
| 30 | </events> |
---|
| 31 | </GlobalShader> |
---|
[5502] | 32 | |
---|
[7007] | 33 | <?lua |
---|
| 34 | for i = 1, 100, 1 do |
---|
| 35 | j = math.random() |
---|
| 36 | ?> |
---|
| 37 | <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) ?>"> |
---|
| 38 | <attached> |
---|
| 39 | <Model position="0,0,0" scale=<?lua print(j * 10) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" /> |
---|
| 40 | </attached> |
---|
| 41 | <collisionShapes> |
---|
| 42 | <SphereCollisionShape radius="<?lua print(j * 70) ?>" /> |
---|
| 43 | </collisionShapes> |
---|
| 44 | </MovableEntity> |
---|
| 45 | <?lua end ?> |
---|
[5513] | 46 | |
---|
[5464] | 47 | <!-- |
---|
[7007] | 48 | <?lua |
---|
| 49 | for i = 1, 70, 1 do |
---|
| 50 | ?> |
---|
| 51 | <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) ?>"> |
---|
| 52 | <attached> |
---|
| 53 | <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> |
---|
| 54 | </attached> |
---|
| 55 | </MovableEntity> |
---|
| 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> |
---|
[5383] | 61 | |
---|
[7007] | 62 | <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) ?>"> |
---|
| 63 | <attached> |
---|
| 64 | <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> |
---|
| 65 | </attached> |
---|
| 66 | </MovableEntity> |
---|
| 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> |
---|
[5383] | 72 | |
---|
[7007] | 73 | <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) ?>"> |
---|
| 74 | <attached> |
---|
| 75 | <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> |
---|
| 76 | </attached> |
---|
| 77 | </MovableEntity> |
---|
| 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 | <?lua end ?> |
---|
[5464] | 84 | --> |
---|
[7007] | 85 | |
---|
[5378] | 86 | </Scene> |
---|
| 87 | </Level> |
---|