- Timestamp:
- Apr 15, 2010, 3:35:31 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/weapons/weaponmodes/EnergyDrink.cc
r5929 r6732 39 39 #include "weaponsystem/WeaponPack.h" 40 40 #include "weaponsystem/WeaponSystem.h" 41 #include "worldentities/pawns/Pawn.h" 41 42 42 43 namespace orxonox … … 107 108 projectile->setOrientation(this->getMuzzleOrientation()); 108 109 projectile->setPosition(this->getMuzzlePosition()); 109 projectile->setVelocity(this->get MuzzleDirection() * this->speed_);110 projectile->setVelocity(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getVelocity() + this->getMuzzleDirection() * this->speed_); 110 111 111 112 projectile->setOwner(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn());
Note: See TracChangeset
for help on using the changeset viewer.