Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10944


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

Polished Mine

Location:
code/branches/particleEffectsHS15
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • code/branches/particleEffectsHS15/data/particle/MineExpl.particle

    r10901 r10944  
    4242                velocity_min 300
    4343                velocity_max 300
    44                 time_to_live_min 1
    45                 time_to_live_max 2
     44                time_to_live_min 2
     45                time_to_live_max 2.5
    4646                duration_min 0.1
    4747                duration_max 0.1
     
    6060                velocity_min 300
    6161                velocity_max 300
    62                 time_to_live_min 1
    63                 time_to_live_max 2
     62                time_to_live_min 2
     63                time_to_live_max 2.5
    6464                duration_min 0.1
    6565                duration_max 0.1
     
    7878                velocity_min 300
    7979                velocity_max 300
    80                 time_to_live_min 1
    81                 time_to_live_max 2
     80                time_to_live_min 2
     81                time_to_live_max 2.5
    8282                duration_min 0.1
    8383                duration_max 0.1
     
    8888        }
    8989
    90         affector DeflectorPlane
    91         {
    92                 plane_point 0 -2 0
    93                 plane_normal 0 1 0
    94                 bounce 1
    95         }
    96 
    97         affector DeflectorPlane
    98         {
    99                 plane_point 0 2 0
    100                 plane_normal 0 -1 0
    101                 bounce 1
    102         }
     90       
    10391        affector Scaler
    10492        {
  • code/branches/particleEffectsHS15/data/particle/MineExpl1.particle

    r10901 r10944  
    2424                velocity_min 300
    2525                velocity_max 300
    26                 time_to_live_min 1
    27                 time_to_live_max 2
    28                 duration_min 0.5
    29                 duration_max 1.5
    30                 repeat_delay_min 0.0
    31                 repeat_delay_max 0.0
     26                time_to_live_min 3
     27                time_to_live_max 4
     28                duration_min 2.0
     29                duration_max 2.5
     30                repeat_delay    10
     31                repeat_delay_min        10
     32                repeat_delay_max        10
    3233                colour_range_start 0 0.333333 1 1
    3334                colour_range_end 0 0.333333 1 1
  • code/branches/particleEffectsHS15/data/particle/MineExpl2.particle

    r10901 r10944  
    2424                velocity_min 300
    2525                velocity_max 300
    26                 time_to_live_min 1
    27                 time_to_live_max 2
     26                time_to_live_min 2
     27                time_to_live_max 2.5
    2828                duration_min 0.5
    2929                duration_max 1.5
    30                 repeat_delay_min 0.0
    31                 repeat_delay_max 0.0
     30                repeat_delay    10
     31                repeat_delay_min        10
     32                repeat_delay_max        10
    3233                colour_range_start 0 0.333333 1 1
    3334                colour_range_end 0 0.333333 1 1
  • 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.