mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-09-02 09:47:26 +00:00
Bots play dom harder if they are losing
This commit is contained in:
@@ -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 = [];
|
||||||
|
Reference in New Issue
Block a user