- Timestamp:
- Dec 4, 2009, 3:52:28 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/modules/weapons/weaponmodes/HsW01.cc
r6227 r6245 52 52 RegisterObject(HsW01); 53 53 54 this->reloadTime_ = 0. 5;54 this->reloadTime_ = 0.25; 55 55 this->damage_ = 15; 56 56 this->speed_ = 2500; … … 61 61 this->delayTimer_.stopTimer(); 62 62 63 this->defSndWpnFire_ = new WorldSound(this); 64 this->defSndWpnFire_->setLooping(false); 65 this->setDefaultSound("sounds/Weapon_Laser_shrt.ogg"); 63 this->setDefaultSound("sounds/Weapon_HsW01.ogg"); 66 64 } 67 65 68 66 HsW01::~HsW01() 69 67 { 70 if(this->isInitialized())71 {72 delete this->defSndWpnFire_;73 }74 68 } 75 69 … … 106 100 void HsW01::fire() 107 101 { 108 this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->attach(this->defSndWpnFire_);109 this->defSndWpnFire_->play();110 111 102 this->delayTimer_.startTimer(); 112 113 //this->defSndWpnFire_->stop();114 103 } 115 104 … … 142 131 HsW01::muendungsfeuer(); 143 132 } 144 145 void HsW01::setDefaultSound(const std::string& soundPath)146 {147 this->defSndWpnFire_->setSource(soundPath);148 }149 150 const std::string& HsW01::getDefaultSound()151 {152 return this->defSndWpnFire_->getSource();153 }154 133 }
Note: See TracChangeset
for help on using the changeset viewer.