1 | <?lua |
---|
2 | include("levels/hudtemplates3.oxw") |
---|
3 | include("overlay/stats.oxo") |
---|
4 | include("levels/spaceshiptemplates_presentation.oxw") |
---|
5 | include("levels/spaceshiptemplates_presentation_H2.oxw") |
---|
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 | <?lua |
---|
19 | for i = 1, 10, 1 |
---|
20 | do ?> |
---|
21 | <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=spaceshipHtwo /> |
---|
22 | <?lua |
---|
23 | end |
---|
24 | ?> |
---|
25 | <Model position="1,2,3" mesh="cube.mesh" /> |
---|
26 | |
---|
27 | |
---|
28 | <GlobalShader compositor="Bloom" visible=false> |
---|
29 | <events> |
---|
30 | <visibility> |
---|
31 | <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true /> |
---|
32 | </visibility> |
---|
33 | </events> |
---|
34 | </GlobalShader> |
---|
35 | |
---|
36 | |
---|
37 | <?lua |
---|
38 | for i = 1, 50, 1 |
---|
39 | do |
---|
40 | j = math.random() |
---|
41 | ?> |
---|
42 | |
---|
43 | <MovableEntity position="<?lua print(math.random() * 3000-2000) ?>,<?lua print(math.random() * 3000-2000) ?>,<?lua print(math.random() * 3000 - 2000) ?>" collisionType=dynamic linearDamping=0.8 angularDamping=0.8 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) ?>"> |
---|
44 | <attached> |
---|
45 | <Model position="0,0,0" scale=<?lua print(j * 10) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" /> |
---|
46 | </attached> |
---|
47 | <collisionShapes> |
---|
48 | <SphereCollisionShape radius="<?lua print(j * 70) ?>" /> |
---|
49 | </collisionShapes> |
---|
50 | </MovableEntity> |
---|
51 | <?lua |
---|
52 | end |
---|
53 | ?> |
---|
54 | |
---|
55 | <!-- |
---|
56 | <?lua |
---|
57 | for i = 1, 70, 1 |
---|
58 | do ?> |
---|
59 | <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) ?>"> |
---|
60 | <attached> |
---|
61 | <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> |
---|
62 | </attached> |
---|
63 | </MovableEntity> |
---|
64 | <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) ?>"> |
---|
65 | <attached> |
---|
66 | <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> |
---|
67 | </attached> |
---|
68 | </MovableEntity> |
---|
69 | |
---|
70 | <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) ?>"> |
---|
71 | <attached> |
---|
72 | <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> |
---|
73 | </attached> |
---|
74 | </MovableEntity> |
---|
75 | <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) ?>"> |
---|
76 | <attached> |
---|
77 | <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> |
---|
78 | </attached> |
---|
79 | </MovableEntity> |
---|
80 | |
---|
81 | <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) ?>"> |
---|
82 | <attached> |
---|
83 | <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> |
---|
84 | </attached> |
---|
85 | </MovableEntity> |
---|
86 | <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) ?>"> |
---|
87 | <attached> |
---|
88 | <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> |
---|
89 | </attached> |
---|
90 | </MovableEntity> |
---|
91 | <?lua |
---|
92 | end |
---|
93 | ?> |
---|
94 | --> |
---|
95 | </Scene> |
---|
96 | </Level> |
---|