Skip to content

Commit 9f4dabc

Browse files
committed
also end sound / hide match summary on teamplay round start
1 parent 5eda315 commit 9f4dabc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/game/client/tf/vgui/tf_match_summary.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ CTFMatchSummary::CTFMatchSummary( const char *pElementName )
194194
ListenForGameEvent( "client_disconnect" );
195195
ListenForGameEvent( "show_match_summary" );
196196
ListenForGameEvent( "hide_match_summary" );
197+
ListenForGameEvent( "teamplay_round_start" );
197198
ListenForGameEvent( "casual_mvp_panel" );
198199

199200
vgui::ivgui()->AddTickSignal( GetVPanel(), 50 );
@@ -1230,7 +1231,7 @@ void CTFMatchSummary::FireGameEvent( IGameEvent *event )
12301231
g_pClientMode->GetViewportAnimationController()->StartAnimationSequence( m_pTeamScoresPanel, "HudMatchSummary_SlideInPanels", false );
12311232
}
12321233
}
1233-
else if ( FStrEq( type, "hide_match_summary" ) )
1234+
else if ( FStrEq( type, "hide_match_summary" ) || FStrEq( type, "teamplay_round_start" ) )
12341235
{
12351236
SetVisible( false );
12361237
const IMatchGroupDescription* pMatchDesc = GetMatchGroupDescription( TFGameRules()->GetCurrentMatchGroupWithEmulation() );

0 commit comments

Comments
 (0)