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
15 changes: 15 additions & 0 deletions src/game/shared/tf/tf_player_shared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7577,8 +7577,20 @@ void CTFPlayerShared::UpdateCritBoostEffect( ECritBoostUpdateType eUpdateType )
void CTFPlayerShared::OnAddSodaPopperHype( void )
{
#ifdef CLIENT_DLL

#if 0
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#if 0
#if 1

Msg( "CTFPlayerShared::OnAddSodaPopperHype() called on tick %d\n", gpGlobals->tickcount );
Msg( " - IsFirstTimePredicted(): %d\n", prediction->IsFirstTimePredicted() );
Msg( " - m_bSyncingConditions: %d\n", m_bSyncingConditions );
Msg( " - InPrediction(): %d\n", prediction->InPrediction() );
#endif

if ( m_bSyncingConditions || !prediction->IsFirstTimePredicted() )
return;

if ( m_pOuter->IsLocalPlayer() )
{
Msg( "[Tick %d] attempting to play DisciplineDevice.PowerUp\n", gpGlobals->tickcount );
m_pOuter->EmitSound( "DisciplineDevice.PowerUp" );
}
#endif // CLIENT_DLL
Expand All @@ -7587,6 +7599,9 @@ void CTFPlayerShared::OnAddSodaPopperHype( void )
void CTFPlayerShared::OnRemoveSodaPopperHype( void )
{
#ifdef CLIENT_DLL
if ( m_bSyncingConditions || !prediction->IsFirstTimePredicted() )
return;

if ( m_pOuter->IsLocalPlayer() )
{
m_pOuter->EmitSound( "DisciplineDevice.PowerDown" );
Expand Down