- Timestamp:
- Apr 23, 2015, 4:19:02 PM (10 years ago)
- Location:
- code/branches/weaponFS15/src/modules/weapons/weaponmodes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/weaponFS15/src/modules/weapons/weaponmodes/GravityBombFire.cc
r10369 r10391 26 26 this->bParallelReload_ = false; 27 27 this->damage_ = 0.0f; 28 this->speed_ = 200.0f; 29 this->slowDownRate_ = -10.0f; 28 this->speed_ = 100.0f; 30 29 31 30 this->setMunitionName("GravityBombMunition"); … … 41 40 bomb->setOrientation(this->getMuzzleOrientation()); 42 41 bomb->setPosition(this->getMuzzlePosition()); 43 bomb->setVelocity(this->getMuzzleDirection() * this->speed_); 44 bomb->setAcceleration(this->getMuzzleDirection()* this->slowDownRate_); 42 bomb->setVelocity(this->getMuzzleDirection() * (this->speed_+this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getVelocity().length())); 45 43 46 44 bomb->setShooter(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()); -
code/branches/weaponFS15/src/modules/weapons/weaponmodes/GravityBombFire.h
r10369 r10391 58 58 private: 59 59 float speed_; //!< The initial speed of the bomb when it is launched. 60 float slowDownRate_;61 60 }; 62 61 }
Note: See TracChangeset
for help on using the changeset viewer.