Merge pull request #2768 from Mailaender/bot-hotfixes

Fix Desync when Bots fire Super Weapons
This commit is contained in:
Chris Forbes
2013-03-14 11:35:52 -07:00
2 changed files with 52 additions and 1 deletions

View File

@@ -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 });
}
}
}

View File

@@ -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: