Changeset 10712 in orxonox.OLD for branches/presentation/src/world_entities/weapons/bsp_weapon.cc
- Timestamp:
- Jun 18, 2007, 9:27:34 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/weapons/bsp_weapon.cc
r10711 r10712 22 22 #include "environments/bsp_entity.h" 23 23 #include "loading/fast_factory.h" 24 #include "sound_engine.h" 24 25 25 26 ObjectListDefinition(BspWeapon); … … 41 42 BspWeapon::~BspWeapon () 42 43 { 43 // will be deleted 44 if ( soundSource_shoot.isPlaying() ) 45 soundSource_shoot.stop(); 44 46 } 45 47 … … 125 127 this->aimingSystem->setParent( this ); 126 128 this->aimingSystem->toList(list); 129 130 this->soundSource_shoot.setSourceNode(this); 131 this->soundBuffer_shoot = OrxSound::ResourceSoundBuffer("sounds/explosions/doulette.wav"); 127 132 128 133 } … … 130 135 void BspWeapon::shoot() 131 136 { 132 //gunFirExpl.explode(gunFire1,Vector(2,2,2)); 133 //gunFirExpl.explode(gunFire2,Vector(2,2,2));134 137 138 soundSource_shoot.play( soundBuffer_shoot, OrxSound::SoundEngine::getInstance()->getEffectsVolume(), 0.5); 139 135 140 for ( std::list<MuzzleFlash*>::iterator it = gunFire.begin(); it!=gunFire.end(); it++) 136 141 {
Note: See TracChangeset
for help on using the changeset viewer.