Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 10, 2008, 5:30:39 PM (16 years ago)
Author:
polakma
Message:

fixed projectile, particle effect, reloadingTimer and magazineTimer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/weapon2/src/orxonox/objects/weaponSystem/weapons/LaserGun.cc

    r2379 r2391  
    4444    {
    4545        RegisterObject(LaserGun);
     46
     47        //in future XMLPort
     48        this->speed_ = 250;
     49
    4650    }
    4751
     
    5256    void LaserGun::takeBullets()
    5357    {
    54         this->munition_->removeBullets(1,this);
     58COUT(0) << "LaserGun::takeBullets" << std::endl;
     59        this->munition_->removeBullets(1);
    5560        this->bulletTimer(this->bulletLoadingTime_);
    5661    }
     
    6469    void LaserGun::createProjectile()
    6570    {
     71COUT(0) << "LaserGun::createProjectile" << std::endl;
    6672        BillboardProjectile* projectile = new ParticleProjectile(this);
    67         projectile->setOrientation(projectile->getOrientation());
    68         projectile->setPosition(projectile->getWorldPosition());
     73        projectile->setOrientation(this->getWorldOrientation());
     74        projectile->setPosition(this->getWorldPosition());
    6975        projectile->setVelocity(WorldEntity::FRONT * this->speed_);
    7076    }
Note: See TracChangeset for help on using the changeset viewer.