Changeset 10944 for code/branches/particleEffectsHS15/src/modules/weapons
- Timestamp:
- Dec 7, 2015, 4:01:06 PM (9 years ago)
- Location:
- code/branches/particleEffectsHS15/src/modules/weapons
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/particleEffectsHS15/src/modules/weapons/projectiles/MineProjectile.cc
r10911 r10944 164 164 /** 165 165 @brief 166 TODO166 XMLPort for MineProjectile. 167 167 */ 168 168 void MineProjectile::XMLEventPort(Element& xmlelement, XMLPort::Mode mode) … … 174 174 /** 175 175 @brief 176 TODO176 Max Time; after this time runs out,the Mine explodes. 177 177 */ 178 178 void MineProjectile::setMaxTimeUntilExplosion(float maxTimeUntilExplosion) … … 194 194 /** 195 195 @brief 196 T ODO196 The mine can only explode when the activation time has run out. 197 197 */ 198 198 void MineProjectile::setTimeUntilActivation(float timeUntilActivation) … … 208 208 /** 209 209 @brief 210 TODO210 Mine explodes, deals damage to pawn within range and destroys itself. 211 211 */ 212 212 void MineProjectile::explode() … … 234 234 /** 235 235 @brief 236 TODO236 Mine is ready to explode. 237 237 */ 238 238 void MineProjectile::allowExplosion() … … 247 247 } 248 248 249 /**250 @brief251 TODO252 */253 249 void MineProjectile::destructionEffect() 254 250 { … … 279 275 // Explosion sound effect. 280 276 WeakPtr<WorldSound> explosionSound_ = new WorldSound(getContext()); 281 explosionSound_->setSource("sounds/ GravityFieldExplosion.ogg");282 explosionSound_->setVolume( 1.0);277 explosionSound_->setSource("sounds/minesound.ogg"); 278 explosionSound_->setVolume(0.8); 283 279 explosionSound_->play(); 284 280 } -
code/branches/particleEffectsHS15/src/modules/weapons/weaponmodes/MineGun.h
r10908 r10944 22 22 * Author: 23 23 * Fabien Vultier 24 * Jannis Holzer 24 25 * Co-authors: 25 26 * ... … … 29 30 /** 30 31 @file MineGun.h 31 @brief Definition of the MineGun class. 32 @brief 33 34 Mine is a weapon that explodes if a spaceship goes bellow the mines trigger radius. The mine deals damage too all 35 spaceships within the damageradius. 36 37 The activation time regulates when the mine is live and ready to explode. 38 The mine destroys itself after it exceeds a certain life time. 32 39 */ 33 40
Note: See TracChangeset
for help on using the changeset viewer.