Changeset 6950 for code/branches/rocket/src/modules/weapons/weaponmodes
- Timestamp:
- May 21, 2010, 9:40:14 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/rocket/src/modules/weapons/weaponmodes/SimpleRocketFire.cc
r6943 r6950 49 49 this->bParallelReload_ = false; 50 50 this->damage_ = 100; 51 this->speed_ = 1 ;51 this->speed_ = 100; 52 52 53 53 this->setMunitionName("LaserMunition"); … … 64 64 SimpleRocket* rocket = con->getRocket(); 65 65 this->computeMuzzleParameters(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getAimPosition()); 66 rocket->setOrientation(this->getMuzzleOrientation()); 67 Vector3 pos = this->getMuzzlePosition() + (this->getMuzzleOrientation()* Vector3(-2, -3, -2)); 66 // rocket->setOrientation(this->getMuzzleOrientation()); 67 rocket->setOrientation(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getWorldOrientation()); 68 Vector3 pos = this->getMuzzlePosition(); 68 69 rocket->setPosition(pos); 69 rocket->setAcceleration(20*rocket->getOrientation() * WorldEntity::FRONT);70 // rocket->setAcceleration(20*rocket->getOrientation() * WorldEntity::FRONT); 70 71 rocket->setVelocity(this->getMuzzleDirection()*this->speed_); 71 72 rocket->setOwner(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn());
Note: See TracChangeset
for help on using the changeset viewer.