mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-04-21 21:45:43 +00:00
Bots play dom harder if they are losing
This commit is contained in:
parent
527f63b771
commit
28ca878a9f
@ -4285,20 +4285,23 @@ bot_dom_cap_think()
|
|||||||
|
|
||||||
otherFlagCount = maps\mp\gametypes\dom::getTeamFlagCount( otherTeam );
|
otherFlagCount = maps\mp\gametypes\dom::getTeamFlagCount( otherTeam );
|
||||||
|
|
||||||
if ( myFlagCount < otherFlagCount )
|
if (game["teamScores"][myteam] >= game["teamScores"][otherTeam])
|
||||||
{
|
{
|
||||||
if ( randomint( 100 ) < 15 )
|
if ( myFlagCount < otherFlagCount )
|
||||||
continue;
|
{
|
||||||
}
|
if ( randomint( 100 ) < 15 )
|
||||||
else if ( myFlagCount == otherFlagCount )
|
continue;
|
||||||
{
|
}
|
||||||
if ( randomint( 100 ) < 35 )
|
else if ( myFlagCount == otherFlagCount )
|
||||||
continue;
|
{
|
||||||
}
|
if ( randomint( 100 ) < 35 )
|
||||||
else if ( myFlagCount > otherFlagCount )
|
continue;
|
||||||
{
|
}
|
||||||
if ( randomint( 100 ) < 95 )
|
else if ( myFlagCount > otherFlagCount )
|
||||||
continue;
|
{
|
||||||
|
if ( randomint( 100 ) < 95 )
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
flag = undefined;
|
flag = undefined;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user