function BuildBaseStrategy:DoUpgradesAndAddons() --look at my enemies. If I am weaker than any of them, don't upgrade (thudmeizer: disabled!) for enemy in cpu_manager.stats:GetPlayerStats() do if cpu_manager.player_stats:IsEnemy( enemy ) then if cpu_manager:RateAgainstPlayer( enemy ) < 0 then --aitrace("too weak to do research") --return end end end
so the AI will continue to research even while weaker in pro rated numbers.
I find this problematic wasting resources while it desperatly needs squads.
Its perhaps more clever to tweak it like this
if cpu_manager:RateAgainstPlayer( enemy ) < -250 then
so it won't reseach while much behind. It should really start building units then.
I'd suggest using the same code to prevent building more turrets while behind too but I guess this won't happen .
Edited by LarkinVB, 21 February 2005 - 09:01 PM.