Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/modularships/data/levels/emptyLevel.oxw @ 9997

Last change on this file since 9997 was 9997, checked in by noep, 11 years ago

Added functions to print the collisionshape-structure of a Pawn which gets hit. Doesn't quite work yet.

  • Property svn:eol-style set to native
File size: 2.8 KB
RevLine 
[7648]1<LevelInfo
2 name = "Empty level"
3 description = "A level with absolutely nothing in it."
4 tags = "test"
[9016]5 screenshot = "emptylevel.png"
[7648]6/>
7
[5433]8<?lua
[5654]9  include("stats.oxo")
[7679]10  include("HUDTemplates3.oxo")
11  include("templates/lodInformation.oxt")
[5433]12?>
13
14<?lua
[8706]15  include("templates/spaceshipAssff2.oxt")
[7679]16  include("templates/spaceshipPirate.oxt")
[9415]17  include("templates/spaceshipEscort.oxt")
[5433]18?>
19
[9016]20<Level>
[7163]21  <templates>
22    <Template link=lodtemplate_default />
23  </templates>
[8706]24  <?lua include("includes/notifications.oxi") ?>
[7163]25
[5433]26  <Scene
[5499]27    ambientlight = "0.8, 0.8, 0.8"
[5433]28    skybox       = "Orxonox/Starbox"
29  >
[7163]30
31    <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0"/>
[9415]32    <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipescort />
[6524]33   
[9995]34    <MovableEntity position="0,0,0" collisionType=dynamic scale=1 linearDamping=0.8 angularDamping=0  collisiondamage=0.005 enablecollisiondamage=true>
35    <attached>
36        <Model position="0,0,0" mesh="cube.mesh" scale3D="40,40,40" />
37        <StaticEntity position="0,90,0" direction="0,0,0" collisionType=static mass=100 friction=0.01 >
38            <attached>
39                <Model position="0,0,0" mesh="cube.mesh" scale3D="30,30,30" />
40            </attached>
41            <collisionShapes>
42                <BoxCollisionShape position="0,0,0" halfExtents="30,30,30" />
43            </collisionShapes>
44        </StaticEntity>
45    </attached>
46    <collisionShapes>
47        <BoxCollisionShape position="0,0,0" halfExtents="40,40,40" />
48    </collisionShapes>
49    </MovableEntity>
50   
[9997]51    <Pawn health=1000 initialhealth=1000 maxhealth=1000 position="0,-100,0" direction="0,0,0" collisionType=dynamic mass=1000 name=box radarname = "Box 4" >
[9995]52        <attached>
53            <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
[9997]54            <Model position="0,-30,0" mesh="cube.mesh" scale3D="15,15,15" />
55            <StaticEntity position="0,-60,0" direction="0,0,0" collisionType=static mass=100 friction=0.01 >
56                <attached>
57                    <Model position="0,0,0" mesh="cube.mesh" scale3D="15,15,15" />
58                    <Model position="0,0,30" mesh="cube.mesh" scale3D="15,15,15" />
59                </attached>
60                <collisionShapes>
61                    <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
62                    <BoxCollisionShape position="0,0,30" halfExtents="15,15,15" />
63                </collisionShapes>
64            </StaticEntity>
[9995]65        </attached>
66        <collisionShapes>
67            <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
[9997]68            <BoxCollisionShape position="0,-30,0" halfExtents="15,15,15" />
[9995]69        </collisionShapes>
70    </Pawn>
71   
[5433]72  </Scene>
73</Level>
[7163]74
Note: See TracBrowser for help on using the repository browser.