Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/Boxhead_FS19/data/levels/Hover.oxw @ 12373

Last change on this file since 12373 was 12354, checked in by cwaupoti, 6 years ago

minor changes

  • Property svn:eol-style set to native
File size: 2.9 KB
RevLine 
[10660]1<LevelInfo
2 name = "Hover level"
3 description = "Level for Minigame Hover"
4 tags = "minigame"
[11495]5 screenshot = "emptylevel.png"
[10660]6/>
7
8<?lua
9  include("stats.oxo")
10  include("HUDTemplates3.oxo")
11  include("templates/lodInformation.oxt")
12?>
13
14<?lua
[10760]15  include("templates/spaceshipHover.oxt")
[12299]16  include("templates/spaceshipzombie.oxt")
[10660]17?>
18
[12299]19
[11040]20<?lua
21MAZE_NUM_CELLS = 10
[11495]22MAZE_CELL_SIZE = 100
[12261]23MAZE_CELL_HEIGHT = 100
[11040]24MAZE_SIZE = MAZE_NUM_CELLS*MAZE_CELL_SIZE
25?>
26
[10660]27<Level
[10664]28plugins = hover
[10660]29gametype = Hover
[12216]30
[12267]31
[10660]32>
33  <templates>
34    <Template link=lodtemplate_default />
35  </templates>
36  <?lua include("includes/notifications.oxi") ?>
37
38  <Scene
39    ambientlight = "0.8, 0.8, 0.8"
40    skybox       = "Orxonox/Starbox"
[11495]41    gravity      = "0, -200, 0"
[10660]42  >
43
[11040]44    <StaticEntity position="0,0,0" collisionType="static">
[10751]45      <attached>
[11040]46        <HoverOrigin
47          numCells="<?lua print(MAZE_NUM_CELLS)?>"
48          cellSize="<?lua print(MAZE_CELL_SIZE)?>"
49          cellHeight="<?lua print(MAZE_CELL_HEIGHT)?>"
50        />
[11495]51        <Model
52          position="<?lua print(MAZE_SIZE/2)?>,-16,<?lua print(MAZE_SIZE/2)?>"
53          scale3D="<?lua print(MAZE_SIZE/2)?>,16,<?lua print(MAZE_SIZE/2)?>"
54          mesh="CubeGround.mesh"
55        />
[11040]56      </attached>
[11495]57      <collisionShapes>
58        <BoxCollisionShape
59          position="<?lua print(MAZE_SIZE/2)?>,<?lua print(MAZE_CELL_HEIGHT+1)?>,<?lua print(MAZE_SIZE/2)?>"
60          halfExtents="<?lua print(MAZE_SIZE/2)?>,1,<?lua print(MAZE_SIZE/2)?>"
61        />
62        <BoxCollisionShape
63          position="<?lua print(MAZE_SIZE/2)?>,-1,<?lua print(MAZE_SIZE/2)?>"
64          halfExtents="<?lua print(MAZE_SIZE/2)?>,1,<?lua print(MAZE_SIZE/2)?>"
65        />
66      </collisionShapes>
[11040]67    </StaticEntity>
[10751]68
[11040]69    <Light
70      type=directional
71      position="-50,500,-50"
72      direction="0.577, -0.577, 0.577"
73      diffuse="1.0, 0.9, 0.9, 1.0"
74      specular="1.0, 0.9, 0.9, 1.0"
75    />
[10668]76   
[11040]77    <SpawnPoint
78      team=0
[11495]79      position="50,20,50"
80      lookat="100,20,100"
[11040]81      spawnclass=HoverShip
82      pawndesign=spaceshiphover
83    />
[12216]84
85    <SpaceShip position="100,20,100" lookat="50,20,50" name="enemy" health="200" maxhealth="200" initialhealth="200" >
86                                    <templates>
[12299]87                                            <Template link=spaceshipzombie />
[12216]88                                      </templates>
89                                       <controller>
[12354]90                                          <WaypointPatrolController alertnessradius=2000 attackradius=1 team=1 >
[12216]91                                             <waypoints>
92                                              <Model mesh="cube.mesh" scale=0 position="15500,15500,15500" />
93
94                                              </waypoints>
95                                         
96                                          </WaypointPatrolController>
97
98                                       </controller>
[12354]99    </SpaceShip>
100
[10660]101   
102  </Scene>
103</Level>
Note: See TracBrowser for help on using the repository browser.