Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/fps/data/levels/fps_test.oxw @ 7029

Last change on this file since 7029 was 6882, checked in by edwind, 15 years ago

commit by ed

File size: 6.5 KB
Line 
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?>
8
9<Level
10 name         = "fps"
11 description  = "tests"
12>
13  <Scene
14   ambientlight = "0.1, 0.1, 0.1"
15   skybox       = "Orxonox/skypanoramagen1"
16   gravity      = "0,-1000,0"
17   negativeWorldRange = "(-100000, -100000, -100000)"
18   positiveWorldRange = "( 100000,  100000,  100000)"
19   hasPhysics   = true
20  >
21    <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" />
22
23  <StaticEntity position="0,-10000,0" direction="0,-1,0" collisionType=static mass=100000 friction=0.01 >
24      <attached>
25        <Model position="0,0,0" mesh="cube.mesh" scale3D="10000,10000,1000" />
26      </attached>
27      <collisionShapes>
28        <BoxCollisionShape position="0,0,0" halfExtents="10000,10000,1000" />
29      </collisionShapes>
30  </StaticEntity>
31
32<?lua
33for i = 1, 10, 1
34do ?>
35    <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 />
36<?lua
37end
38?>
39
40
41<?lua
42for i = 1, 200, 1
43do
44j = math.random()
45?>
46
47    <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) ?>" >
48      <attached>
49        <Model position="0,0,0" scale=<?lua print(j * 10) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
50      </attached>
51      <collisionShapes>
52        <SphereCollisionShape radius="<?lua print(j * 100) ?>" />
53      </collisionShapes>
54    </MovableEntity>
55<?lua
56end
57?>
58
59  </Scene>
60</Level>
61<!--
62<Level
63 name         = "fps test"
64 description  = "level to test fps navigation"
65>
66  <Scene
67   ambientlight = "0.5, 0.5, 0.5"
68   skybox       = "Orxonox/skypanoramagen1"
69  >
70    <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" />
71
72
73<?lua
74for i = 1, 10, 1
75do ?>
76    <SpawnPoint position="<?lua print(math.random() * 1000 - 500) ?>,0,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" spawnclass=FpsPlayer pawndesign=fps />
77<?lua
78end
79?>
80
81    <GlobalShader compositor="Bloom" visible=false>
82      <events>
83        <visibility>
84          <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true />
85        </visibility>
86      </events>
87    </GlobalShader>
88
89
90<?lua
91for i = 1, 100, 1
92do
93j = math.random()
94?>
95
96    <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) ?>">
97      <attached>
98        <Model position="0,0,0" scale=<?lua print(j * 10) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
99      </attached>
100      <collisionShapes>
101        <SphereCollisionShape radius="<?lua print(j * 70) ?>" />
102      </collisionShapes>
103    </MovableEntity>
104<?lua
105end
106?>
107
108<!--
109<?lua
110for i = 1, 70, 1
111do ?>
112  <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) ?>">
113    <attached>
114      <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
115    </attached>
116  </MovableEntity>
117  <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) ?>">
118    <attached>
119      <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
120    </attached>
121  </MovableEntity>
122
123  <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) ?>">
124    <attached>
125      <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
126    </attached>
127  </MovableEntity>
128  <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) ?>">
129    <attached>
130      <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
131    </attached>
132  </MovableEntity>
133
134  <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) ?>">
135    <attached>
136      <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
137    </attached>
138  </MovableEntity>
139  <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) ?>">
140    <attached>
141      <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
142    </attached>
143  </MovableEntity>
144<?lua
145end
146?>
147
148  </Scene>
149</Level>
150-->
Note: See TracBrowser for help on using the repository browser.