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/lodinformation.oxt") |
---|
7 | ?> |
---|
8 | |
---|
9 | <Level |
---|
10 | name = "Presentation" |
---|
11 | description = "A simple testlevel" |
---|
12 | > |
---|
13 | <templates> |
---|
14 | <Template link=lodtemplate_default /> |
---|
15 | </templates> |
---|
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 | |
---|
22 | |
---|
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 ?> |
---|
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> |
---|
36 | |
---|
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 ?> |
---|
50 | |
---|
51 | <!-- |
---|
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> |
---|
65 | |
---|
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> |
---|
76 | |
---|
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 ?> |
---|
88 | --> |
---|
89 | |
---|
90 | </Scene> |
---|
91 | </Level> |
---|