Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/game/shared/tf/tf_weapon_sniperrifle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include "input.h"
#include "client_virtualreality.h"
#include "sourcevr/isourcevirtualreality.h"
#include "prediction.h"

// forward declarations
void ToolFramework_RecordMaterialParams( IMaterial *pMaterial );
Expand Down Expand Up @@ -385,7 +386,7 @@ void CTFSniperRifle::ItemPostFrame( void )

#ifdef CLIENT_DLL
// play the recharged bell if we're fully charged
if ( IsFullyCharged() && !m_bPlayedBell )
if ( IsFullyCharged() && !m_bPlayedBell && ( !prediction->InPrediction() || prediction->IsFirstTimePredicted() ) )
{
m_bPlayedBell = true;
if ( tf_sniper_fullcharge_bell.GetBool() )
Expand Down Expand Up @@ -1930,7 +1931,7 @@ void CTFSniperRifleClassic::ItemPostFrame( void )

#ifdef CLIENT_DLL
// play the recharged bell if we're fully charged
if ( IsFullyCharged() && !m_bPlayedBell )
if ( IsFullyCharged() && !m_bPlayedBell && ( !prediction->InPrediction() || prediction->IsFirstTimePredicted() ) )
{
m_bPlayedBell = true;
if ( tf_sniper_fullcharge_bell.GetBool() )
Expand Down