- Timestamp:
- May 25, 2011, 9:28:29 PM (14 years ago)
- Location:
- code/branches/presentation/src/modules/weapons/weaponmodes
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/src/modules/weapons/weaponmodes/EnergyDrink.cc
r8578 r8579 23 23 * Hagen Seifert 24 24 * Co-authors: 25 * simonmie25 * ... 26 26 * 27 27 */ … … 50 50 51 51 this->reloadTime_ = 0.25; 52 this->damage_ = 0; //default 1552 this->damage_ = 15; 53 53 this->speed_ = 2500; 54 54 this->delay_ = 0; … … 97 97 } 98 98 99 /* Creates the projectile object, sets its properties to the EnergyDrink properties, calls muendungsfeuer()100 */101 99 void EnergyDrink::shot() 102 100 { … … 114 112 projectile->setOwner(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()); 115 113 projectile->setDamage(this->getDamage()); 116 projectile->setShieldDamage(this->getShieldDamage());117 projectile->setHealthDamage(this->getHealthDamage());118 114 119 115 EnergyDrink::muendungsfeuer(); -
code/branches/presentation/src/modules/weapons/weaponmodes/FusionFire.cc
r8578 r8579 23 23 * Martin Polak 24 24 * Co-authors: 25 * simonmie25 * ... 26 26 * 27 27 */ … … 48 48 this->reloadTime_ = 1.0; 49 49 this->bParallelReload_ = false; 50 this->damage_ = 0; //default 4050 this->damage_ = 40; 51 51 this->speed_ = 1250; 52 52 … … 54 54 } 55 55 56 /* Creates the projectile (BillboardProjectile) object, sets its properties to the FusionFire properties57 */58 56 void FusionFire::fire() 59 57 { … … 67 65 projectile->setOwner(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()); 68 66 projectile->setDamage(this->getDamage()); 69 projectile->setShieldDamage(this->getShieldDamage());70 projectile->setHealthDamage(this->getHealthDamage());71 72 67 projectile->setColour(ColourValue(1.0f, 0.7f, 0.3f, 1.0f)); 73 68 } -
code/branches/presentation/src/modules/weapons/weaponmodes/HsW01.cc
r8578 r8579 23 23 * Hagen Seifert 24 24 * Co-authors: 25 * simonmie25 * ... 26 26 * 27 27 */ … … 51 51 52 52 this->reloadTime_ = 0.25; 53 this->damage_ = 0; //default 1553 this->damage_ = 15; 54 54 this->speed_ = 2500; 55 55 this->delay_ = 0; … … 109 109 } 110 110 111 /* Creates the projectile object, sets its properties to the HsW01 properties, calls muendungsfeuer()112 */113 111 void HsW01::shot() 114 112 { … … 128 126 projectile->setOwner(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()); 129 127 projectile->setDamage(this->getDamage()); 130 projectile->setShieldDamage(this->getShieldDamage());131 projectile->setHealthDamage(this->getHealthDamage());132 128 133 129 HsW01::muendungsfeuer(); -
code/branches/presentation/src/modules/weapons/weaponmodes/LaserFire.cc
r8578 r8579 23 23 * Martin Polak 24 24 * Co-authors: 25 * simonmie25 * ... 26 26 * 27 27 */ … … 45 45 46 46 this->reloadTime_ = 0.25; 47 this->damage_ = 0; //default 1547 this->damage_ = 15; 48 48 this->speed_ = 1250; 49 49 … … 51 51 } 52 52 53 /* Creates the projectile object, sets its properties to the LaserFire properties54 */55 53 void LaserFire::fire() 56 54 { … … 63 61 projectile->setOwner(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()); 64 62 projectile->setDamage(this->getDamage()); 65 projectile->setShieldDamage(this->getShieldDamage());66 projectile->setHealthDamage(this->getHealthDamage());67 63 } 68 64 } -
code/branches/presentation/src/modules/weapons/weaponmodes/LightningGun.cc
r8578 r8579 23 23 * Joel Smely 24 24 * Co-authors: 25 * simonmie25 * ... 26 26 * 27 27 */ … … 45 45 46 46 this->reloadTime_ = 1; 47 this->damage_ = 0; //default 10047 this->damage_ = 100; 48 48 this->speed_ = 150; 49 49 … … 56 56 } 57 57 58 /* Creates the projectile (LightningGunProjectile) object, sets its properties to the LightningGun properties59 */60 58 void LightningGun::fire() 61 59 { … … 71 69 projectile->setOwner(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()); 72 70 projectile->setDamage(this->getDamage()); 73 projectile->setShieldDamage(this->getShieldDamage());74 projectile->setHealthDamage(this->getHealthDamage());75 71 } 76 72 } -
code/branches/presentation/src/modules/weapons/weaponmodes/RocketFire.cc
r8578 r8579 23 23 * Oliver Scheuss 24 24 * Co-authors: 25 * simonmie25 * ... 26 26 * 27 27 */ … … 48 48 this->reloadTime_ = 0.20f; 49 49 this->bParallelReload_ = false; 50 this->damage_ = 0;50 this->damage_ = 100; 51 51 this->speed_ = 500; 52 52 … … 59 59 } 60 60 61 /* Creates the Rocket object, sets its properties to the RocketFire properties62 */63 61 void RocketFire::fire() 64 62 { … … 73 71 rocket->setOwner(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()); 74 72 rocket->setDamage(this->getDamage()); 75 rocket->setShieldDamage(this->getShieldDamage());76 rocket->setHealthDamage(this->getHealthDamage());77 73 } 78 74 } -
code/branches/presentation/src/modules/weapons/weaponmodes/SimpleRocketFire.cc
r8578 r8579 23 23 * Oliver Scheuss 24 24 * Co-authors: 25 * simonmie25 * ... 26 26 * 27 27 */ … … 50 50 this->reloadTime_ = 1; 51 51 this->bParallelReload_ = false; 52 this->damage_ = 0;52 this->damage_ = 100; 53 53 this->speed_ = 500; 54 54 … … 62 62 } 63 63 64 /* Creates the Rocket (RocketController) object, sets its properties to the SimpleRocketFire properties, sets target65 */66 64 void SimpleRocketFire::fire() 67 65 { … … 73 71 rocket->setVelocity(this->getMuzzleDirection()*this->speed_); 74 72 rocket->setOwner(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()); 75 76 73 rocket->setDamage(this->damage_); 77 rocket->setShieldDamage(this->getShieldDamage());78 rocket->setHealthDamage(this->getHealthDamage());79 80 74 WorldEntity* pawnn=static_cast<ControllableEntity*>(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn())->getTarget(); 81 75 if (pawnn) con->setTarget(pawnn);
Note: See TracChangeset
for help on using the changeset viewer.