[10660] | 1 | <LevelInfo |
---|
| 2 | name = "Hover level" |
---|
| 3 | description = "Level for Minigame Hover" |
---|
| 4 | tags = "minigame" |
---|
[11168] | 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 |
---|
| 22 | MAZE_CELL_SIZE = 100 |
---|
| 23 | MAZE_CELL_HEIGHT = 30 |
---|
| 24 | MAZE_SIZE = MAZE_NUM_CELLS*MAZE_CELL_SIZE |
---|
| 25 | ?> |
---|
[11177] | 26 | <!-- |
---|
| 27 | <Template name=mediumdamagehoverpickupRepresentation> |
---|
| 28 | <PickupRepresentation> |
---|
| 29 | <spawner-representation> |
---|
| 30 | <StaticEntity> |
---|
| 31 | <attached> |
---|
| 32 | <Billboard position="0,0,0" colour="0.95,0.10,0.05" material="Sphere2" scale=0.1 > |
---|
| 33 | <attached> |
---|
| 34 | <Billboard position="0,0,0" colour="0.70,0.10,0.10" material="Damage" scale=0.5 /> |
---|
| 35 | </attached> |
---|
| 36 | </Billboard> |
---|
| 37 | </attached> |
---|
| 38 | </StaticEntity> |
---|
| 39 | </spawner-representation> |
---|
| 40 | </PickupRepresentation> |
---|
| 41 | </Template> |
---|
[11040] | 42 | |
---|
[11177] | 43 | <Template name=damagehover baseclass=DamageBoostPickup> |
---|
| 44 | <DamageBoostPickup |
---|
| 45 | representation = "mediumdamagehoverpickup" |
---|
| 46 | duration = 10.0 |
---|
| 47 | damageMultiplier = 5.0 |
---|
| 48 | activationType = "immediate" |
---|
| 49 | durationType = "continuous" |
---|
| 50 | /> |
---|
| 51 | </Template> --> |
---|
| 52 | |
---|
[11182] | 53 | <!-- Shrink Pickup Representation --> |
---|
| 54 | |
---|
| 55 | <Template name=smallshrinkpickupRepresentation> |
---|
| 56 | <PickupRepresentation> |
---|
| 57 | <spawner-representation> |
---|
| 58 | <StaticEntity> |
---|
| 59 | <attached> |
---|
| 60 | <Billboard position="0,0,0" colour="1.0,0.55,1.0" material="Sphere2" scale=0.1> |
---|
| 61 | <attached> |
---|
| 62 | <Billboard position="0,0,0" colour="1.0,0.55,1.0" material="Shrink" scale=0.35 /> |
---|
| 63 | </attached> |
---|
| 64 | </Billboard> |
---|
| 65 | </attached> |
---|
| 66 | </StaticEntity> |
---|
| 67 | </spawner-representation> |
---|
| 68 | </PickupRepresentation> |
---|
| 69 | </Template> |
---|
| 70 | |
---|
| 71 | |
---|
| 72 | <Template name=smallshrinkpickup baseclass=ShrinkPickup> |
---|
| 73 | <ShrinkPickup |
---|
| 74 | representation = "smallshrinkpickup" |
---|
| 75 | duration = 10.0 |
---|
| 76 | shrinkFactor = 2.5 |
---|
| 77 | activaionType = "immediate" |
---|
| 78 | durationType = "continuous" |
---|
| 79 | /> |
---|
| 80 | </Template> |
---|
| 81 | |
---|
| 82 | <!-- Speed Pickup Representation --> |
---|
| 83 | |
---|
[11177] | 84 | <Template name=hugespeedpickupRepresentation> |
---|
| 85 | <PickupRepresentation> |
---|
| 86 | <spawner-representation> |
---|
| 87 | <StaticEntity> |
---|
| 88 | <attached> |
---|
| 89 | <Billboard position="0,0,0" colour="0.99,0.96,0.52" material="Sphere2" scale=0.1> |
---|
| 90 | <attached> |
---|
| 91 | <Billboard position="0,0,0" colour="0.98,0.94,0.22" material="3arrowsup" scale=0.7 /> |
---|
| 92 | </attached> |
---|
| 93 | </Billboard> |
---|
| 94 | </attached> |
---|
| 95 | </StaticEntity> |
---|
| 96 | </spawner-representation> |
---|
| 97 | </PickupRepresentation> |
---|
| 98 | </Template> |
---|
| 99 | |
---|
| 100 | <Template name=hugespeedpickup baseclass=SpeedPickup> |
---|
| 101 | <SpeedPickup |
---|
| 102 | representation = "hugespeedpickup" |
---|
| 103 | duration = 10.0 |
---|
| 104 | speedAdd = 0.0 |
---|
| 105 | SpeedMultiply = 50.0 |
---|
| 106 | activationType = "immediate" |
---|
| 107 | durationType = "continuous" |
---|
| 108 | /> |
---|
| 109 | </Template> |
---|
| 110 | |
---|
[11182] | 111 | <!-- Destroy Carrier Pickup Representation --> |
---|
[11177] | 112 | |
---|
[11163] | 113 | <Template name=destroyhoverpickupRepresentation> |
---|
| 114 | <PickupRepresentation> |
---|
| 115 | <spawner-representation> |
---|
| 116 | <StaticEntity> |
---|
| 117 | <attached> |
---|
| 118 | <Billboard position="0,0,0" colour="0.6,0.⁰,0.8" material="Sphere2" scale=0.1> |
---|
| 119 | <attached> |
---|
| 120 | <Billboard position="0,0,0" colour="0.6,0.⁰,0.8" material="Asterisk" scale=0.65 /> |
---|
| 121 | </attached> |
---|
| 122 | </Billboard> |
---|
| 123 | </attached> |
---|
| 124 | </StaticEntity> |
---|
| 125 | </spawner-representation> |
---|
| 126 | </PickupRepresentation> |
---|
| 127 | </Template> |
---|
| 128 | |
---|
[11169] | 129 | <Template name=destroyhoverpickup baseclass=MetaPickup> |
---|
[11171] | 130 | <MetaPickup representation="destroyhover" metaType="destroyCarrier" /> |
---|
[11168] | 131 | </Template> |
---|
| 132 | |
---|
[11182] | 133 | <!-- Obstacle (crate) Template --> |
---|
| 134 | |
---|
[11177] | 135 | <Template name=obstacle baseclass=Pawn> |
---|
| 136 | <Pawn team=1 health=30 position="0,100,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box RVName = "Box 4" > |
---|
| 137 | <attached> |
---|
| 138 | <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" /> |
---|
| 139 | </attached> |
---|
| 140 | <collisionShapes> |
---|
| 141 | <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" /> |
---|
| 142 | </collisionShapes> |
---|
| 143 | </Pawn> |
---|
| 144 | </Template> |
---|
| 145 | |
---|
| 146 | |
---|
[10660] | 147 | <Level |
---|
[10664] | 148 | plugins = hover |
---|
[10660] | 149 | gametype = Hover |
---|
| 150 | > |
---|
| 151 | <templates> |
---|
| 152 | <Template link=lodtemplate_default /> |
---|
| 153 | </templates> |
---|
[11169] | 154 | |
---|
[10660] | 155 | <?lua include("includes/notifications.oxi") ?> |
---|
| 156 | |
---|
[11163] | 157 | |
---|
| 158 | |
---|
| 159 | |
---|
[10660] | 160 | <Scene |
---|
| 161 | ambientlight = "0.8, 0.8, 0.8" |
---|
| 162 | skybox = "Orxonox/Starbox" |
---|
[10928] | 163 | gravity = "0, -200, 0" |
---|
[10660] | 164 | > |
---|
| 165 | |
---|
[11169] | 166 | <PickupRepresentation |
---|
| 167 | name = "destroyhover" |
---|
| 168 | pickupName = "Destroy Hover Pickup" |
---|
| 169 | pickupDescription = "destroys you." |
---|
| 170 | spawnerTemplate = "destroyhoverpickupRepresentation" |
---|
| 171 | inventoryRepresentation = "destroyHoverPickup" |
---|
| 172 | /> |
---|
| 173 | |
---|
[11177] | 174 | <PickupRepresentation |
---|
| 175 | name = "hugespeedpickup" |
---|
| 176 | pickupName = "Huge Speed Boost" |
---|
| 177 | pickupDescription = "Multiplies Speed of the Ship by a huge amount." |
---|
| 178 | spawnerTemplate = "hugespeedpickupRepresentation" |
---|
| 179 | inventoryRepresentation = "HugeSpeed" |
---|
| 180 | /> |
---|
[11182] | 181 | |
---|
| 182 | <PickupRepresentation |
---|
| 183 | name = "smallshrinkpickup" |
---|
| 184 | pickupName = "Small Shrink" |
---|
| 185 | pickupDescription = "Shrinks the ship by a small amount." |
---|
| 186 | spawnerTemplate = "smallshrinkpickupRepresentation" |
---|
| 187 | inventoryRepresentation = "SmallShrink" |
---|
| 188 | /> |
---|
[11177] | 189 | <!-- |
---|
| 190 | <PickupRepresentation |
---|
| 191 | name = "damagehover" |
---|
| 192 | pickupName = "Medium Damage Hover Pickup" |
---|
| 193 | pickupDescription = "Multiplies the ship damage with 5." |
---|
| 194 | spawnerTemplate = "mediumdamagehoverpickupRepresentation" |
---|
| 195 | inventoryRepresentation = "MediumDamageHover" |
---|
| 196 | /> --> |
---|
| 197 | |
---|
[11040] | 198 | <StaticEntity position="0,0,0" collisionType="static"> |
---|
[10751] | 199 | <attached> |
---|
[11040] | 200 | <HoverOrigin |
---|
| 201 | numCells="<?lua print(MAZE_NUM_CELLS)?>" |
---|
| 202 | cellSize="<?lua print(MAZE_CELL_SIZE)?>" |
---|
| 203 | cellHeight="<?lua print(MAZE_CELL_HEIGHT)?>" |
---|
[11177] | 204 | obstacletemplate=obstacle |
---|
[11169] | 205 | pickuptemplate=destroyhoverpickup |
---|
| 206 | pickuprepresentationtemplate=destroyhoverpickupRepresentation |
---|
[11182] | 207 | pickuptemplatespeed=hugespeedpickup |
---|
| 208 | pickuprepresentationtemplatespeed=hugespeedpickupRepresentation |
---|
| 209 | pickuptemplateshrink=smallshrinkpickup |
---|
| 210 | pickuprepresentationtemplateshrink=smallshrinkpickupRepresentation |
---|
[11040] | 211 | /> |
---|
| 212 | <Model |
---|
| 213 | position="<?lua print(MAZE_SIZE/2)?>,-16,<?lua print(MAZE_SIZE/2)?>" |
---|
| 214 | scale3D="<?lua print(MAZE_SIZE/2)?>,16,<?lua print(MAZE_SIZE/2)?>" |
---|
| 215 | mesh="CubeGround.mesh" |
---|
| 216 | /> |
---|
| 217 | </attached> |
---|
| 218 | <collisionShapes> |
---|
| 219 | <BoxCollisionShape |
---|
| 220 | position="<?lua print(MAZE_SIZE/2)?>,<?lua print(MAZE_CELL_HEIGHT+1)?>,<?lua print(MAZE_SIZE/2)?>" |
---|
| 221 | halfExtents="<?lua print(MAZE_SIZE/2)?>,1,<?lua print(MAZE_SIZE/2)?>" |
---|
| 222 | /> |
---|
| 223 | <BoxCollisionShape |
---|
| 224 | position="<?lua print(MAZE_SIZE/2)?>,-1,<?lua print(MAZE_SIZE/2)?>" |
---|
| 225 | halfExtents="<?lua print(MAZE_SIZE/2)?>,1,<?lua print(MAZE_SIZE/2)?>" |
---|
| 226 | /> |
---|
| 227 | </collisionShapes> |
---|
| 228 | </StaticEntity> |
---|
[10751] | 229 | |
---|
[11040] | 230 | <Light |
---|
| 231 | type=directional |
---|
| 232 | position="-50,500,-50" |
---|
| 233 | direction="0.577, -0.577, 0.577" |
---|
| 234 | diffuse="1.0, 0.9, 0.9, 1.0" |
---|
| 235 | specular="1.0, 0.9, 0.9, 1.0" |
---|
| 236 | /> |
---|
[10668] | 237 | |
---|
[11040] | 238 | <SpawnPoint |
---|
| 239 | team=0 |
---|
| 240 | position="50,20,50" |
---|
| 241 | lookat="100,20,100" |
---|
| 242 | spawnclass=HoverShip |
---|
| 243 | pawndesign=spaceshiphover |
---|
| 244 | /> |
---|
[10660] | 245 | |
---|
| 246 | </Scene> |
---|
| 247 | </Level> |
---|
| 248 | |
---|