- Timestamp:
- Nov 26, 2008, 2:17:18 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/weapon2/src/orxonox/objects/weaponSystem/weapons/LaserGun.cc
r2232 r2272 46 46 //this->setLoadingTime(0.5); 47 47 48 // Hack --> willbe loaded by XML48 //how could it be loaded by XML 49 49 this->attachNeededMunition("LaserGunMunition"); 50 50 } … … 58 58 if ( this->getBulletReadyToShoot() && this->getMagazineReadyToShoot() ) 59 59 { 60 61 62 63 60 //take munition 64 61 this->getAttachedMunition()->removeBullets(1,this); … … 67 64 68 65 //create projectile 69 BillboardProjectile* projectile = new ParticleProjectile(this,this); 66 BillboardProjectile* projectile = new ParticleProjectile(this); 67 projectile->setOrientation(projectile->getOrientation()); 68 projectile->setPosition(projectile->getWorldPosition()); 69 projectile->setVelocity(WorldEntity::FRONT * this->speed_); 70 70 71 //projectile->setColour(this->getProjectileColour()); 71 72 }
Note: See TracChangeset
for help on using the changeset viewer.