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