Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Mouse fixed on horizontal axis, added opponent with halth points, adjusted parameters

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