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