Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/rocket/src/modules/weapons/weaponmodes/SimpleRocketFire.cc

    r6950 r6943  
    4949        this->bParallelReload_ = false;
    5050        this->damage_ = 100;
    51         this->speed_ = 100;
     51        this->speed_ = 1;
    5252
    5353        this->setMunitionName("LaserMunition");
     
    6464                SimpleRocket* rocket = con->getRocket();
    6565                this->computeMuzzleParameters(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getAimPosition());
    66 //              rocket->setOrientation(this->getMuzzleOrientation());
    67         rocket->setOrientation(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getWorldOrientation());
    68                 Vector3 pos = this->getMuzzlePosition();
     66                rocket->setOrientation(this->getMuzzleOrientation());
     67                Vector3 pos = this->getMuzzlePosition() + (this->getMuzzleOrientation()* Vector3(-2, -3, -2));
    6968        rocket->setPosition(pos);
    70 //              rocket->setAcceleration(20*rocket->getOrientation() * WorldEntity::FRONT);
     69                rocket->setAcceleration(20*rocket->getOrientation() * WorldEntity::FRONT);
    7170                rocket->setVelocity(this->getMuzzleDirection()*this->speed_);
    7271                rocket->setOwner(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn());
Note: See TracChangeset for help on using the changeset viewer.