Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/ai2/data/levels/presentationFS10Ed.oxw @ 8804

Last change on this file since 8804 was 8706, checked in by dafrick, 13 years ago

Merging presentation branch back into trunk.
There are many new features and also a lot of other changes and bugfixes, if you want to know, digg through the svn log.
Not everything is yet working as it should, but it should be fairly stable. If you habe any bug reports, just send me an email.

  • Property svn:eol-style set to native
File size: 6.3 KB
Line 
1<LevelInfo
2 name = "Presentation XI FPS 2nd"
3 description = "3rd Presentation level for Orxonox Convention XI, FPS"
4 tags = "presentation"
5/>
6
7<?lua
8  include("HUDTemplates3.oxo")
9  include("stats.oxo")
10  include("templates/spaceshipAssff.oxt")
11  include("templates/spaceshipH2.oxt")
12  include("templates/FPS.oxt")
13  include("templates/lodInformation.oxt")
14?>
15
16<Level
17 name         = "fps"
18 description  = "tests"
19>
20  <templates>
21    <Template link=lodtemplate_default />
22  </templates>
23  <?lua include("includes/notifications.oxi") ?>
24
25  <Scene
26   ambientlight = "0.1, 0.1, 0.1"
27   skybox       = "Orxonox/skypanoramagen1"
28   gravity      = "0,-1000,0"
29   negativeWorldRange = "-100000, -100000, -100000"
30   positiveWorldRange = " 100000,  100000,  100000"
31   hasPhysics   = true
32  >
33    <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" />
34
35  <Pawn health=100 position="600,35,0" direction="0,-1,0" collisionType=dynamic mass=100000>
36      <attached>
37        <Model position="0,0,0" mesh="crate.mesh" scale3D="5,5,5" />
38      </attached>
39      <collisionShapes>
40        <BoxCollisionShape position="0,0,0" halfExtents="25,25,25" />
41      </collisionShapes>
42  </Pawn>
43 
44  <Pawn health=100 position="0,-35,0" direction="0,-1,0" collisionType=dynamic mass=100000>
45      <attached>
46        <Model position="0,0,0" mesh="crate.mesh" scale3D="5,5,5" />
47      </attached>
48      <collisionShapes>
49        <BoxCollisionShape position="0,0,0" halfExtents="25,25,25" />
50      </collisionShapes>
51  </Pawn>
52 
53  <StaticEntity position="0,-50,0" direction="0,-1,0" collisionType=static mass=100000 >
54      <attached>
55        <Model position="0,0,0" mesh="cube.mesh" scale3D="100,100,10" />
56      </attached>
57      <collisionShapes>
58        <BoxCollisionShape position="0,0,0" halfExtents="100,100,10" />
59      </collisionShapes>
60  </StaticEntity>
61
62   <StaticEntity position="210,-30,0" direction="0,-1,0" collisionType=static mass=100000 >
63      <attached>
64        <Model position="0,0,0" mesh="cube_orange.mesh" scale3D="100,100,10" />
65      </attached>
66      <collisionShapes>
67        <BoxCollisionShape position="0,0,0" halfExtents="100,100,10" />
68      </collisionShapes>
69  </StaticEntity>
70 
71   <StaticEntity position="600,-20,0" direction="0,-1,0" collisionType=static mass=100000 >
72      <attached>
73        <Model position="0,0,0" mesh="cube_green.mesh" scale3D="100,100,10" />
74      </attached>
75      <collisionShapes>
76        <BoxCollisionShape position="0,0,0" halfExtents="100,100,10" />
77      </collisionShapes>
78  </StaticEntity>
79
80<StaticEntity position="600,10,120" direction="0,-1,1" collisionType=static mass=100000 >
81      <attached>
82        <Model position="0,0,0" mesh="cube_red.mesh" scale3D="100,100,10" />
83      </attached>
84      <collisionShapes>
85        <BoxCollisionShape position="0,0,0" halfExtents="100,100,10" />
86      </collisionShapes>
87  </StaticEntity>
88 
89  <StaticEntity position="600,40,250" direction="0,-1,0" collisionType=static mass=100000 >
90      <attached>
91        <Model position="0,0,0" mesh="cube.mesh" scale3D="100,100,10" />
92      </attached>
93      <collisionShapes>
94        <BoxCollisionShape position="0,0,0" halfExtents="100,100,10" />
95      </collisionShapes>
96  </StaticEntity>
97 
98 
99   <StaticEntity position="6000,0,10250" direction="0,0,0" collisionType=static mass=100000 >
100      <attached>
101        <Model position="0,0,0" mesh="cube_green.mesh" scale3D="10000,10,10000" />
102      </attached>
103      <collisionShapes>
104        <BoxCollisionShape position="0,0,0" halfExtents="10000,10,10000" />
105      </collisionShapes>
106  </StaticEntity>
107 
108  <Pawn health=100 position="530,70,1450" direction="-1,0,0" collisionType=dynamic mass=1 >
109      <attached>
110        <Model position="0,0,0" mesh="cube_red.mesh" scale3D="60,60,10" />
111      </attached>
112      <collisionShapes>
113        <BoxCollisionShape position="0,0,0" halfExtents="60,60,10" />
114      </collisionShapes>
115  </Pawn>
116 
117  <Pawn health=100 position="670,70,1450" direction="-1,0,0" collisionType=dynamic mass=1 >
118      <attached>
119        <Model position="0,0,0" mesh="cube_red.mesh" scale3D="60,60,10" />
120      </attached>
121      <collisionShapes>
122        <BoxCollisionShape position="0,0,0" halfExtents="60,60,10" />
123      </collisionShapes>
124  </Pawn>
125 
126   <Pawn health=100 position="600,70,1500" direction="0,0,-1" collisionType=dynamic mass=1 >
127      <attached>
128        <Model position="0,0,0" mesh="cube_red.mesh" scale3D="60,60,10" />
129      </attached>
130      <collisionShapes>
131        <BoxCollisionShape position="0,0,0" halfExtents="60,60,10" />
132      </collisionShapes>
133  </Pawn>
134 
135   <Pawn health=100 position="600,150,1450" direction="0,-1,0" collisionType=dynamic mass=1 >
136      <attached>
137        <Model position="0,0,0" mesh="cube.mesh" scale3D="90,80,10" />
138      </attached>
139      <collisionShapes>
140        <BoxCollisionShape position="0,0,0" halfExtents="90,80,10" />
141      </collisionShapes>
142  </Pawn>
143 
144  <Pawn health=100 position="600,35,1450" direction="0,-1,0" collisionType=dynamic mass=1 >
145      <attached>
146        <Model position="0,0,0" mesh="crate.mesh" scale3D="5,5,5" />
147      </attached>
148      <collisionShapes>
149        <BoxCollisionShape position="0,0,0" halfExtents="25,25,25" />
150      </collisionShapes>
151  </Pawn>
152 
153
154  <SpawnPoint position="0,300,0" direction="0, 0, 0" lookat="0,0,100000000" spawnclass=FpsPlayer pawndesign=fps />
155
156
157<?lua
158for i = 1, 100, 1
159do
160j = math.random()
161g = math.random()
162h = math.random()
163?>
164  <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)?> >
165      <attached>
166        <Model position="0,0,0" scale3D="<?lua print(j*100) ?>,<?lua print(g*100) ?>,<?lua print(h*100) ?>" mesh="cube<?lua
167        if math.mod(i,4)==0 then print('_green') end
168        if math.mod(i,4)==1 then print('_red') end
169        if math.mod(i,4)==2 then print('_orange') end
170        ?>.mesh" /> <!--if it's 3, cube.mesh is taken -> yellow -->
171      </attached>
172      <collisionShapes>
173        <BoxCollisionShape position="0,0,0" halfExtents="<?lua print(j*100) ?>,<?lua print(g*100) ?>,<?lua print(h*100) ?>" />
174      </collisionShapes>
175  </Pawn>
176<?lua
177end
178?>
179
180
181  </Scene>
182</Level>
Note: See TracBrowser for help on using the repository browser.