Skip to content

Commit 6102be5

Browse files
committed
add convar tf_hud_ping_sound
1 parent fc93a61 commit 6102be5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/game/client/tf/tf_hud_annotationspanel.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232

3333
extern ConVar cl_mute_all_comms;
3434

35+
ConVar tf_hud_ping_sound("tf_hud_ping_sound", "1", FCVAR_ARCHIVE, "Play ping sound when player pings");
36+
3537
DECLARE_HUDELEMENT_DEPTH( CTFAnnotationsPanel, 1 );
3638

3739
static const float LIFE_TIME = 1.0f;
@@ -309,7 +311,7 @@ void CTFAnnotationsPanel::AddAnnotation( IGameEvent * event )
309311

310312
if ( pCallout->IsVisible() )
311313
{
312-
if ( pSound )
314+
if ( pSound && tf_hud_ping_sound.GetBool() )
313315
{
314316
vgui::surface()->PlaySound( pSound );
315317
}

0 commit comments

Comments
 (0)