Changeset 6313 for code/branches/presentation2/src/modules/weapons
- Timestamp:
- Dec 10, 2009, 8:49:33 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/modules/weapons/projectiles/Rocket.cc
r6295 r6313 89 89 this->addCameraPosition(camPosition); 90 90 91 this->defSndWpnEngine_ = new WorldSound(this); 92 this->defSndWpnEngine_->setLooping(true); 93 this->defSndWpnEngine_->setSource("sounds/Rocket_engine.ogg"); 94 this->attach(defSndWpnEngine_); 95 96 this->defSndWpnLaunch_ = new WorldSound(this); 97 this->defSndWpnLaunch_->setLooping(false); 98 this->defSndWpnLaunch_->setSource("sounds/Rocket_launch.ogg"); 99 this->attach(defSndWpnLaunch_); 91 if( GameMode::isMaster() ) 92 { 93 this->defSndWpnEngine_ = new WorldSound(this); 94 this->defSndWpnEngine_->setLooping(true); 95 this->defSndWpnEngine_->setSource("sounds/Rocket_engine.ogg"); 96 this->attach(defSndWpnEngine_); 97 98 this->defSndWpnLaunch_ = new WorldSound(this); 99 this->defSndWpnLaunch_->setLooping(false); 100 this->defSndWpnLaunch_->setSource("sounds/Rocket_launch.ogg"); 101 this->attach(defSndWpnLaunch_); 102 } 103 else 104 { 105 this->defSndWpnEngine_ = 0; 106 this->defSndWpnLaunch_ = 0; 107 } 100 108 } 101 109
Note: See TracChangeset
for help on using the changeset viewer.