AI support power activation needs to go through order manager
fixes a desync whenever it will do so only on the host +island map AI which will only build navy / air force to test it and have a suitable bot for those map types (fixes pathfinder eating up all CPU because it can't reach you with ground units)
This commit is contained in:
@@ -1318,7 +1318,8 @@ namespace OpenRA.Mods.RA.AI
|
||||
{
|
||||
var attackLocation = FindAttackLocationToSupportPower(5);
|
||||
if (attackLocation == null) return;
|
||||
sp.Activate(new Order() { TargetLocation = attackLocation.Value });
|
||||
|
||||
world.IssueOrder(new Order(sp.Info.OrderName, supportPowerMngr.self, false) { TargetLocation = attackLocation.Value });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -293,6 +293,56 @@ Player:
|
||||
ca: 8%
|
||||
pt: 8%
|
||||
SquadSize: 10
|
||||
HackyAI@IslandMapAI:
|
||||
Name:Island Map AI
|
||||
BuildingCommonNames:
|
||||
ConstructionYard: fact
|
||||
Refinery: proc
|
||||
Power: powr,apwr
|
||||
Silo: silo
|
||||
UnitsCommonNames:
|
||||
Mcv: mcv
|
||||
BuildingLimits:
|
||||
proc: 4
|
||||
dome: 1
|
||||
spen: 1
|
||||
syrd: 1
|
||||
hpad: 8
|
||||
afld: 8
|
||||
weap: 1
|
||||
atek: 1
|
||||
stek: 1
|
||||
BuildingFractions:
|
||||
proc: 29%
|
||||
powr: 1%
|
||||
apwr: 24%
|
||||
dome: 1%
|
||||
weap: 1%
|
||||
hpad: 20%
|
||||
afld: 20%
|
||||
atek: 1%
|
||||
stek: 1%
|
||||
spen: 1%
|
||||
syrd: 1%
|
||||
pbox.e1: 12%
|
||||
gun: 12%
|
||||
ftur: 12%
|
||||
tsla: 12%
|
||||
agun: 5%
|
||||
sam: 5%
|
||||
mslo: 1%
|
||||
UnitsToBuild:
|
||||
harv: 1%
|
||||
heli: 30%
|
||||
hind: 30%
|
||||
mig: 30%
|
||||
yak: 30%
|
||||
ss: 10%
|
||||
msub: 30%
|
||||
dd: 30%
|
||||
ca: 20%
|
||||
pt: 10%
|
||||
SquadSize: 1
|
||||
HackyAI@OptiAI:
|
||||
Name:Eisenhower AI
|
||||
BuildingCommonNames:
|
||||
|
||||
Reference in New Issue
Block a user