Bots play dom harder if they are losing

This commit is contained in:
INeedBots 2021-02-27 14:39:50 -06:00
parent 527f63b771
commit 28ca878a9f

View File

@ -4285,6 +4285,8 @@ bot_dom_cap_think()
otherFlagCount = maps\mp\gametypes\dom::getTeamFlagCount( otherTeam ); otherFlagCount = maps\mp\gametypes\dom::getTeamFlagCount( otherTeam );
if (game["teamScores"][myteam] >= game["teamScores"][otherTeam])
{
if ( myFlagCount < otherFlagCount ) if ( myFlagCount < otherFlagCount )
{ {
if ( randomint( 100 ) < 15 ) if ( randomint( 100 ) < 15 )
@ -4300,6 +4302,7 @@ bot_dom_cap_think()
if ( randomint( 100 ) < 95 ) if ( randomint( 100 ) < 95 )
continue; continue;
} }
}
flag = undefined; flag = undefined;
flags = []; flags = [];