Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 26, 2016, 3:58:37 PM (8 years ago)
Author:
sagerj
Message:

zusammengemerged mit florin project

File:
1 edited

Legend:

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

    r11189 r11205  
    6767        BillboardProjectile* projectile = new BillboardProjectile(this->getContext());
    6868
     69        if(this->charges_ < this->thresholdOne_)
     70        {
     71            projectile->setMaterial("Flares/lensflare");
     72        }
     73        else
     74        {
     75            if(this->charges_ < this->thresholdTwo_)
     76            {
     77                projectile->setMaterial("Flares/ringflare");
     78            }
     79            else
     80            {
     81                projectile->setMaterial("Flares/ringflare2"); 
     82            }
     83        }
     84
     85        projectile->setScale(1+this->charges_/10);
     86
    6987        this->computeMuzzleParameters(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getAimPosition());
    7088        projectile->setOrientation(this->getMuzzleOrientation());
Note: See TracChangeset for help on using the changeset viewer.