diff --git a/src/game/client/tf/c_tf_player.h b/src/game/client/tf/c_tf_player.h index 0fcee3730..f69de8258 100644 --- a/src/game/client/tf/c_tf_player.h +++ b/src/game/client/tf/c_tf_player.h @@ -124,6 +124,7 @@ public: virtual void Simulate( void ); virtual void FireEvent( const Vector& origin, const QAngle& angles, int event, const char *options ) OVERRIDE; virtual void UpdateStepSound( surfacedata_t *psurface, const Vector &vecOrigin, const Vector &vecVelocity ) OVERRIDE; + virtual void PlayStepSound( Vector &vecOrigin, surfacedata_t *psurface, float fvol, bool force ); CNewParticleEffect *SpawnHalloweenSpellFootsteps( ParticleAttachment_t eParticleAttachment, int iHalloweenFootstepType ); diff --git a/src/game/server/tf/tf_player.h b/src/game/server/tf/tf_player.h index 87620ffed..bcf11d634 100644 --- a/src/game/server/tf/tf_player.h +++ b/src/game/server/tf/tf_player.h @@ -911,6 +911,8 @@ public: CTFWeaponBase *Weapon_OwnsThisID( int iWeaponID ) const; CTFWeaponBase *Weapon_GetWeaponByType( int iType ); + virtual void PlayStepSound( Vector &vecOrigin, surfacedata_t *psurface, float fvol, bool force ); + medigun_charge_types GetChargeEffectBeingProvided( void ); // Achievements diff --git a/src/game/shared/tf/tf_player_shared.cpp b/src/game/shared/tf/tf_player_shared.cpp index a2c26261d..3fa199a44 100644 --- a/src/game/shared/tf/tf_player_shared.cpp +++ b/src/game/shared/tf/tf_player_shared.cpp @@ -12720,6 +12720,16 @@ bool CTFPlayer::Weapon_CanSwitchTo( CBaseCombatWeapon *pWeapon ) return bCanSwitch; } +void CTFPlayer::PlayStepSound( Vector &vecOrigin, surfacedata_t *psurface, float fvol, bool force ) +{ +#ifdef CLIENT_DLL + // Don't make predicted footstep sounds in third person, animevents will take care of that. + if ( prediction->InPrediction() && C_BasePlayer::ShouldDrawLocalPlayer() ) + return; +#endif + + BaseClass::PlayStepSound( vecOrigin, psurface, fvol, force ); +} //----------------------------------------------------------------------------- // Purpose: Gives the player an opportunity to abort a double jump.