Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
9 changes: 9 additions & 0 deletions src/game/client/tf/vgui/tf_mapinfomenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,15 @@ void CTFMapInfoMenu::OnCommand( const char *command )
engine->ClientCmd( "team_ui_setup" );
}
}
else
{
CTFPlayer* pPlayer = dynamic_cast< CTFPlayer* >( C_BasePlayer::GetLocalPlayer() );
C_TFPlayerClass* pClass = pPlayer ? pPlayer->GetPlayerClass() : NULL;
if ( pClass && pClass->GetClassIndex() == TF_CLASS_UNDEFINED )
{
m_pViewPort->ShowPanel( ( pPlayer->GetTeamNumber() == TF_TEAM_BLUE ) ? PANEL_CLASS_BLUE : PANEL_CLASS_RED, true );
}
}

UTIL_IncrementMapKey( "viewed" );
}
Expand Down
9 changes: 9 additions & 0 deletions src/game/server/tf/tf_player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13663,6 +13663,15 @@ void CTFPlayer::StateEnterWELCOME( void )
}

m_bSeenRoundInfo = false;

if ( ShouldForceAutoTeam() && GetTeamNumber() == TEAM_UNASSIGNED )
{
// Players are not considered to be on a team until they click continue on the MOTD screen
// Players not on a team do not show up in the vote UI, malicious players are currently clogging up slots and avoiding vote kicks by never clicking continue
// MvM already has a specific fix for this by allowing players to kick unassigned players but that doesn't work in regular modes, this is a proper fix for all modes
int iTeam = GetAutoTeam();
ChangeTeam( iTeam, true, false );
}
}

}
Expand Down