fix: make infect game mode work again
All checks were successful
lint / Lint GSC files (push) Successful in 11s

This commit is contained in:
2025-01-29 13:28:49 +01:00
parent 2225d7509c
commit bcff590c94
2 changed files with 557 additions and 7 deletions

View File

@ -312,7 +312,7 @@ showloadoutmenu()
autoassign()
{
if ( maps\mp\_utility::is_aliens() || level.gametype == "infect" )
if ( maps\mp\_utility::is_aliens() )
thread setteam( "allies" );
else if ( ( getdvarint( "squad_match" ) == 1 || getdvarint( "squad_vs_squad" ) == 1 || getdvarint( "squad_use_hosts_squad" ) == 1 ) && isdefined( self.bot_team ) )
thread setteam( self.bot_team );
@ -431,12 +431,6 @@ waitforclassselect()
for (;;)
{
if ( level.gametype == "infect" )
{
bypassclasschoice();
break;
}
if ( maps\mp\_utility::allowclasschoice() || maps\mp\_utility::showfakeloadout() && !isai( self ) )
self waittill( "luinotifyserver", var_0, var_1 );
else