Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 11504 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
RevLine 
[9939]1<!-- -->
[7648]2<LevelInfo
3 name = "FPS testlevel"
4 description = "Level to test First Person Shooter"
5 tags = "test"
[9016]6 screenshot = "fpstestlevel.png"
[7648]7/>
8
[6867]9<?lua
[7679]10  include("HUDTemplates3.oxo")
[11104]11  include("HUDTemplatesFPS.oxo")
[6867]12  include("stats.oxo")
[7679]13  include("templates/spaceshipAssff.oxt")
14  include("templates/spaceshipH2.oxt")
15  include("templates/FPS.oxt")
16  include("templates/lodInformation.oxt")
[6867]17?>
18
[9016]19<Level>
[7083]20  <templates>
21    <Template link=lodtemplate_default />
22  </templates>
[8706]23  <?lua include("includes/notifications.oxi") ?>
[7083]24
[6867]25  <Scene
26   ambientlight = "0.1, 0.1, 0.1"
[9348]27   skybox       = "Orxonox/skyBoxBasic"
[6867]28   gravity      = "0,-1000,0"
[7284]29   negativeWorldRange = "-100000, -100000, -100000"
30   positiveWorldRange = " 100000,  100000,  100000"
[6867]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
[6882]35  <StaticEntity position="0,-10000,0" direction="0,-1,0" collisionType=static mass=100000 friction=0.01 >
[6867]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?>
[7057]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) ?>" >
[6867]59      <attached>
[8079]60        <Model position="0,0,0" scale="<?lua print(j * 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
[6867]61      </attached>
62      <collisionShapes>
63        <SphereCollisionShape radius="<?lua print(j * 100) ?>" />
64      </collisionShapes>
[7057]65  </MovableEntity>
[6867]66<?lua
67end
68?>
69
70  </Scene>
71</Level>
72
Note: See TracBrowser for help on using the repository browser.