Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 20, 2010, 9:04:46 PM (15 years ago)
Author:
gnadler
Message:
 
File:
1 edited

Legend:

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

    r6905 r6943  
    4949        this->bParallelReload_ = false;
    5050        this->damage_ = 100;
    51         this->speed_ = 50;
     51        this->speed_ = 1;
    5252
    5353        this->setMunitionName("LaserMunition");
     
    6767                Vector3 pos = this->getMuzzlePosition() + (this->getMuzzleOrientation()* Vector3(-2, -3, -2));
    6868        rocket->setPosition(pos);
     69                rocket->setAcceleration(20*rocket->getOrientation() * WorldEntity::FRONT);
    6970                rocket->setVelocity(this->getMuzzleDirection()*this->speed_);
    7071                rocket->setOwner(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn());
    7172                rocket->setDamage(this->damage_);
    72                 WorldEntity* pawnn=(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getTarget());
     73                WorldEntity* pawnn=this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getTarget();
    7374                if (pawnn) {
    7475                con->setTarget(pawnn);
Note: See TracChangeset for help on using the changeset viewer.