Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 12261 was 12261, checked in by cwaupoti, 5 years ago

created HoverGun, but file is not working yet

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