mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-04-11 12:31:22 +00:00
Merge bd96f4b5c6
into ceb6d4d783
This commit is contained in:
commit
ba9e4fe5a9
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue