Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 15, 2010, 3:35:31 PM (14 years ago)
Author:
scheusso
Message:

correcting initial speed of projectiles

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/weapons/weaponmodes/HsW01.cc

    r6417 r6732  
    122122        projectile->setOrientation(this->getMuzzleOrientation());
    123123        projectile->setPosition(this->getMuzzlePosition());
    124         projectile->setVelocity(this->getMuzzleDirection() * this->speed_);
     124        projectile->setVelocity(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getVelocity() + this->getMuzzleDirection() * this->speed_);
    125125
    126126        projectile->setOwner(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn());
Note: See TracChangeset for help on using the changeset viewer.