Changeset 10692
- Timestamp:
- Oct 25, 2015, 7:09:11 PM (9 years ago)
- Location:
- code/branches/fabienHS15
- Files:
-
- 2 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/fabienHS15/data/levels/includes/pickups.oxi
r9348 r10692 78 78 /> 79 79 80 <PickupRepresentation 81 name = "destroy" 82 pickupName = "Destroy Pickup" 83 pickupDescription = "Destroy all pickups you have." 84 spawnerTemplate = "destroypickupRepresentation" 85 inventoryRepresentation = "detroyPickup" 86 /> 87 88 <PickupRepresentation 89 name = "destroycarrier" 90 pickupName = "Destroy Carrier Pickup" 91 pickupDescription = "destroys you." 92 spawnerTemplate = "destroycarrierpickupRepresentation" 93 inventoryRepresentation = "destroyCarrierPickup" 94 /> 95 80 96 <!-- Speed pickups --> 81 97 … … 138 154 /> 139 155 156 <!-- Munition pickups --> 157 158 <PickupRepresentation 159 name = "smallmunitionpickup" 160 pickupName = "Small munition" 161 pickupDescription = "Gives a small amount of munition." 162 spawnerTemplate = "smallmunitionpickupRepresentation" 163 inventoryRepresentation = "SmallMunition" 164 /> 165 166 <PickupRepresentation 167 name = "mediummunitionpickup" 168 pickupName = "Medium munition" 169 pickupDescription = "Gives a medium amount of munition." 170 spawnerTemplate = "mediummunitionpickupRepresentation" 171 inventoryRepresentation = "MediumMunition" 172 /> 173 174 <PickupRepresentation 175 name = "hugemunitionpickup" 176 pickupName = "Huge munition" 177 pickupDescription = "Gives a huge amount of munition." 178 spawnerTemplate = "hugemunitionpickupRepresentation" 179 inventoryRepresentation = "HugeMunition" 180 /> 181 140 182 <!-- Pickup Collection pickups --> 141 183 … … 175 217 176 218 <PickupRepresentation 177 name = " largedamageboostpickup"178 pickupName = " Large DamageBoost Pickup"219 name = "hugedamageboostpickup" 220 pickupName = "Huge DamageBoost Pickup" 179 221 pickupDescription = "Multiplies the ship damage with 7." 180 spawnerTemplate = " largedamageboostpickupRepresentation"181 inventoryRepresentation = " LargeDamageBoost"222 spawnerTemplate = "hugedamageboostpickupRepresentation" 223 inventoryRepresentation = "HugeDamageBoost" 182 224 /> 183 225 -
code/branches/fabienHS15/data/levels/pickups.oxw
r9939 r10692 35 35 <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" /> 36 36 <SpawnPoint position="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /> 37 38 <!-- DamageBoost pickup --> 39 40 <PickupSpawner pickup=smalldamageboostpickup position="-25,-100,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10" /> 41 <PickupSpawner pickup=mediumdamageboostpickup position="0,-100,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10" /> 42 <PickupSpawner pickup=hugedamageboostpickup position="25,-100,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10" /> 43 44 <!-- Munition pickups --> 45 46 <PickupSpawner pickup=smallmunitionpickup position="-25,-75,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" /> 47 <PickupSpawner pickup=mediummunitionpickup position="0,-75,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" /> 48 <PickupSpawner pickup=hugemunitionpickup position="25,-75,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" /> 49 50 <!-- Shrink pickup --> 51 52 <PickupSpawner pickup=smallshrinkpickup position="-25,-50,-125" triggerDistance="20" respawnTime="60" maxSpawnedItems="5" /> 53 <PickupSpawner pickup=mediumshrinkpickup position="0,-50,-125" triggerDistance="20" respawnTime="60" maxSpawnedItems="5" /> 54 <PickupSpawner pickup=hugeshrinkpickup position="25,-50,-125" triggerDistance="20" respawnTime="60" maxSpawnedItems="5" /> 37 55 38 56 <!-- Shield pickups --> … … 73 91 74 92 <Template name=destroymetapickup baseclass=MetaPickup> 75 <MetaPickup metaType="destroy" />93 <MetaPickup representation="destroy" metaType="destroy" /> 76 94 </Template> 77 95 78 96 <Template name=destroycarriermetapickup baseclass=MetaPickup> 79 <MetaPickup metaType="destroyCarrier" />97 <MetaPickup representation="destroycarrier" metaType="destroyCarrier" /> 80 98 </Template> 81 99 … … 93 111 <PickupSpawner pickup=dronepickup position="-50,50,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10" /> 94 112 95 <!-- DamageBoost pickup -->96 97 <PickupSpawner pickup=smalldamageboostpickup position="-50,75,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10" />98 <PickupSpawner pickup=mediumdamageboostpickup position="-50,100,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10" />99 <PickupSpawner pickup=largedamageboostpickup position="-50,125,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10" />100 101 113 <!-- Other pickups --> 102 114 103 115 <!-- PickupRepresentation for the pickup below, since it is not a standard pickup provided by pickups.oxi --> 104 116 <PickupRepresentation 105 name = " MediumHealth"106 pickupName = " MediumHealth Pack"107 pickupDescription = " Once usedadds a medium amout of health to the ship."117 name = "ContinousHealth" 118 pickupName = "Continous Health Pack" 119 pickupDescription = "While useing adds a medium amout of health to the ship." 108 120 spawnerTemplate = "mediumhealthpickupRepresentation" 109 121 inventoryRepresentation = "MediumHealth" … … 111 123 112 124 <Template name=continuoushealthpickup baseclass=HealthPickup> 113 <HealthPickup representation=" MediumHealth" health=500 activationType=immediate healthRate=10 durationType=continuous />125 <HealthPickup representation="ContinousHealth" health=500 activationType=immediate healthRate=10 durationType=continuous /> 114 126 </Template> 115 127 116 128 <PickupSpawner pickup=continuoushealthpickup position="-50,0,-125" respawnTime="60" triggerDistance="20" maxSpawnedItems="5" /> 117 118 <PickupSpawner pickup="smallshrinkpickup" position="-25,-50,-125" respawnTime="60" triggerDistance="20" maxSpawnedItems="5" />119 <PickupSpawner pickup="mediumshrinkpickup" position="0,-50,-125" respawnTime="60" triggerDistance="20" maxSpawnedItems="5" />120 <PickupSpawner pickup="hugeshrinkpickup" position="25,-50,-125" respawnTime="60" triggerDistance="20" maxSpawnedItems="5" />121 129 122 130 <!-- @Objects: 4 boxes (uncontrolled pawns) --> … … 177 185 </Pawn> 178 186 179 <!--StaticEntity position="0,-200,0" direction="0,-1,0" collisionType=static mass=500 friction=0.01 >180 <attached>181 <Model position="0,0,0" mesh="cube.mesh" scale3D="10,10,10" />182 </attached>183 <collisionShapes>184 <BoxCollisionShape position="0,0,0" halfExtents="10,10,10" />185 </collisionShapes>186 </StaticEntity-->187 188 187 </Scene> 189 188 </Level> -
code/branches/fabienHS15/data/levels/templates/pickupRepresentationTemplates.oxt
r9348 r10692 189 189 </Template> 190 190 191 <!-- Munition pickups: --> 192 193 <Template name=smallmunitionpickupRepresentation> 194 <PickupRepresentation> 195 <spawner-representation> 196 <StaticEntity> 197 <attached> 198 <Billboard position="0,0,0" colour="0.59,0.30,0.16" material="Sphere2" scale=0.1> 199 <attached> 200 <Billboard position="0,0,0" colour="0.47,0.24,0.13" material="Munition" scale=0.3 /> 201 </attached> 202 </Billboard> 203 </attached> 204 </StaticEntity> 205 </spawner-representation> 206 </PickupRepresentation> 207 </Template> 208 209 <Template name=smallmunitionpickup baseclass=MunitionPickup> 210 <MunitionPickup 211 representation = "smallmunitionpickup" 212 activationType = "immediate" 213 durationType = "once" 214 amount = 10 215 munitiontype = "LightningMunition" 216 /> 217 </Template> 218 219 <Template name=mediummunitionpickupRepresentation> 220 <PickupRepresentation> 221 <spawner-representation> 222 <StaticEntity> 223 <attached> 224 <Billboard position="0,0,0" colour="0.59,0.30,0.16" material="Sphere2" scale=0.1> 225 <attached> 226 <Billboard position="0,0,0" colour="0.47,0.24,0.13" material="Munition" scale=0.5 /> 227 </attached> 228 </Billboard> 229 </attached> 230 </StaticEntity> 231 </spawner-representation> 232 </PickupRepresentation> 233 </Template> 234 235 <Template name=mediummunitionpickup baseclass=MunitionPickup> 236 <MunitionPickup 237 representation = "mediummunitionpickup" 238 activationType = "immediate" 239 durationType = "once" 240 amount = 20 241 munitiontype = "LightningMunition" 242 /> 243 </Template> 244 245 <Template name=hugemunitionpickupRepresentation> 246 <PickupRepresentation> 247 <spawner-representation> 248 <StaticEntity> 249 <attached> 250 <Billboard position="0,0,0" colour="0.59,0.30,0.16" material="Sphere2" scale=0.1> 251 <attached> 252 <Billboard position="0,0,0" colour="0.47,0.24,0.13" material="Munition" scale=0.7 /> 253 </attached> 254 </Billboard> 255 </attached> 256 </StaticEntity> 257 </spawner-representation> 258 </PickupRepresentation> 259 </Template> 260 261 <Template name=hugemunitionpickup baseclass=MunitionPickup> 262 <MunitionPickup 263 representation = "hugemunitionpickup" 264 activationType = "immediate" 265 durationType = "once" 266 amount = 30 267 munitiontype = "LightningMunition" 268 /> 269 </Template> 270 191 271 <!-- Meta pickups: --> 192 272 … … 223 303 </Template> 224 304 305 <Template name=destroypickupRepresentation> 306 <PickupRepresentation> 307 <spawner-representation> 308 <StaticEntity> 309 <attached> 310 <Billboard position="0,0,0" colour="0.60,0.97,0.23" material="Sphere2" scale=0.1> 311 <attached> 312 <Billboard position="0,0,0" colour="0.40,0.81,0.10" material="Splash" scale=0.65 /> 313 </attached> 314 </Billboard> 315 </attached> 316 </StaticEntity> 317 </spawner-representation> 318 </PickupRepresentation> 319 </Template> 320 321 <Template name=destroycarrierpickupRepresentation> 322 <PickupRepresentation> 323 <spawner-representation> 324 <StaticEntity> 325 <attached> 326 <Billboard position="0,0,0" colour="0.60,0.97,0.23" material="Sphere2" scale=0.1> 327 <attached> 328 <Billboard position="0,0,0" colour="0.40,0.81,0.10" material="Asterisk" scale=0.65 /> 329 </attached> 330 </Billboard> 331 </attached> 332 </StaticEntity> 333 </spawner-representation> 334 </PickupRepresentation> 335 </Template> 336 225 337 <!-- DamageBoost pickups --> 226 338 … … 232 344 <Billboard position="0,0,0" colour="0.95,0.10,0.05" material="Sphere2" scale=0.1 > 233 345 <attached> 234 <Billboard position="0,0,0" colour="0. 30,0.30,0.30" material="damageSmall" scale=0.7/>346 <Billboard position="0,0,0" colour="0.70,0.10,0.10" material="Damage" scale=0.3 /> 235 347 </attached> 236 348 </Billboard> … … 258 370 <Billboard position="0,0,0" colour="0.95,0.10,0.05" material="Sphere2" scale=0.1 > 259 371 <attached> 260 <Billboard position="0,0,0" colour="0. 30,0.30,0.30" material="damageMedium" scale=0.7/>372 <Billboard position="0,0,0" colour="0.70,0.10,0.10" material="Damage" scale=0.5 /> 261 373 </attached> 262 374 </Billboard> … … 277 389 </Template> 278 390 279 <Template name= largedamageboostpickupRepresentation>391 <Template name=hugedamageboostpickupRepresentation> 280 392 <PickupRepresentation> 281 393 <spawner-representation> … … 284 396 <Billboard position="0,0,0" colour="0.95,0.10,0.05" material="Sphere2" scale=0.1 > 285 397 <attached> 286 <Billboard position="0,0,0" colour="0. 30,0.30,0.30" material="damageLarge" scale=0.7 />287 </attached> 288 </Billboard> 289 </attached> 290 </StaticEntity> 291 </spawner-representation> 292 </PickupRepresentation> 293 </Template> 294 295 <Template name= largedamageboostpickup baseclass=DamageBoostPickup>398 <Billboard position="0,0,0" colour="0.70,0.10,0.10" material="Damage" scale=0.7 /> 399 </attached> 400 </Billboard> 401 </attached> 402 </StaticEntity> 403 </spawner-representation> 404 </PickupRepresentation> 405 </Template> 406 407 <Template name=hugedamageboostpickup baseclass=DamageBoostPickup> 296 408 <DamageBoostPickup 297 representation = " largedamageboostpickup"409 representation = "hugedamageboostpickup" 298 410 duration = 10.0 299 411 damageMultiplier = 7.0 … … 498 610 <Billboard position="0,0,0" colour="1.0,0.55,1.0" material="Sphere2" scale=0.1> 499 611 <attached> 500 <Billboard position="0,0,0" colour="1.0,0.55,1.0" material="Shrink" scale=0. 4/>612 <Billboard position="0,0,0" colour="1.0,0.55,1.0" material="Shrink" scale=0.35 /> 501 613 </attached> 502 614 </Billboard> … … 524 636 <Billboard position="0,0,0" colour="1.0,0.55,1.0" material="Sphere2" scale=0.1> 525 637 <attached> 526 <Billboard position="0,0,0" colour="1.0,0.55,1.0" material="Shrink" scale=0. 7/>638 <Billboard position="0,0,0" colour="1.0,0.55,1.0" material="Shrink" scale=0.55 /> 527 639 </attached> 528 640 </Billboard> … … 550 662 <Billboard position="0,0,0" colour="1.0,0.55,1.0" material="Sphere2" scale=0.1> 551 663 <attached> 552 <Billboard position="0,0,0" colour="1.0,0.55,1.0" material="Shrink" scale= 1.0/>664 <Billboard position="0,0,0" colour="1.0,0.55,1.0" material="Shrink" scale=0.75 /> 553 665 </attached> 554 666 </Billboard> … … 609 721 </attached> 610 722 <collisionShapes> 611 < BoxCollisionShape position="0,0,0" halfExtents="1, 1, 1"/>723 <SphereCollisionShape position="0,0,0" radius=5 /> 612 724 </collisionShapes> 613 725 <weaponslots> 614 <WeaponSlot position=" 0,0,0" />726 <WeaponSlot position="0,0,0" /> 615 727 </weaponslots> 616 728 <weaponsets> -
code/branches/fabienHS15/src/modules/pickup/PickupRepresentation.cc
r9667 r10692 187 187 Billboard* icon = new Billboard(spawner->getContext()); 188 188 icon->setColour(ColourValue(0.89f, 0.79f, 0.08f)); 189 icon->setMaterial(" asterisk");189 icon->setMaterial("Unknown"); 190 190 icon->setScale(0.5); 191 191 sphere->attach(icon); -
code/branches/fabienHS15/src/modules/pickup/items/CMakeLists.txt
r9348 r10692 8 8 ShrinkPickup.cc 9 9 DamageBoostPickup.cc 10 MunitionPickup.cc 10 11 ) -
code/branches/fabienHS15/src/modules/pickup/items/DronePickup.h
r9667 r10692 43 43 #include "tools/interfaces/Tickable.h" 44 44 45 namespace orxonox { 45 namespace orxonox 46 { 46 47 47 48 /** … … 80 81 std::string droneTemplate_; //!< The name of the template, based upon which the Drone is created. 81 82 Pawn* carrierToPawnHelper(void); //!< Helper to transform the PickupCarrier to a Pawn, and throw an error message if the conversion fails. 82 83 84 85 83 }; 86 84 } -
code/branches/fabienHS15/src/orxonox/worldentities/pawns/Pawn.cc
r10688 r10692 560 560 else 561 561 return 0; 562 } 562 } 563 564 Munition* Pawn::getMunition(SubclassIdentifier<Munition> * identifier) 565 { 566 if (weaponSystem_) 567 { 568 return weaponSystem_->getMunition(identifier); 569 } 570 571 return NULL; 572 } 563 573 564 574 //Tell the Map (RadarViewable), if this is a playership -
code/branches/fabienHS15/src/orxonox/worldentities/pawns/Pawn.h
r10688 r10692 155 155 WeaponPack * getWeaponPack(unsigned int index) const; 156 156 std::vector<WeaponPack *> * getAllWeaponPacks(); 157 158 Munition * getMunition(SubclassIdentifier<Munition> * identifier); 157 159 158 160 virtual void addedWeaponPack(WeaponPack* wPack) {}
Note: See TracChangeset
for help on using the changeset viewer.