Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 7057 was 7057, checked in by edwind, 14 years ago

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  <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) ?>" >
47      <attached>
48        <Model position="0,0,0" scale=<?lua print(j * 10) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
49      </attached>
50      <collisionShapes>
51        <SphereCollisionShape radius="<?lua print(j * 100) ?>" />
52      </collisionShapes>
53  </MovableEntity>
54<?lua
55end
56?>
57
58  </Scene>
59</Level>
60<!--
61<Level
62 name         = "fps test"
63 description  = "level to test fps navigation"
64>
65  <Scene
66   ambientlight = "0.5, 0.5, 0.5"
67   skybox       = "Orxonox/skypanoramagen1"
68  >
69    <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" />
70
71
72<?lua
73for i = 1, 10, 1
74do ?>
75    <SpawnPoint position="<?lua print(math.random() * 1000 - 500) ?>,0,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" spawnclass=FpsPlayer pawndesign=fps />
76<?lua
77end
78?>
79
80    <GlobalShader compositor="Bloom" visible=false>
81      <events>
82        <visibility>
83          <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true />
84        </visibility>
85      </events>
86    </GlobalShader>
87
88
89<?lua
90for i = 1, 100, 1
91do
92j = math.random()
93?>
94
95    <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) ?>">
96      <attached>
97        <Model position="0,0,0" scale=<?lua print(j * 10) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
98      </attached>
99      <collisionShapes>
100        <SphereCollisionShape radius="<?lua print(j * 70) ?>" />
101      </collisionShapes>
102    </MovableEntity>
103<?lua
104end
105?>
106
107<!--
108<?lua
109for i = 1, 70, 1
110do ?>
111  <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) ?>">
112    <attached>
113      <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
114    </attached>
115  </MovableEntity>
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
122  <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) ?>">
123    <attached>
124      <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
125    </attached>
126  </MovableEntity>
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
133  <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) ?>">
134    <attached>
135      <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
136    </attached>
137  </MovableEntity>
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<?lua
144end
145?>
146
147  </Scene>
148</Level>
149-->
Note: See TracBrowser for help on using the repository browser.