[6867] | 1 | <?lua |
---|
| 2 | include("hudtemplates3.oxo") |
---|
| 3 | include("stats.oxo") |
---|
| 4 | include("templates/spaceship_assff.oxt") |
---|
| 5 | include("templates/spaceship_H2.oxt") |
---|
| 6 | include("templates/fps.oxt") |
---|
[7083] | 7 | include("templates/lodinformation.oxt") |
---|
[6867] | 8 | ?> |
---|
| 9 | |
---|
| 10 | <Level |
---|
| 11 | name = "fps" |
---|
| 12 | description = "tests" |
---|
| 13 | > |
---|
[7083] | 14 | <templates> |
---|
| 15 | <Template link=lodtemplate_default /> |
---|
| 16 | </templates> |
---|
| 17 | |
---|
[6867] | 18 | <Scene |
---|
| 19 | ambientlight = "0.1, 0.1, 0.1" |
---|
| 20 | skybox = "Orxonox/skypanoramagen1" |
---|
| 21 | gravity = "0,-1000,0" |
---|
[7284] | 22 | negativeWorldRange = "-100000, -100000, -100000" |
---|
| 23 | positiveWorldRange = " 100000, 100000, 100000" |
---|
[6867] | 24 | hasPhysics = true |
---|
| 25 | > |
---|
| 26 | <Light type=directional position="0,-100000,0" direction="0.02, -1, 0.05" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" /> |
---|
| 27 | |
---|
[6882] | 28 | <StaticEntity position="0,-10000,0" direction="0,-1,0" collisionType=static mass=100000 friction=0.01 > |
---|
[6867] | 29 | <attached> |
---|
| 30 | <Model position="0,0,0" mesh="cube.mesh" scale3D="10000,10000,1000" /> |
---|
| 31 | </attached> |
---|
| 32 | <collisionShapes> |
---|
| 33 | <BoxCollisionShape position="0,0,0" halfExtents="10000,10000,1000" /> |
---|
| 34 | </collisionShapes> |
---|
| 35 | </StaticEntity> |
---|
| 36 | |
---|
| 37 | <?lua |
---|
| 38 | for i = 1, 10, 1 |
---|
| 39 | do ?> |
---|
| 40 | <SpawnPoint position="<?lua print(math.random() * 1000 - 500) ?>,100,<?lua print(math.random() * 1000 - 500) ?>" direction="-1, 0, 0" lookat="0,0,0" spawnclass=FpsPlayer pawndesign=fps /> |
---|
| 41 | <?lua |
---|
| 42 | end |
---|
| 43 | ?> |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | <?lua |
---|
| 47 | for i = 1, 200, 1 |
---|
| 48 | do |
---|
| 49 | j = math.random() |
---|
| 50 | ?> |
---|
[7057] | 51 | <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 * 100) ?> 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) ?>" > |
---|
[6867] | 52 | <attached> |
---|
| 53 | <Model position="0,0,0" scale=<?lua print(j * 10) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" /> |
---|
| 54 | </attached> |
---|
| 55 | <collisionShapes> |
---|
| 56 | <SphereCollisionShape radius="<?lua print(j * 100) ?>" /> |
---|
| 57 | </collisionShapes> |
---|
[7057] | 58 | </MovableEntity> |
---|
[6867] | 59 | <?lua |
---|
| 60 | end |
---|
| 61 | ?> |
---|
| 62 | |
---|
| 63 | </Scene> |
---|
| 64 | </Level> |
---|
| 65 | |
---|