Changeset 6943 for code/branches/rocket/src/modules/weapons/weaponmodes
- Timestamp:
- May 20, 2010, 9:04:46 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/rocket/src/modules/weapons/weaponmodes/SimpleRocketFire.cc
r6905 r6943 49 49 this->bParallelReload_ = false; 50 50 this->damage_ = 100; 51 this->speed_ = 50;51 this->speed_ = 1; 52 52 53 53 this->setMunitionName("LaserMunition"); … … 67 67 Vector3 pos = this->getMuzzlePosition() + (this->getMuzzleOrientation()* Vector3(-2, -3, -2)); 68 68 rocket->setPosition(pos); 69 rocket->setAcceleration(20*rocket->getOrientation() * WorldEntity::FRONT); 69 70 rocket->setVelocity(this->getMuzzleDirection()*this->speed_); 70 71 rocket->setOwner(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()); 71 72 rocket->setDamage(this->damage_); 72 WorldEntity* pawnn= (this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getTarget());73 WorldEntity* pawnn=this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getTarget(); 73 74 if (pawnn) { 74 75 con->setTarget(pawnn);
Note: See TracChangeset
for help on using the changeset viewer.