Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 7, 2015, 5:43:36 PM (10 years ago)
Author:
meggiman
Message:

Added new models and fixed dammage bug. Bomb now fully working.

Location:
code/branches/weaponFS15/src/modules/weapons/weaponmodes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/weaponFS15/src/modules/weapons/weaponmodes/GravityBombFire.cc

    r10391 r10435  
    1919        RegisterClass(GravityBombFire);
    2020
     21        const float GravityBombFire::BOMB_VELOCITY = 400.0;
     22
    2123        GravityBombFire::GravityBombFire(Context* context) : WeaponMode(context)
    2224        {
     
    2628                this->bParallelReload_ = false;
    2729                this->damage_ = 0.0f;
    28                 this->speed_ = 100.0f;
     30                this->speed_ = BOMB_VELOCITY;
    2931
    3032                this->setMunitionName("GravityBombMunition");
  • code/branches/weaponFS15/src/modules/weapons/weaponmodes/GravityBombFire.h

    r10391 r10435  
    5858        private:
    5959            float speed_; //!< The initial speed of the bomb when it is launched.
     60            static const float BOMB_VELOCITY;
    6061    };
    6162}
Note: See TracChangeset for help on using the changeset viewer.