Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/FPSTest.oxw @ 11545

Last change on this file since 11545 was 11104, checked in by fvultier, 9 years ago

Some HUDs (Health, Shield, Weapons, EnemyHealth, EnemyShield) are also displayed in FPS mode. Removed two unused redundant files.

  • Property svn:eol-style set to native
File size: 2.3 KB
Line 
1<!-- -->
2<LevelInfo
3 name = "FPS testlevel"
4 description = "Level to test First Person Shooter"
5 tags = "test"
6 screenshot = "fpstestlevel.png"
7/>
8
9<?lua
10  include("HUDTemplates3.oxo")
11  include("HUDTemplatesFPS.oxo")
12  include("stats.oxo")
13  include("templates/spaceshipAssff.oxt")
14  include("templates/spaceshipH2.oxt")
15  include("templates/FPS.oxt")
16  include("templates/lodInformation.oxt")
17?>
18
19<Level>
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/skyBoxBasic"
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  <StaticEntity position="0,-10000,0" direction="0,-1,0" collisionType=static mass=100000 friction=0.01 >
36      <attached>
37        <Model position="0,0,0" mesh="cube.mesh" scale3D="10000,10000,1000" />
38      </attached>
39      <collisionShapes>
40        <BoxCollisionShape position="0,0,0" halfExtents="10000,10000,1000" />
41      </collisionShapes>
42  </StaticEntity>
43
44<?lua
45for i = 1, 10, 1
46do ?>
47    <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 />
48<?lua
49end
50?>
51
52
53<?lua
54for i = 1, 200, 1
55do
56j = math.random()
57?>
58  <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) ?>" >
59      <attached>
60        <Model position="0,0,0" scale="<?lua print(j * 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
61      </attached>
62      <collisionShapes>
63        <SphereCollisionShape radius="<?lua print(j * 100) ?>" />
64      </collisionShapes>
65  </MovableEntity>
66<?lua
67end
68?>
69
70  </Scene>
71</Level>
72
Note: See TracBrowser for help on using the repository browser.