[10660] | 1 | <LevelInfo |
---|
| 2 | name = "Hover level" |
---|
| 3 | description = "Level for Minigame Hover" |
---|
| 4 | tags = "minigame" |
---|
[11196] | 5 | screenshot = "hover.png" |
---|
[10660] | 6 | /> |
---|
| 7 | |
---|
| 8 | <?lua |
---|
| 9 | include("stats.oxo") |
---|
| 10 | include("HUDTemplates3.oxo") |
---|
| 11 | include("templates/lodInformation.oxt") |
---|
| 12 | ?> |
---|
| 13 | |
---|
| 14 | <?lua |
---|
| 15 | include("templates/spaceshipPirate.oxt") |
---|
[10760] | 16 | include("templates/spaceshipHover.oxt") |
---|
[10895] | 17 | include("overlays/HoverHUD.oxo") |
---|
[10660] | 18 | ?> |
---|
| 19 | |
---|
[11040] | 20 | <?lua |
---|
| 21 | MAZE_NUM_CELLS = 10 |
---|
[11184] | 22 | MAZE_CELL_SIZE = 600 |
---|
| 23 | MAZE_CELL_HEIGHT = 180 |
---|
| 24 | MAZE_WALL_THICKNESS = 10 |
---|
[11040] | 25 | MAZE_SIZE = MAZE_NUM_CELLS*MAZE_CELL_SIZE |
---|
| 26 | ?> |
---|
| 27 | |
---|
[11182] | 28 | <!-- Shrink Pickup Representation --> |
---|
| 29 | |
---|
| 30 | <Template name=smallshrinkpickupRepresentation> |
---|
| 31 | <PickupRepresentation> |
---|
| 32 | <spawner-representation> |
---|
| 33 | <StaticEntity> |
---|
| 34 | <attached> |
---|
[11192] | 35 | <Billboard position="0,0,0" colour="1.0,0.55,1.0" material="Sphere2" scale=0.5> |
---|
[11182] | 36 | <attached> |
---|
| 37 | <Billboard position="0,0,0" colour="1.0,0.55,1.0" material="Shrink" scale=0.35 /> |
---|
| 38 | </attached> |
---|
| 39 | </Billboard> |
---|
| 40 | </attached> |
---|
| 41 | </StaticEntity> |
---|
| 42 | </spawner-representation> |
---|
| 43 | </PickupRepresentation> |
---|
| 44 | </Template> |
---|
| 45 | |
---|
| 46 | |
---|
| 47 | <Template name=smallshrinkpickup baseclass=ShrinkPickup> |
---|
| 48 | <ShrinkPickup |
---|
| 49 | representation = "smallshrinkpickup" |
---|
| 50 | duration = 10.0 |
---|
[11192] | 51 | shrinkFactor = 2 |
---|
[11182] | 52 | activaionType = "immediate" |
---|
| 53 | durationType = "continuous" |
---|
| 54 | /> |
---|
| 55 | </Template> |
---|
| 56 | |
---|
| 57 | <!-- Speed Pickup Representation --> |
---|
| 58 | |
---|
[11177] | 59 | <Template name=hugespeedpickupRepresentation> |
---|
| 60 | <PickupRepresentation> |
---|
| 61 | <spawner-representation> |
---|
| 62 | <StaticEntity> |
---|
| 63 | <attached> |
---|
[11192] | 64 | <Billboard position="0,0,0" colour="0.99,0.96,0.52" material="Sphere2" scale=0.5> |
---|
[11177] | 65 | <attached> |
---|
| 66 | <Billboard position="0,0,0" colour="0.98,0.94,0.22" material="3arrowsup" scale=0.7 /> |
---|
| 67 | </attached> |
---|
| 68 | </Billboard> |
---|
| 69 | </attached> |
---|
| 70 | </StaticEntity> |
---|
| 71 | </spawner-representation> |
---|
| 72 | </PickupRepresentation> |
---|
| 73 | </Template> |
---|
| 74 | |
---|
| 75 | <Template name=hugespeedpickup baseclass=SpeedPickup> |
---|
| 76 | <SpeedPickup |
---|
| 77 | representation = "hugespeedpickup" |
---|
| 78 | duration = 10.0 |
---|
| 79 | speedAdd = 0.0 |
---|
[11192] | 80 | SpeedMultiply = 5.0 |
---|
[11177] | 81 | activationType = "immediate" |
---|
| 82 | durationType = "continuous" |
---|
| 83 | /> |
---|
| 84 | </Template> |
---|
| 85 | |
---|
[11182] | 86 | <!-- Destroy Carrier Pickup Representation --> |
---|
[11177] | 87 | |
---|
[11163] | 88 | <Template name=destroyhoverpickupRepresentation> |
---|
| 89 | <PickupRepresentation> |
---|
| 90 | <spawner-representation> |
---|
| 91 | <StaticEntity> |
---|
| 92 | <attached> |
---|
[11192] | 93 | <Billboard position="0,0,0" colour="0.6,0.⁰,0.8" material="Sphere2" scale=0.5> |
---|
[11163] | 94 | <attached> |
---|
| 95 | <Billboard position="0,0,0" colour="0.6,0.⁰,0.8" material="Asterisk" scale=0.65 /> |
---|
| 96 | </attached> |
---|
| 97 | </Billboard> |
---|
| 98 | </attached> |
---|
| 99 | </StaticEntity> |
---|
| 100 | </spawner-representation> |
---|
| 101 | </PickupRepresentation> |
---|
| 102 | </Template> |
---|
| 103 | |
---|
[11169] | 104 | <Template name=destroyhoverpickup baseclass=MetaPickup> |
---|
[11171] | 105 | <MetaPickup representation="destroyhover" metaType="destroyCarrier" /> |
---|
[11168] | 106 | </Template> |
---|
| 107 | |
---|
[11182] | 108 | <!-- Obstacle (crate) Template --> |
---|
| 109 | |
---|
[11177] | 110 | <Template name=obstacle baseclass=Pawn> |
---|
[11192] | 111 | <Pawn team=1 health=30 position="0,100,0" direction="0,-1,0" collisionType=dynamic mass=10000000000000 name=box RVName = "Box 4" > |
---|
[11177] | 112 | <attached> |
---|
[11192] | 113 | <Model position="0,0,0" mesh="crate.mesh" scale3D="15,15,15" /> |
---|
[11177] | 114 | </attached> |
---|
| 115 | <collisionShapes> |
---|
[11184] | 116 | <BoxCollisionShape position="0,0,0" halfExtents="70,70,70" /> |
---|
[11177] | 117 | </collisionShapes> |
---|
| 118 | </Pawn> |
---|
| 119 | </Template> |
---|
| 120 | |
---|
[11192] | 121 | <!-- Ground Template --> |
---|
[11177] | 122 | |
---|
[11192] | 123 | <Template name=ground baseclass=StaticEntity> |
---|
| 124 | <StaticEntity position="0,0,0" direction="0,0,0" collisionType=static mass=100000000 friction=0.01 > |
---|
| 125 | <attached> |
---|
| 126 | <Model position="0,0,0" mesh="CubeGround.mesh" scale3D="300,20,300" /> |
---|
| 127 | </attached> |
---|
| 128 | <collisionShapes> |
---|
| 129 | <BoxCollisionShape position="0,0,0" halfExtents="300,10,300" /> |
---|
| 130 | </collisionShapes> |
---|
| 131 | </StaticEntity> |
---|
| 132 | </Template> |
---|
| 133 | |
---|
[10660] | 134 | <Level |
---|
[10664] | 135 | plugins = hover |
---|
[10660] | 136 | gametype = Hover |
---|
| 137 | > |
---|
| 138 | <templates> |
---|
| 139 | <Template link=lodtemplate_default /> |
---|
| 140 | </templates> |
---|
[11169] | 141 | |
---|
[10660] | 142 | <?lua include("includes/notifications.oxi") ?> |
---|
| 143 | |
---|
| 144 | <Scene |
---|
| 145 | ambientlight = "0.8, 0.8, 0.8" |
---|
| 146 | skybox = "Orxonox/Starbox" |
---|
[11184] | 147 | gravity = "0, -300, 0" |
---|
[10660] | 148 | > |
---|
| 149 | |
---|
[11169] | 150 | <PickupRepresentation |
---|
| 151 | name = "destroyhover" |
---|
| 152 | pickupName = "Destroy Hover Pickup" |
---|
| 153 | pickupDescription = "destroys you." |
---|
| 154 | spawnerTemplate = "destroyhoverpickupRepresentation" |
---|
| 155 | inventoryRepresentation = "destroyHoverPickup" |
---|
| 156 | /> |
---|
| 157 | |
---|
[11177] | 158 | <PickupRepresentation |
---|
| 159 | name = "hugespeedpickup" |
---|
| 160 | pickupName = "Huge Speed Boost" |
---|
| 161 | pickupDescription = "Multiplies Speed of the Ship by a huge amount." |
---|
| 162 | spawnerTemplate = "hugespeedpickupRepresentation" |
---|
| 163 | inventoryRepresentation = "HugeSpeed" |
---|
| 164 | /> |
---|
[11182] | 165 | |
---|
| 166 | <PickupRepresentation |
---|
| 167 | name = "smallshrinkpickup" |
---|
| 168 | pickupName = "Small Shrink" |
---|
| 169 | pickupDescription = "Shrinks the ship by a small amount." |
---|
| 170 | spawnerTemplate = "smallshrinkpickupRepresentation" |
---|
| 171 | inventoryRepresentation = "SmallShrink" |
---|
| 172 | /> |
---|
[11177] | 173 | |
---|
[11040] | 174 | <StaticEntity position="0,0,0" collisionType="static"> |
---|
[10751] | 175 | <attached> |
---|
[11040] | 176 | <HoverOrigin |
---|
| 177 | numCells="<?lua print(MAZE_NUM_CELLS)?>" |
---|
| 178 | cellSize="<?lua print(MAZE_CELL_SIZE)?>" |
---|
| 179 | cellHeight="<?lua print(MAZE_CELL_HEIGHT)?>" |
---|
[11196] | 180 | wallThickness="<?lua print(MAZE_WALL_THICKNESS)?>" |
---|
[11177] | 181 | obstacletemplate=obstacle |
---|
[11169] | 182 | pickuptemplate=destroyhoverpickup |
---|
| 183 | pickuprepresentationtemplate=destroyhoverpickupRepresentation |
---|
[11182] | 184 | pickuptemplatespeed=hugespeedpickup |
---|
| 185 | pickuprepresentationtemplatespeed=hugespeedpickupRepresentation |
---|
| 186 | pickuptemplateshrink=smallshrinkpickup |
---|
| 187 | pickuprepresentationtemplateshrink=smallshrinkpickupRepresentation |
---|
[11192] | 188 | groundtemplate=ground |
---|
[11040] | 189 | /> |
---|
[11192] | 190 | |
---|
| 191 | </attached> |
---|
| 192 | |
---|
[11040] | 193 | </StaticEntity> |
---|
[10751] | 194 | |
---|
[11040] | 195 | <Light |
---|
| 196 | type=directional |
---|
| 197 | position="-50,500,-50" |
---|
| 198 | direction="0.577, -0.577, 0.577" |
---|
| 199 | diffuse="1.0, 0.9, 0.9, 1.0" |
---|
| 200 | specular="1.0, 0.9, 0.9, 1.0" |
---|
| 201 | /> |
---|
[10668] | 202 | |
---|
[11040] | 203 | <SpawnPoint |
---|
| 204 | team=0 |
---|
[11184] | 205 | position="300,120,300" |
---|
| 206 | lookat="600,120,600" |
---|
[11040] | 207 | spawnclass=HoverShip |
---|
| 208 | pawndesign=spaceshiphover |
---|
| 209 | /> |
---|
[10660] | 210 | |
---|
| 211 | </Scene> |
---|
| 212 | </Level> |
---|