- Timestamp:
- May 25, 2011, 9:28:29 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.