- Timestamp:
- May 25, 2011, 9:22:53 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/src/modules/weapons/weaponmodes/SimpleRocketFire.cc
r7846 r8578 23 23 * Oliver Scheuss 24 24 * Co-authors: 25 * ...25 * simonmie 26 26 * 27 27 */ … … 50 50 this->reloadTime_ = 1; 51 51 this->bParallelReload_ = false; 52 this->damage_ = 100;52 this->damage_ = 0; 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 target 65 */ 64 66 void SimpleRocketFire::fire() 65 67 { … … 71 73 rocket->setVelocity(this->getMuzzleDirection()*this->speed_); 72 74 rocket->setOwner(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()); 75 73 76 rocket->setDamage(this->damage_); 77 rocket->setShieldDamage(this->getShieldDamage()); 78 rocket->setHealthDamage(this->getHealthDamage()); 79 74 80 WorldEntity* pawnn=static_cast<ControllableEntity*>(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn())->getTarget(); 75 81 if (pawnn) con->setTarget(pawnn);
Note: See TracChangeset
for help on using the changeset viewer.