Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 4, 2009, 3:52:28 PM (14 years ago)
Author:
youngk
Message:

Implemented Firing sounds in Weapons HsW01, LightningGun and RocketFire. Engine and Explosion sounds for the Rocket are not yet implemented.
From now on, when creating a new sound for a weapon, just insert "this→setDefaultSound(PATH_TO_FILE)" into the constructor of the weapon.

Sound Files for HsW01 and LightningGun will be available in a couple of minutes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/modules/weapons/weaponmodes/HsW01.h

    r6227 r6245  
    4646            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    4747
    48             void setDefaultSound(const std::string& soundPath);
    49             const std::string& getDefaultSound();
    50 
    5148        private:
    5249            void setMaterial(const std::string& material);
     
    6158            float delay_;
    6259            Timer delayTimer_;
    63 
    64             WorldSound* defSndWpnFire_;
    6560    };
    6661}
Note: See TracChangeset for help on using the changeset viewer.