Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 28, 2016, 3:09:26 PM (8 years ago)
Author:
sagerj
Message:

overwritten many fire functions now only need to implement timer/charges

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/sagerjFS16/src/modules/weapons/weaponmodes/Discharger.cc

    r11174 r11175  
    5454        this->damage_ = 90.01f;
    5555        this->speed_ = 90.01f;
    56         this->chargeable_ = 0;
     56        this->chargeable_ = true;
    5757
    5858        this->setMunitionName("LaserMunition");
     
    6565    void Discharger::fire()
    6666    {
    67         orxout() << "release" << cTime_ << endl;
     67        // orxout() << "release" << cTime_ << endl;
    6868        BillboardProjectile* projectile = new BillboardProjectile(this->getContext());
    6969
     
    7171        projectile->setOrientation(this->getMuzzleOrientation());
    7272        projectile->setPosition(this->getMuzzlePosition());
    73         projectile->setVelocity(this->getMuzzleDirection() * this->speed_ * charges_);
     73        projectile->setVelocity(this->getMuzzleDirection() * this->speed_);
    7474
    7575        projectile->setShooter(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn());
    7676        projectile->setDamage(this->getDamage() * charges_);
    77         projectile->setShieldDamage(this->getShieldDamage() * charges_);
    78         projectile->setHealthDamage(this->getHealthDamage() * charges_);
    79         this->charges_ = 0;
     77        projectile->setShieldDamage(this->getShieldDamage());
     78        projectile->setHealthDamage(this->getHealthDamage());
     79        //  this->charges_ = 0;
    8080    }
    8181}
Note: See TracChangeset for help on using the changeset viewer.