Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 7, 2015, 4:01:06 PM (9 years ago)
Author:
holzerj
Message:

Polished Mine

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  
    164164    /**
    165165    @brief
    166         TODO
     166        XMLPort for MineProjectile.
    167167    */
    168168    void MineProjectile::XMLEventPort(Element& xmlelement, XMLPort::Mode mode)
     
    174174    /**
    175175    @brief
    176         TODO
     176        Max Time; after this time runs out,the Mine explodes.
    177177    */
    178178    void MineProjectile::setMaxTimeUntilExplosion(float maxTimeUntilExplosion)
     
    194194    /**
    195195    @brief
    196         TODO
     196        The mine can only explode when the activation time has run out.
    197197    */
    198198    void MineProjectile::setTimeUntilActivation(float timeUntilActivation)
     
    208208    /**
    209209    @brief
    210         TODO
     210        Mine explodes, deals damage to pawn within range and destroys itself.
    211211    */
    212212    void MineProjectile::explode()
     
    234234    /**
    235235    @brief
    236         TODO
     236        Mine is ready to explode.
    237237    */
    238238    void MineProjectile::allowExplosion()
     
    247247    }
    248248
    249     /**
    250     @brief
    251         TODO
    252     */
    253249    void MineProjectile::destructionEffect()
    254250    {
     
    279275        // Explosion sound effect.
    280276        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);
    283279        explosionSound_->play();
    284280    }
  • code/branches/particleEffectsHS15/src/modules/weapons/weaponmodes/MineGun.h

    r10908 r10944  
    2222 *   Author:
    2323 *      Fabien Vultier
     24 *      Jannis Holzer
    2425 *   Co-authors:
    2526 *      ...
     
    2930/**
    3031    @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.
    3239*/
    3340
Note: See TracChangeset for help on using the changeset viewer.