Changeset 6732 for code/trunk/src/modules
- Timestamp:
- Apr 15, 2010, 3:35:31 PM (15 years ago)
- Location:
- code/trunk/src/modules/weapons/weaponmodes
- Files:
-
- 6 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()); -
code/trunk/src/modules/weapons/weaponmodes/FusionFire.cc
r5781 r6732 36 36 #include "weaponsystem/WeaponPack.h" 37 37 #include "weaponsystem/WeaponSystem.h" 38 #include "worldentities/pawns/Pawn.h" 38 39 39 40 namespace orxonox … … 59 60 projectile->setOrientation(this->getMuzzleOrientation()); 60 61 projectile->setPosition(this->getMuzzlePosition()); 61 projectile->setVelocity(this->get MuzzleDirection() * this->speed_);62 projectile->setVelocity(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getVelocity() + this->getMuzzleDirection() * this->speed_); 62 63 projectile->scale(5); 63 64 -
code/trunk/src/modules/weapons/weaponmodes/HsW01.cc
r6417 r6732 122 122 projectile->setOrientation(this->getMuzzleOrientation()); 123 123 projectile->setPosition(this->getMuzzlePosition()); 124 projectile->setVelocity(this->get MuzzleDirection() * this->speed_);124 projectile->setVelocity(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getVelocity() + this->getMuzzleDirection() * this->speed_); 125 125 126 126 projectile->setOwner(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()); -
code/trunk/src/modules/weapons/weaponmodes/LaserFire.cc
r5781 r6732 34 34 #include "weaponsystem/WeaponPack.h" 35 35 #include "weaponsystem/WeaponSystem.h" 36 #include "worldentities/pawns/Pawn.h" 36 37 37 38 namespace orxonox … … 56 57 projectile->setOrientation(this->getMuzzleOrientation()); 57 58 projectile->setPosition(this->getMuzzlePosition()); 58 projectile->setVelocity(this->get MuzzleDirection() * this->speed_);59 projectile->setVelocity(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getVelocity() + this->getMuzzleDirection() * this->speed_); 59 60 60 61 projectile->setOwner(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()); -
code/trunk/src/modules/weapons/weaponmodes/LightningGun.cc
r6417 r6732 64 64 projectile->setOrientation(this->getMuzzleOrientation()); 65 65 projectile->setPosition(this->getMuzzlePosition()); 66 projectile->setVelocity(this->get MuzzleDirection() * this->speed_);66 projectile->setVelocity(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getVelocity() + this->getMuzzleDirection() * this->speed_); 67 67 projectile->setAcceleration(this->getMuzzleDirection() * 1000); 68 68 -
code/trunk/src/modules/weapons/weaponmodes/RocketFire.cc
r6502 r6732 66 66 rocket->setOrientation(this->getMuzzleOrientation()); 67 67 rocket->setPosition(this->getMuzzlePosition()); 68 rocket->setVelocity(this->get MuzzleDirection() * this->speed_);68 rocket->setVelocity(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getVelocity() + this->getMuzzleDirection() * this->speed_); 69 69 rocket->scale(2); 70 70
Note: See TracChangeset
for help on using the changeset viewer.