From 28ca878a9fbf99decf8bcf8281e24cdfa399dc76 Mon Sep 17 00:00:00 2001 From: INeedBots Date: Sat, 27 Feb 2021 14:39:50 -0600 Subject: [PATCH] Bots play dom harder if they are losing --- userraw/maps/mp/bots/_bot_script.gsc | 29 +++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/userraw/maps/mp/bots/_bot_script.gsc b/userraw/maps/mp/bots/_bot_script.gsc index 9dfd566..380468b 100644 --- a/userraw/maps/mp/bots/_bot_script.gsc +++ b/userraw/maps/mp/bots/_bot_script.gsc @@ -4285,20 +4285,23 @@ bot_dom_cap_think() otherFlagCount = maps\mp\gametypes\dom::getTeamFlagCount( otherTeam ); - if ( myFlagCount < otherFlagCount ) + if (game["teamScores"][myteam] >= game["teamScores"][otherTeam]) { - if ( randomint( 100 ) < 15 ) - continue; - } - else if ( myFlagCount == otherFlagCount ) - { - if ( randomint( 100 ) < 35 ) - continue; - } - else if ( myFlagCount > otherFlagCount ) - { - if ( randomint( 100 ) < 95 ) - continue; + if ( myFlagCount < otherFlagCount ) + { + if ( randomint( 100 ) < 15 ) + continue; + } + else if ( myFlagCount == otherFlagCount ) + { + if ( randomint( 100 ) < 35 ) + continue; + } + else if ( myFlagCount > otherFlagCount ) + { + if ( randomint( 100 ) < 95 ) + continue; + } } flag = undefined;