You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a little more complicated to fix than I thought:
The handler for -showscores is on the client side
voidIN_ScoreUp( const CCommand &args )
{
KeyUp( &in_score, args[1] );
if ( gViewPortInterface )
{
gViewPortInterface->ShowPanel( PANEL_SCOREBOARD, false ); // <-- this hides the scoreboardGetClientVoiceMgr()->StopSquelchMode();
}
}
The intermission code is on the server side
voidCMultiplayRules::GoToIntermission( void )
{
if ( g_fGameOver )
return;
g_fGameOver = true;
float flWaitTime = mp_chattime.GetInt();
//[...]
m_flIntermissionEndTime = gpGlobals->curtime + flWaitTime;
for ( int i = 1; i <= MAX_PLAYERS; i++ )
{
CBasePlayer *pPlayer = UTIL_PlayerByIndex( i );
if ( !pPlayer )
continue;
pPlayer->ShowViewPortPanel( PANEL_SCOREBOARD ); // <-- this shows the scoreboard to every player
}
}
neither g_fGameOver nor m_flIntermissionEndTime are synchronized to the client.
No description provided.
The text was updated successfully, but these errors were encountered: