push unit queues for HackyAI out to yaml
This commit is contained in:
@@ -35,6 +35,7 @@ namespace OpenRA.Mods.RA.AI
|
|||||||
public readonly int SquadSize = 8;
|
public readonly int SquadSize = 8;
|
||||||
public readonly int AssignRolesInterval = 20;
|
public readonly int AssignRolesInterval = 20;
|
||||||
public readonly string RallypointTestBuilding = "fact"; // temporary hack to maintain previous rallypoint behavior.
|
public readonly string RallypointTestBuilding = "fact"; // temporary hack to maintain previous rallypoint behavior.
|
||||||
|
public readonly string[] UnitQueues = { "Vehicle", "Infantry", "Plane" };
|
||||||
|
|
||||||
string IBotInfo.Name { get { return this.Name; } }
|
string IBotInfo.Name { get { return this.Name; } }
|
||||||
|
|
||||||
@@ -185,14 +186,8 @@ namespace OpenRA.Mods.RA.AI
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (ticks % feedbackTime == 0)
|
if (ticks % feedbackTime == 0)
|
||||||
{
|
foreach (var q in Info.UnitQueues)
|
||||||
//about once every second, perform unintelligent cleanup tasks.
|
BuildRandom(q);
|
||||||
//e.g. ClearAreaAroundSpawnPoints();
|
|
||||||
//e.g. start repairing damaged buildings.
|
|
||||||
BuildRandom("Vehicle");
|
|
||||||
BuildRandom("Infantry");
|
|
||||||
BuildRandom("Plane");
|
|
||||||
}
|
|
||||||
|
|
||||||
AssignRolesToIdleUnits(self);
|
AssignRolesToIdleUnits(self);
|
||||||
SetRallyPointsForNewProductionBuildings(self);
|
SetRallyPointsForNewProductionBuildings(self);
|
||||||
|
|||||||
Reference in New Issue
Block a user