- Timestamp:
- Nov 19, 2008, 7:07:36 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/weapon2/src/orxonox/objects/weaponSystem/weapons/LaserGun.cc
r2203 r2232 44 44 45 45 //set weapon properties here 46 this->setLoadingTime(0.5);46 //this->setLoadingTime(0.5); 47 47 48 48 //Hack --> will be loaded by XML … … 56 56 void LaserGun::fire() 57 57 { 58 if ( this->get WeaponReadyToShoot() )58 if ( this->getBulletReadyToShoot() && this->getMagazineReadyToShoot() ) 59 59 { 60 this->setWeaponReadyToShoot(false);61 60 62 Weapon::timer(); 61 63 62 64 63 //take munition 65 this->getAttachedMunition()->decrementBullets(); 64 this->getAttachedMunition()->removeBullets(1,this); 65 Weapon::bulletTimer(); 66 this->setBulletReadyToShoot(false); 66 67 67 68 //create projectile 68 //BillboardProjectile* projectile = new ParticleProjectile(this);69 BillboardProjectile* projectile = new ParticleProjectile(this,this); 69 70 //projectile->setColour(this->getProjectileColour()); 70 71 }
Note: See TracChangeset
for help on using the changeset viewer.