Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 23, 2015, 4:19:02 PM (9 years ago)
Author:
meggiman
Message:

Implemented all necessary classes. No the weapon works without bugs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/weaponFS15/src/modules/weapons/weaponmodes/GravityBombFire.cc

    r10369 r10391  
    2626                this->bParallelReload_ = false;
    2727                this->damage_ = 0.0f;
    28                 this->speed_ = 200.0f;
    29                 this->slowDownRate_ = -10.0f;
     28                this->speed_ = 100.0f;
    3029
    3130                this->setMunitionName("GravityBombMunition");
     
    4140        bomb->setOrientation(this->getMuzzleOrientation());
    4241        bomb->setPosition(this->getMuzzlePosition());
    43         bomb->setVelocity(this->getMuzzleDirection() * this->speed_);
    44         bomb->setAcceleration(this->getMuzzleDirection()* this->slowDownRate_);
     42        bomb->setVelocity(this->getMuzzleDirection() * (this->speed_+this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getVelocity().length()));
    4543
    4644        bomb->setShooter(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn());
Note: See TracChangeset for help on using the changeset viewer.