Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/fps/data/levels/presentation_FS10_ed.oxw @ 7156

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

by ED

File size: 6.0 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  <Pawn health=100 position="600,35,0" direction="0,-1,0" collisionType=dynamic mass=100000>
24      <attached>
25        <Model position="0,0,0" mesh="crate.mesh" scale3D="5,5,5" />
26      </attached>
27      <collisionShapes>
28        <BoxCollisionShape position="0,0,0" halfExtents="25,25,25" />
29      </collisionShapes>
30  </Pawn>
31 
32  <Pawn health=100 position="0,-35,0" direction="0,-1,0" collisionType=dynamic mass=100000>
33      <attached>
34        <Model position="0,0,0" mesh="crate.mesh" scale3D="5,5,5" />
35      </attached>
36      <collisionShapes>
37        <BoxCollisionShape position="0,0,0" halfExtents="25,25,25" />
38      </collisionShapes>
39  </Pawn>
40 
41  <StaticEntity position="0,-50,0" direction="0,-1,0" collisionType=static mass=100000 >
42      <attached>
43        <Model position="0,0,0" mesh="cube.mesh" scale3D="100,100,10" />
44      </attached>
45      <collisionShapes>
46        <BoxCollisionShape position="0,0,0" halfExtents="100,100,10" />
47      </collisionShapes>
48  </StaticEntity>
49
50   <StaticEntity position="210,-30,0" direction="0,-1,0" collisionType=static mass=100000 >
51      <attached>
52        <Model position="0,0,0" mesh="cube_orange.mesh" scale3D="100,100,10" />
53      </attached>
54      <collisionShapes>
55        <BoxCollisionShape position="0,0,0" halfExtents="100,100,10" />
56      </collisionShapes>
57  </StaticEntity>
58 
59   <StaticEntity position="600,-20,0" direction="0,-1,0" collisionType=static mass=100000 >
60      <attached>
61        <Model position="0,0,0" mesh="cube_green.mesh" scale3D="100,100,10" />
62      </attached>
63      <collisionShapes>
64        <BoxCollisionShape position="0,0,0" halfExtents="100,100,10" />
65      </collisionShapes>
66  </StaticEntity>
67
68<StaticEntity position="600,10,120" direction="0,-1,1" collisionType=static mass=100000 >
69      <attached>
70        <Model position="0,0,0" mesh="cube_red.mesh" scale3D="100,100,10" />
71      </attached>
72      <collisionShapes>
73        <BoxCollisionShape position="0,0,0" halfExtents="100,100,10" />
74      </collisionShapes>
75  </StaticEntity>
76 
77  <StaticEntity position="600,40,250" direction="0,-1,0" collisionType=static mass=100000 >
78      <attached>
79        <Model position="0,0,0" mesh="cube.mesh" scale3D="100,100,10" />
80      </attached>
81      <collisionShapes>
82        <BoxCollisionShape position="0,0,0" halfExtents="100,100,10" />
83      </collisionShapes>
84  </StaticEntity>
85 
86 
87   <StaticEntity position="6000,0,10250" direction="0,0,0" collisionType=static mass=100000 >
88      <attached>
89        <Model position="0,0,0" mesh="cube_green.mesh" scale3D="10000,10,10000" />
90      </attached>
91      <collisionShapes>
92        <BoxCollisionShape position="0,0,0" halfExtents="10000,10,10000" />
93      </collisionShapes>
94  </StaticEntity>
95 
96  <Pawn health=100 position="530,70,1450" direction="-1,0,0" collisionType=dynamic mass=1 >
97      <attached>
98        <Model position="0,0,0" mesh="cube_red.mesh" scale3D="60,60,10" />
99      </attached>
100      <collisionShapes>
101        <BoxCollisionShape position="0,0,0" halfExtents="60,60,10" />
102      </collisionShapes>
103  </Pawn>
104 
105  <Pawn health=100 position="670,70,1450" direction="-1,0,0" collisionType=dynamic mass=1 >
106      <attached>
107        <Model position="0,0,0" mesh="cube_red.mesh" scale3D="60,60,10" />
108      </attached>
109      <collisionShapes>
110        <BoxCollisionShape position="0,0,0" halfExtents="60,60,10" />
111      </collisionShapes>
112  </Pawn>
113 
114   <Pawn health=100 position="600,70,1500" direction="0,0,-1" collisionType=dynamic mass=1 >
115      <attached>
116        <Model position="0,0,0" mesh="cube_red.mesh" scale3D="60,60,10" />
117      </attached>
118      <collisionShapes>
119        <BoxCollisionShape position="0,0,0" halfExtents="60,60,10" />
120      </collisionShapes>
121  </Pawn>
122 
123   <Pawn health=100 position="600,150,1450" direction="0,-1,0" collisionType=dynamic mass=1 >
124      <attached>
125        <Model position="0,0,0" mesh="cube.mesh" scale3D="90,80,10" />
126      </attached>
127      <collisionShapes>
128        <BoxCollisionShape position="0,0,0" halfExtents="90,80,10" />
129      </collisionShapes>
130  </Pawn>
131 
132  <Pawn health=100 position="600,35,1450" direction="0,-1,0" collisionType=dynamic mass=1 >
133      <attached>
134        <Model position="0,0,0" mesh="crate.mesh" scale3D="5,5,5" />
135      </attached>
136      <collisionShapes>
137        <BoxCollisionShape position="0,0,0" halfExtents="25,25,25" />
138      </collisionShapes>
139  </Pawn>
140 
141
142  <SpawnPoint position="0,300,0" direction="0, 0, 0" lookat="0,0,100000000" spawnclass=FpsPlayer pawndesign=fps />
143
144
145<?lua
146for i = 1, 100, 1
147do
148j = math.random()
149g = math.random()
150h = math.random()
151?>
152  <Pawn position="<?lua print( (math.random()+10) * 1000 - 9800) ?>,<?lua print(math.random()) ?>,<?lua print( (math.random()+10) * 2000 - 19500) ?>" direction="<?lua print( (math.random()+10) * 10 - 100) ?>,<?lua print(math.random()) ?>,<?lua print(math.random()) ?>" collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=<?lua print(j * 100)?> >
153      <attached>
154        <Model position="0,0,0" scale3D="<?lua print(j*100) ?>,<?lua print(g*100) ?>,<?lua print(h*100) ?>" mesh="cube<?lua
155        if math.mod(i,4)==0 then print('_green') end
156        if math.mod(i,4)==1 then print('_red') end
157        if math.mod(i,4)==2 then print('_orange') end
158        ?>.mesh" /> <!--if it's 3, cube.mesh is taken -> yellow -->
159      </attached>
160      <collisionShapes>
161        <BoxCollisionShape position="0,0,0" halfExtents="<?lua print(j*100) ?>,<?lua print(g*100) ?>,<?lua print(h*100) ?>" />
162      </collisionShapes>
163  </Pawn>
164<?lua
165end
166?>
167
168
169  </Scene>
170</Level>
Note: See TracBrowser for help on using the repository browser.