- Timestamp:
- Nov 25, 2009, 6:04:10 PM (15 years ago)
- Location:
- code/branches/presentation2/src/modules/weapons/weaponmodes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/modules/weapons/weaponmodes/LightningGun.cc
r5781 r6153 59 59 projectile->setMaterial("Flares/LightningBall_"); 60 60 61 this->computeMuzzleParameters(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getAimPosition()); 61 62 projectile->setOrientation(this->getMuzzleOrientation()); 62 63 projectile->setPosition(this->getMuzzlePosition()); -
code/branches/presentation2/src/modules/weapons/weaponmodes/RocketFire.cc
r6107 r6153 36 36 #include "weaponsystem/WeaponPack.h" 37 37 #include "weaponsystem/WeaponSystem.h" 38 #include "worldentities/pawns/Pawn.h" 38 39 39 40 namespace orxonox … … 57 58 Rocket* rocket = new Rocket(this); 58 59 60 this->computeMuzzleParameters(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getAimPosition()); 59 61 rocket->setOrientation(this->getMuzzleOrientation()); 60 62 rocket->setPosition(this->getMuzzlePosition());
Note: See TracChangeset
for help on using the changeset viewer.