Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 15, 2010, 6:12:13 PM (15 years ago)
Author:
gnadler
Message:

rockets get target but moveToPosition function does not work correctly.

File:
1 edited

Legend:

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

    r6900 r6905  
    6969                rocket->setVelocity(this->getMuzzleDirection()*this->speed_);
    7070                rocket->setOwner(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn());
     71                rocket->setDamage(this->damage_);
     72                WorldEntity* pawnn=(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getTarget());
     73                if (pawnn) {
     74                con->setTarget(pawnn);
     75                }
    7176    }
    7277}
Note: See TracChangeset for help on using the changeset viewer.