Changeset 10814 for code/branches
- Timestamp:
- Nov 17, 2015, 10:30:24 PM (9 years ago)
- Location:
- code/branches/fabienHS15
- Files:
-
- 2 added
- 51 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/fabienHS15/data/levels/FPS_Level_HS14.oxw
r10262 r10814 67 67 maxshieldhealth = "50" 68 68 shieldabsorption = "0.8" 69 reloadrate= "100"70 reloadwaittime= "0.1"69 shieldrechargerate = "100" 70 shieldrechargewaittime = "0.1" 71 71 name = "Tanis1" 72 72 radarname = "Light Destroyer" > … … 197 197 maxshieldhealth = "200" 198 198 shieldabsorption = "0.8" 199 reloadrate= "1"200 reloadwaittime= "1"199 shieldrechargerate = "1" 200 shieldrechargewaittime = "1" 201 201 name = "Tanis0" 202 202 radarname = "Tanis big ship" > … … 216 216 maxshieldhealth = "50" 217 217 shieldabsorption = "0.8" 218 reloadrate= "1"219 reloadwaittime= "1"218 shieldrechargerate = "1" 219 shieldrechargewaittime = "1" 220 220 name = "Tanis0" 221 221 radarname = "Pirate1" > … … 239 239 maxshieldhealth = "50" 240 240 shieldabsorption = "0.8" 241 reloadrate= "1"242 reloadwaittime= "1"241 shieldrechargerate = "1" 242 shieldrechargewaittime = "1" 243 243 name = "Tanis0" 244 244 radarname = "Pirate2" > -
code/branches/fabienHS15/data/levels/iJohnVane_TriptoArea51.oxw
r10274 r10814 169 169 maxshieldhealth = "120" 170 170 shieldabsorption = "0.8" 171 reloadrate= "1"172 reloadwaittime= "1"171 shieldrechargerate = "1" 172 shieldrechargewaittime = "1" 173 173 name = "cruiser" 174 174 radarname = "Spacecruiser" > -
code/branches/fabienHS15/data/levels/includes/weaponSettingsAssff.oxi
r10791 r10814 40 40 <Weapon> 41 41 <SimpleRocketFire mode=2 muzzleoffset="0,0,0" damage=30 healthdamage=50 shielddamage=20 /> 42 <RocketFire mode=3 muzzleoffset="0,0,0" damage=30 healthdamage=50 shielddamage=20 />42 <RocketFire mode=3 muzzleoffset="0,0,0" damage=30 healthdamage=50 shielddamage=20 fuel=8 /> 43 43 </Weapon> 44 44 </WeaponPack> -
code/branches/fabienHS15/data/levels/includes/weaponSettingsAssff2.oxi
r10791 r10814 38 38 <Weapon> 39 39 <SimpleRocketFire mode=2 muzzleoffset="0,0,0" damage=50 /> 40 <RocketFire mode=3 muzzleoffset="0,0,0" damage=100 />40 <RocketFire mode=3 muzzleoffset="0,0,0" damage=100 fuel=10 /> 41 41 </Weapon> 42 42 </WeaponPack> -
code/branches/fabienHS15/data/levels/includes/weaponSettingsCollateral.oxi
r10791 r10814 42 42 <Weapon> 43 43 <SimpleRocketFire mode=2 muzzleoffset="0,0,0" damage=30 shielddamage=20 /> 44 <RocketFire mode=3 muzzleoffset="0,0,0" damage=30 healthdamage=50 shielddamage=20 />44 <RocketFire mode=3 muzzleoffset="0,0,0" damage=30 healthdamage=50 shielddamage=20 fuel=10 /> 45 45 </Weapon> 46 46 </WeaponPack> -
code/branches/fabienHS15/data/levels/includes/weaponSettingsFS15.oxi
r10791 r10814 38 38 <GravityBombFire mode=2 muzzleoffset="0,0,0" damage=30 shielddamage=20 /> 39 39 <RocketFireOld mode=3 muzzleoffset="0,0,0" damage=30 healthdamage=50 shielddamage=20 /> 40 <RocketFire mode=4 muzzleoffset="0,0,0" damage=30 healthdamage=50 shielddamage=20 />40 <RocketFire mode=4 muzzleoffset="0,0,0" damage=30 healthdamage=50 shielddamage=20 fuel=10 /> 41 41 </Weapon> 42 42 </WeaponPack> -
code/branches/fabienHS15/data/levels/includes/weaponSettingsHeartAttack.oxi
r10791 r10814 34 34 <LaserFire mode=1 munitionpershot=1 muzzleoffset="2.2,6,16" damage=30 shielddamage=20 /> 35 35 <LaserFire mode=1 munitionpershot=1 muzzleoffset="-2.2,6,16" damage=30 shielddamage=20 /> 36 <RocketFire mode=3 muzzleoffset="0,0,0" damage=30 healthdamage=50 shielddamage=20 />36 <RocketFire mode=3 muzzleoffset="0,0,0" damage=30 healthdamage=50 shielddamage=20 fuel=10 /> 37 37 <GravityBombFire mode=2 muzzleoffset="0,0,0" damage=30 shielddamage=20 /> 38 38 </Weapon> -
code/branches/fabienHS15/data/levels/includes/weaponSettingsHeavyCruiser.oxi
r10791 r10814 40 40 <Weapon> 41 41 <SimpleRocketFire mode=2 muzzleoffset="0,0,0" damage=30 shielddamage=20 /> 42 <RocketFire mode=3 muzzleoffset="0,0,0" damage=30 healthdamage=50 shielddamage=20 />42 <RocketFire mode=3 muzzleoffset="0,0,0" damage=30 healthdamage=50 shielddamage=20 fuel=10 /> 43 43 </Weapon> 44 44 </WeaponPack> -
code/branches/fabienHS15/data/levels/includes/weaponSettingsHeavyCruiserBody.oxi
r10791 r10814 34 34 <Weapon> 35 35 <SimpleRocketFire mode=2 muzzleoffset="0,0,0" damage=30 shielddamage=20 /> 36 <RocketFire mode=3 muzzleoffset="0,0,0" damage=30 healthdamage=50 shielddamage=20 />36 <RocketFire mode=3 muzzleoffset="0,0,0" damage=30 healthdamage=50 shielddamage=20 fuel=10 /> 37 37 </Weapon> 38 38 </WeaponPack> -
code/branches/fabienHS15/data/levels/includes/weaponSettingsImmTest.oxi
r10791 r10814 44 44 <Weapon> 45 45 <SimpleRocketFire mode=2 muzzleoffset="0,0,0" shielddamage=50 /> 46 <RocketFire mode=3 muzzleoffset="0,0,0" healthdamage=80 shielddamage=20 />46 <RocketFire mode=3 muzzleoffset="0,0,0" healthdamage=80 shielddamage=20 fuel=10 /> 47 47 </Weapon> 48 48 </WeaponPack> -
code/branches/fabienHS15/data/levels/includes/weaponSettingsSpacecruiser.oxi
r10791 r10814 44 44 <Weapon> 45 45 <SimpleRocketFire mode=2 muzzleoffset="0,0,0" damage=30 shielddamage=20 /> 46 <RocketFire mode=3 muzzleoffset="0,0,0" damage=30 healthdamage=50 shielddamage=20 />46 <RocketFire mode=3 muzzleoffset="0,0,0" damage=30 healthdamage=50 shielddamage=20 fuel=10 /> 47 47 </Weapon> 48 48 <Weapon> -
code/branches/fabienHS15/data/levels/includes/weaponSettingsbigship.oxi
r10791 r10814 35 35 <Weapon> 36 36 <SimpleRocketFire mode=2 muzzleoffset="0,0,0" damage=30 shielddamage=20 /> 37 <RocketFire mode=3 muzzleoffset="0,0,0" damage=30 healthdamage=50 shielddamage=20 />37 <RocketFire mode=3 muzzleoffset="0,0,0" damage=30 healthdamage=50 shielddamage=20 fuel=10 /> 38 38 </Weapon> 39 39 </WeaponPack> -
code/branches/fabienHS15/data/levels/missionOne.oxw
r9985 r10814 1080 1080 maxshieldhealth = "120" 1081 1081 shieldabsorption = "0.8" 1082 reloadrate= "1"1083 reloadwaittime= "1"1082 shieldrechargerate = "1" 1083 shieldrechargewaittime = "1" 1084 1084 name = "cruiser" 1085 1085 radarname = "Spacecruiser" > -
code/branches/fabienHS15/data/levels/presentationHS13.oxw
r10258 r10814 162 162 maxshieldhealth = "120" 163 163 shieldabsorption = "0.8" 164 reloadrate= "1"165 reloadwaittime= "1"164 shieldrechargerate = "1" 165 shieldrechargewaittime = "1" 166 166 name = "Tanis1" 167 167 radarname = "Tanis Cruiser" > -
code/branches/fabienHS15/data/levels/shieldTest.oxw
r9016 r10814 43 43 shieldabsorption= 1 44 44 45 reloadrate= "10"46 reloadwaittime= 145 shieldrechargerate = "10" 46 shieldrechargewaittime = 1 47 47 48 48 > -
code/branches/fabienHS15/data/levels/templates/HeavyCruiser.oxt
r10216 r10814 19 19 maxshieldhealth = 50 20 20 shieldabsorption = 0.8 21 reloadrate= 122 reloadwaittime= 121 shieldrechargerate = 1 22 shieldrechargewaittime = 1 23 23 24 24 primaryThrust = 300 -
code/branches/fabienHS15/data/levels/templates/HeavyCruiserBody.oxt
r9943 r10814 17 17 maxshieldhealth = 500 18 18 shieldabsorption = 0.8 19 reloadrate= 120 reloadwaittime= 119 shieldrechargerate = 1 20 shieldrechargewaittime = 1 21 21 22 22 primaryThrust = 300 -
code/branches/fabienHS15/data/levels/templates/ModularSpaceShipTest.oxt
r10262 r10814 15 15 maxshieldhealth = 50 16 16 shieldabsorption = 0.8 17 reloadrate= 118 reloadwaittime= 117 shieldrechargerate = 1 18 shieldrechargewaittime = 1 19 19 20 20 primaryThrust = 100 -
code/branches/fabienHS15/data/levels/templates/bigship.oxt
r9664 r10814 15 15 maxshieldhealth = 50 16 16 shieldabsorption = 0.8 17 reloadrate= 118 reloadwaittime= 117 shieldrechargerate = 1 18 shieldrechargewaittime = 1 19 19 20 20 primaryThrust = 30 -
code/branches/fabienHS15/data/levels/templates/enemyInvader.oxt
r9954 r10814 15 15 maxshieldhealth = 10 16 16 shieldabsorption = 0.9 17 reloadrate= 118 reloadwaittime= 117 shieldrechargerate = 1 18 shieldrechargewaittime = 1 19 19 20 20 primaryThrust = 150 … … 77 77 maxshieldhealth = 20 78 78 shieldabsorption = 0.9 79 reloadrate= 180 reloadwaittime= 179 shieldrechargerate = 1 80 shieldrechargewaittime = 1 81 81 82 82 primaryThrust = 150 -
code/branches/fabienHS15/data/levels/templates/spaceshipAssff.oxt
r9939 r10814 15 15 maxshieldhealth = 50 16 16 shieldabsorption = 0.8 17 reloadrate= 118 reloadwaittime= 117 shieldrechargerate = 1 18 shieldrechargewaittime = 1 19 19 20 20 primaryThrust = 100 -
code/branches/fabienHS15/data/levels/templates/spaceshipAssff2.oxt
r8860 r10814 15 15 maxshieldhealth = 150 16 16 shieldabsorption = 0.95 17 reloadrate= 518 reloadwaittime= 0.517 shieldrechargerate = 5 18 shieldrechargewaittime = 0.5 19 19 20 20 primaryThrust = 100 -
code/branches/fabienHS15/data/levels/templates/spaceshipCollateralDamage.oxt
r9664 r10814 16 16 maxshieldhealth = 50 17 17 shieldabsorption = 0.8 18 reloadrate= 119 reloadwaittime= 118 shieldrechargerate = 1 19 shieldrechargewaittime = 1 20 20 21 21 primaryThrust = 100 -
code/branches/fabienHS15/data/levels/templates/spaceshipDodgeRace.oxt
r10262 r10814 15 15 maxshieldhealth = 20 16 16 shieldabsorption = 0.1 17 reloadrate= 118 reloadwaittime= 117 shieldrechargerate = 1 18 shieldrechargewaittime = 1 19 19 20 20 primaryThrust = 150 -
code/branches/fabienHS15/data/levels/templates/spaceshipEscort.oxt
r9664 r10814 15 15 maxshieldhealth = 60 16 16 shieldabsorption = 0.9 17 reloadrate= 118 reloadwaittime= 117 shieldrechargerate = 1 18 shieldrechargewaittime = 1 19 19 20 20 primaryThrust = 150 -
code/branches/fabienHS15/data/levels/templates/spaceshipFS15.oxt
r10622 r10814 15 15 maxshieldhealth = 800 16 16 shieldabsorption = 0.8 17 reloadrate= 118 reloadwaittime= 117 shieldrechargerate = 1 18 shieldrechargewaittime = 1 19 19 20 20 primaryThrust = 40 -
code/branches/fabienHS15/data/levels/templates/spaceshipGhost.oxt
r8858 r10814 15 15 maxshieldhealth = 150 16 16 shieldabsorption = 0.9 17 reloadrate= 318 reloadwaittime= 0.017 shieldrechargerate = 3 18 shieldrechargewaittime = 0.0 19 19 20 20 primaryThrust = 600 -
code/branches/fabienHS15/data/levels/templates/spaceshipHeartAttack.oxt
r10622 r10814 15 15 maxshieldhealth = 800 16 16 shieldabsorption = 0.8 17 reloadrate= 118 reloadwaittime= 117 shieldrechargerate = 1 18 shieldrechargewaittime = 1 19 19 20 20 primaryThrust = 40 -
code/branches/fabienHS15/data/levels/templates/spaceshipInvader.oxt
r9943 r10814 15 15 maxshieldhealth = 60 16 16 shieldabsorption = 0.9 17 reloadrate= 118 reloadwaittime= 117 shieldrechargerate = 1 18 shieldrechargewaittime = 1 19 19 20 20 primaryThrust = 150 -
code/branches/fabienHS15/data/levels/templates/spaceshipPirate.oxt
r8858 r10814 15 15 maxshieldhealth = 40 16 16 shieldabsorption = 0.6 17 reloadrate= 218 reloadwaittime= 0.517 shieldrechargerate = 2 18 shieldrechargewaittime = 0.5 19 19 20 20 primaryThrust = 100 -
code/branches/fabienHS15/data/levels/templates/spaceshipRace.oxt
r9348 r10814 15 15 maxshieldhealth = 50 16 16 shieldabsorption = 0.8 17 reloadrate= 118 reloadwaittime= 117 shieldrechargerate = 1 18 shieldrechargewaittime = 1 19 19 20 20 primaryThrust = 100 -
code/branches/fabienHS15/data/levels/templates/spaceshipRing.oxt
r10622 r10814 15 15 maxshieldhealth = 60 16 16 shieldabsorption = 0.9 17 reloadrate= 118 reloadwaittime= 117 shieldrechargerate = 1 18 shieldrechargewaittime = 1 19 19 20 20 primaryThrust = 150 -
code/branches/fabienHS15/data/levels/templates/spaceshipSpacecruiser.oxt
r9348 r10814 15 15 maxshieldhealth = 90 16 16 shieldabsorption = 0.9 17 reloadrate= 118 reloadwaittime= 117 shieldrechargerate = 1 18 shieldrechargewaittime = 1 19 19 20 20 primaryThrust = 90 -
code/branches/fabienHS15/data/levels/templates/spaceshipSwallow.oxt
r8858 r10814 15 15 maxshieldhealth = 80 16 16 shieldabsorption = 0.75 17 reloadrate= 1.518 reloadwaittime= 0.217 shieldrechargerate = 1.5 18 shieldrechargewaittime = 0.2 19 19 20 20 primaryThrust = 600; -
code/branches/fabienHS15/data/levels/templates/spaceshipTurret.oxt
r9664 r10814 15 15 maxshieldhealth = 50 16 16 shieldabsorption = 0.8 17 reloadrate= 118 reloadwaittime= 117 shieldrechargerate = 1 18 shieldrechargewaittime = 1 19 19 20 20 primaryThrust = 100 -
code/branches/fabienHS15/data/levels/templates/towerdefensetower.oxt
r10622 r10814 4 4 5 5 explosionchunks = 6 6 reloadrate=107 reloadwaittime=56 shieldrechargerate=10 7 shieldrechargewaittime=5 8 8 collisionType="none" 9 9 pitch="0" -
code/branches/fabienHS15/data/levels/towerDefense.oxw
r10791 r10814 39 39 <TowerDefenseTower 40 40 explosionchunks=6 41 reloadrate=1042 reloadwaittime=541 shieldrechargerate=10 42 shieldrechargewaittime=5 43 43 collisionType="none" 44 44 pitch="0" … … 79 79 <TowerDefenseTower 80 80 explosionchunks=6 81 reloadrate=1082 reloadwaittime=581 shieldrechargerate=10 82 shieldrechargewaittime=5 83 83 collisionType="none" 84 84 pitch="0" … … 122 122 <TowerDefenseTower 123 123 explosionchunks=6 124 reloadrate=10125 reloadwaittime=5124 shieldrechargerate=10 125 shieldrechargewaittime=5 126 126 collisionType="none" 127 127 pitch="0" … … 162 162 <TowerDefenseTower 163 163 explosionchunks=6 164 reloadrate=10165 reloadwaittime=5164 shieldrechargerate=10 165 shieldrechargewaittime=5 166 166 collisionType="none" 167 167 pitch="0" … … 189 189 </links> 190 190 <Weapon> 191 <RocketFire mode=0 munitionpershot=0 muzzleoffset="0,0,0" damage=2 shielddamage=4 />191 <RocketFire mode=0 munitionpershot=0 muzzleoffset="0,0,0" damage=2 shielddamage=4 fuel=10/> 192 192 </Weapon> 193 193 </WeaponPack> … … 205 205 <TowerDefenseTower 206 206 explosionchunks=6 207 reloadrate=10208 reloadwaittime=5207 shieldrechargerate=10 208 shieldrechargewaittime=5 209 209 collisionType="none" 210 210 pitch="0" … … 258 258 maxshieldhealth = 15 259 259 shieldabsorption = 0.8 260 reloadrate= 1261 reloadwaittime= 1260 shieldrechargerate = 1 261 shieldrechargewaittime = 1 262 262 263 263 primaryThrust = 1000 … … 323 323 maxshieldhealth = 0 324 324 shieldabsorption = 0.8 325 reloadrate= 1326 reloadwaittime= 1325 shieldrechargerate = 1 326 shieldrechargewaittime = 1 327 327 328 328 primaryThrust = 100 … … 396 396 maxshieldhealth = 5 397 397 shieldabsorption = 0.8 398 reloadrate= 1399 reloadwaittime= 1398 shieldrechargerate = 1 399 shieldrechargewaittime = 1 400 400 401 401 primaryThrust = 100 -
code/branches/fabienHS15/data/overlays/HUDTemplates3.oxo
r10746 r10814 24 24 <Template name="spectatorhud"> 25 25 <OverlayGroup name = "spectatorhud" scale = "1, 1"> 26 </OverlayGroup> 27 </Template> 28 29 <Template name="rockethud"> 30 <OverlayGroup name = "rockethud" scale = "1, 1"> 31 <HUDRocketFuelBar 32 name = "RocketFuelBar1" 33 background = "Orxonox/BarBackground" 34 size = "0.40, 0.04" 35 position = "0.0 , 1.0 " 36 pickpoint = "0, 1" 37 correctaspect = true 38 iconmaterial = "Orxonox/BarIconFuel" 39 > 40 <BarColour position = 0.0 colour = "0.7,0.2,0.2" /> 41 <BarColour position = 0.5 colour = "0.7,0.7,0.2" /> 42 <BarColour position = 1.0 colour = "0.2,0.7,0.2" /> 43 </HUDRocketFuelBar> 26 44 </OverlayGroup> 27 45 </Template> -
code/branches/fabienHS15/src/modules/overlays/CMakeLists.txt
r7163 r10814 16 16 LINK_LIBRARIES 17 17 orxonox 18 weapons 18 19 SOURCE_FILES ${OVERLAYS_SRC_FILES} 19 20 ) -
code/branches/fabienHS15/src/modules/overlays/OverlaysPrereqs.h
r9939 r10814 90 90 class HUDRadar; 91 91 class HUDSpeedBar; 92 class HUDShieldBar; 92 93 class HUDBoostBar; 94 class HUDRocketFuelBar; 93 95 class HUDTimer; 94 96 class HUDAimAssistant; -
code/branches/fabienHS15/src/modules/overlays/hud/CMakeLists.txt
r10746 r10814 7 7 HUDShieldBar.cc 8 8 HUDHealthBar.cc 9 HUDRocketFuelBar.cc 9 10 HUDTimer.cc 10 11 HUDEnemyHealthBar.cc -
code/branches/fabienHS15/src/modules/weapons/WeaponsPrereqs.h
r10622 r10814 69 69 { 70 70 class MuzzleFlash; 71 class IceGunFreezer; 72 class RocketController; 71 73 72 74 // munitions 73 75 class FusionMunition; 74 76 class LaserMunition; 75 class ReplenishingMunition;76 77 class RocketMunition; 77 78 class GravityBombMuntion; 79 class IceMunition; 80 class LightningMunition; 81 class SplitMunition; 78 82 79 83 // projectiles … … 81 85 class LightningGunProjectile; 82 86 class ParticleProjectile; 87 class IceProjectile; 88 class SplitProjectile; 83 89 class Projectile; 90 class BasicProjectile; 84 91 class Rocket; 85 92 class RocketOld; … … 91 98 class FusionFire; 92 99 class HsW01; 100 class IceGun; 101 class SplitGun; 93 102 class LaserFire; 94 103 class LightningGun; -
code/branches/fabienHS15/src/modules/weapons/projectiles/Rocket.cc
r10795 r10814 66 66 67 67 this->localAngularVelocity_ = 0; 68 this->lifetime_ = 100.0f;68 this->lifetime_ = 20.0f; 69 69 70 70 if (GameMode::isMaster()) … … 100 100 this->attachCollisionShape(collisionShape); 101 101 102 this->destroyTimer_.setTimer(this->lifetime_, false, createExecutor(createFunctor(&BasicProjectile::destroyObject, this)));103 104 102 // Add sound 105 103 this->defSndWpnEngine_ = new WorldSound(this->getContext()); … … 114 112 this->defSndWpnLaunch_->setVolume(1.0f); 115 113 this->attach(defSndWpnLaunch_); 114 115 this->setHudTemplate("rockethud"); 116 116 } 117 117 else … … 320 320 } 321 321 322 float Rocket::getFuel() const 323 { 324 return this->destroyTimer_.getRemainingTime(); 325 } 326 327 void Rocket::setMaxFuel(float fuel) 328 { 329 this->lifetime_ = fuel; 330 this->destroyTimer_.setTimer(this->lifetime_, false, createExecutor(createFunctor(&BasicProjectile::destroyObject, this))); 331 } 322 332 } -
code/branches/fabienHS15/src/modules/weapons/projectiles/Rocket.h
r10216 r10814 118 118 virtual void fired(unsigned int firemode); 119 119 120 /** 121 @brief Set the maximum lifetime of the rocket. 122 */ 123 virtual void setMaxFuel(float fuel); 124 /** 125 @brief Get the maximum lifetime of the rocket. 126 */ 127 inline float getMaxFuel() const 128 { return lifetime_; } 129 virtual float getFuel() const; 130 120 131 private: 121 132 Vector3 localAngularVelocity_; //!< Variable to temporarily store accumulated steering command input. -
code/branches/fabienHS15/src/modules/weapons/weaponmodes/RocketFire.cc
r10794 r10814 41 41 #include "weaponsystem/WeaponSystem.h" 42 42 #include "worldentities/pawns/Pawn.h" 43 43 #include "core/XMLPort.h" 44 44 #include "weapons/projectiles/Rocket.h" 45 45 … … 56 56 this->damage_ = 0.0f; 57 57 this->speed_ = 500.0f; 58 this->fuel_ = 10.0f; 58 59 59 60 this->setMunitionName("RocketMunition"); … … 65 66 RocketFire::~RocketFire() 66 67 { 68 } 69 70 /** 71 @brief 72 XMLPort for the RocketFire. You can define the maximum lifetime of the rockets 73 */ 74 void RocketFire::XMLPort(Element& xmlelement, XMLPort::Mode mode) 75 { 76 SUPER(RocketFire, XMLPort, xmlelement, mode); 77 78 XMLPortParam(RocketFire, "fuel", setFuel, getFuel, xmlelement, mode); 67 79 } 68 80 … … 85 97 rocket->setShieldDamage(this->getShieldDamage()); 86 98 rocket->setHealthDamage(this->getHealthDamage()); 99 rocket->setMaxFuel(this->fuel_); 87 100 } 88 101 } -
code/branches/fabienHS15/src/modules/weapons/weaponmodes/RocketFire.h
r9667 r10814 54 54 virtual ~RocketFire(); 55 55 56 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 57 56 58 virtual void fire(); 59 inline void setFuel(float fuel) 60 { this->fuel_ = fuel; } 61 inline float getFuel() const 62 { return this->fuel_; } 57 63 58 64 private: 59 65 float speed_; //!< The speed of the Rocket. 66 float fuel_; //!< The maximum lifetime of the rocket 60 67 }; 61 68 } -
code/branches/fabienHS15/src/modules/weapons/weaponmodes/SplitGun.cc
r10688 r10814 35 35 36 36 #include "core/CoreIncludes.h" 37 #include "core/XMLPort.h" 37 #include "core/XMLPort.h" 38 38 #include "weaponsystem/Weapon.h" 39 39 #include "weaponsystem/WeaponPack.h" -
code/branches/fabienHS15/src/orxonox/OrxonoxPrereqs.h
r10624 r10814 167 167 class DefaultWeaponmodeLink; 168 168 class Munition; 169 class ReplenishingMunition; 169 170 class Weapon; 170 171 class WeaponMode; -
code/branches/fabienHS15/src/orxonox/infos/PlayerInfo.cc
r10624 r10814 202 202 203 203 this->changedControllableEntity(); 204 205 // HACK-ish 206 if(this->isHumanPlayer()) 207 entity->createHud(); 204 208 } 205 209 … … 252 256 if( !entity || this->previousControllableEntity_.size() == 0 ) 253 257 return; 258 259 entity->destroyHud(); // HACK-ish 254 260 255 261 this->controllableEntity_->setController(0); -
code/branches/fabienHS15/src/orxonox/worldentities/pawns/Pawn.cc
r10791 r10814 143 143 XMLPortObject(Pawn, Munition, "munition", addMunitionXML, getMunitionXML, xmlelement, mode); 144 144 145 XMLPortParam(Pawn, " reloadrate", setShieldRechargeRate, getShieldRechargeRate, xmlelement, mode).defaultValues(0);146 XMLPortParam(Pawn, " reloadwaittime", setShieldRechargeWaitTime, getShieldRechargeWaitTime, xmlelement, mode).defaultValues(1.0f);145 XMLPortParam(Pawn, "shieldrechargerate", setShieldRechargeRate, getShieldRechargeRate, xmlelement, mode).defaultValues(0); 146 XMLPortParam(Pawn, "shieldrechargewaittime", setShieldRechargeWaitTime, getShieldRechargeWaitTime, xmlelement, mode).defaultValues(1.0f); 147 147 148 148 XMLPortParam(Pawn, "explosionSound", setExplosionSound, getExplosionSound, xmlelement, mode); -
code/branches/fabienHS15/src/orxonox/worldentities/pawns/Pawn.h
r10791 r10814 46 46 or below zero. If it is, the pawn gets killed. 47 47 48 Pawns can carry pickups and fire weapons. The can also have shields.48 Pawns can carry pickups and fire weapons. They can also have shields. 49 49 50 50 Notice that every Pawn is a ControllableEntity.
Note: See TracChangeset
for help on using the changeset viewer.