Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/consolecommands3/data/levels/presentation_FS10_ed.oxw @ 7687

Last change on this file since 7687 was 7276, checked in by landauf, 14 years ago

until now we could group words and values in console commands and XML values using parentheses (…). now we have to use braces {…}, because that works better in connection with Tcl. in practice however this feature was never used before, so this change shouldn't affect anything.

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