This commit is contained in:
speedvoltage 2025-03-29 21:43:58 +01:00 committed by GitHub
commit ba9e4fe5a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1078,6 +1078,12 @@ bool CHL2MP_Player::ClientCommand( const CCommand &args )
}
else if ( FStrEq( args[0], "joingame" ) )
{
if ( GetTeamNumber() == TEAM_SPECTATOR )
{
ChangeTeam( random->RandomInt( 2, 3 ) );
Spawn();
}
return true;
}