- Timestamp:
- Dec 10, 2008, 5:30:39 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/weapon2/src/orxonox/objects/weaponSystem/weapons/LaserGun.cc
r2379 r2391 44 44 { 45 45 RegisterObject(LaserGun); 46 47 //in future XMLPort 48 this->speed_ = 250; 49 46 50 } 47 51 … … 52 56 void LaserGun::takeBullets() 53 57 { 54 this->munition_->removeBullets(1,this); 58 COUT(0) << "LaserGun::takeBullets" << std::endl; 59 this->munition_->removeBullets(1); 55 60 this->bulletTimer(this->bulletLoadingTime_); 56 61 } … … 64 69 void LaserGun::createProjectile() 65 70 { 71 COUT(0) << "LaserGun::createProjectile" << std::endl; 66 72 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()); 69 75 projectile->setVelocity(WorldEntity::FRONT * this->speed_); 70 76 }
Note: See TracChangeset
for help on using the changeset viewer.