Changeset 6905 for code/branches/rocket/src/modules/weapons/weaponmodes
- Timestamp:
- May 15, 2010, 6:12:13 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/rocket/src/modules/weapons/weaponmodes/SimpleRocketFire.cc
r6900 r6905 69 69 rocket->setVelocity(this->getMuzzleDirection()*this->speed_); 70 70 rocket->setOwner(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()); 71 rocket->setDamage(this->damage_); 72 WorldEntity* pawnn=(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getTarget()); 73 if (pawnn) { 74 con->setTarget(pawnn); 75 } 71 76 } 72 77 }
Note: See TracChangeset
for help on using the changeset viewer.