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") |
---|
7 | include("templates/lodinformation.oxt") |
---|
8 | ?> |
---|
9 | |
---|
10 | <Level |
---|
11 | name = "fps" |
---|
12 | description = "tests" |
---|
13 | > |
---|
14 | <templates> |
---|
15 | <Template link=lodtemplate_default /> |
---|
16 | </templates> |
---|
17 | |
---|
18 | <Scene |
---|
19 | ambientlight = "0.1, 0.1, 0.1" |
---|
20 | skybox = "Orxonox/skypanoramagen1" |
---|
21 | gravity = "0,-1000,0" |
---|
22 | negativeWorldRange = "(-100000, -100000, -100000)" |
---|
23 | positiveWorldRange = "( 100000, 100000, 100000)" |
---|
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 | |
---|
28 | <StaticEntity position="0,-10000,0" direction="0,-1,0" collisionType=static mass=100000 friction=0.01 > |
---|
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 | ?> |
---|
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) ?>" > |
---|
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> |
---|
58 | </MovableEntity> |
---|
59 | <?lua |
---|
60 | end |
---|
61 | ?> |
---|
62 | |
---|
63 | </Scene> |
---|
64 | </Level> |
---|
65 | <!-- |
---|
66 | <Level |
---|
67 | name = "fps test" |
---|
68 | description = "level to test fps navigation" |
---|
69 | > |
---|
70 | <Scene |
---|
71 | ambientlight = "0.5, 0.5, 0.5" |
---|
72 | skybox = "Orxonox/skypanoramagen1" |
---|
73 | > |
---|
74 | <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" /> |
---|
75 | |
---|
76 | |
---|
77 | <?lua |
---|
78 | for i = 1, 10, 1 |
---|
79 | do ?> |
---|
80 | <SpawnPoint position="<?lua print(math.random() * 1000 - 500) ?>,0,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" spawnclass=FpsPlayer pawndesign=fps /> |
---|
81 | <?lua |
---|
82 | end |
---|
83 | ?> |
---|
84 | |
---|
85 | <GlobalShader compositor="Bloom" visible=false> |
---|
86 | <events> |
---|
87 | <visibility> |
---|
88 | <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true /> |
---|
89 | </visibility> |
---|
90 | </events> |
---|
91 | </GlobalShader> |
---|
92 | |
---|
93 | |
---|
94 | <?lua |
---|
95 | for i = 1, 100, 1 |
---|
96 | do |
---|
97 | j = math.random() |
---|
98 | ?> |
---|
99 | |
---|
100 | <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) ?>"> |
---|
101 | <attached> |
---|
102 | <Model position="0,0,0" scale=<?lua print(j * 10) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" /> |
---|
103 | </attached> |
---|
104 | <collisionShapes> |
---|
105 | <SphereCollisionShape radius="<?lua print(j * 70) ?>" /> |
---|
106 | </collisionShapes> |
---|
107 | </MovableEntity> |
---|
108 | <?lua |
---|
109 | end |
---|
110 | ?> |
---|
111 | |
---|
112 | <!-- |
---|
113 | <?lua |
---|
114 | for i = 1, 70, 1 |
---|
115 | do ?> |
---|
116 | <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) ?>"> |
---|
117 | <attached> |
---|
118 | <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> |
---|
119 | </attached> |
---|
120 | </MovableEntity> |
---|
121 | <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) ?>"> |
---|
122 | <attached> |
---|
123 | <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> |
---|
124 | </attached> |
---|
125 | </MovableEntity> |
---|
126 | |
---|
127 | <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) ?>"> |
---|
128 | <attached> |
---|
129 | <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> |
---|
130 | </attached> |
---|
131 | </MovableEntity> |
---|
132 | <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) ?>"> |
---|
133 | <attached> |
---|
134 | <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> |
---|
135 | </attached> |
---|
136 | </MovableEntity> |
---|
137 | |
---|
138 | <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) ?>"> |
---|
139 | <attached> |
---|
140 | <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> |
---|
141 | </attached> |
---|
142 | </MovableEntity> |
---|
143 | <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) ?>"> |
---|
144 | <attached> |
---|
145 | <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> |
---|
146 | </attached> |
---|
147 | </MovableEntity> |
---|
148 | <?lua |
---|
149 | end |
---|
150 | ?> |
---|
151 | |
---|
152 | </Scene> |
---|
153 | </Level> |
---|
154 | --> |
---|