mirror of
https://github.com/ineedbots/t4_bot_warfare.git
synced 2025-04-21 23:45:43 +00:00
some twar
This commit is contained in:
parent
4b347b0d9a
commit
50f4201d1d
@ -4041,6 +4041,7 @@ bot_war()
|
||||
|
||||
myTeam = self.pers[ "team" ];
|
||||
otherTeam = getOtherTeam( myTeam );
|
||||
rand = self BotGetRandom();
|
||||
|
||||
for ( ;; )
|
||||
{
|
||||
@ -4060,11 +4061,14 @@ bot_war()
|
||||
continue;
|
||||
|
||||
// check if should cap
|
||||
if (game["war_momentum"][self.team + "_multiplier"] == getDvarInt("twar_momentumMaxMultiplier"))
|
||||
if (game["war_momentum"][myTeam + "_multiplier"] == getDvarInt("twar_momentumMaxMultiplier") ||
|
||||
flag.numTouching[otherTeam] > flag.numTouching[myTeam] ||
|
||||
rand > 90)
|
||||
{
|
||||
}
|
||||
else
|
||||
{
|
||||
// build momentum around the flag
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user