Initial commit: OpenRA game engine
Fork from OpenRA/OpenRA with one-click launch script (start-ra.cmd) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
383
mods/cnc/rules/ai.yaml
Normal file
383
mods/cnc/rules/ai.yaml
Normal file
@@ -0,0 +1,383 @@
|
||||
Player:
|
||||
ModularBot@Cabal:
|
||||
Name: bot-cabal.name
|
||||
Type: cabal
|
||||
ModularBot@Watson:
|
||||
Name: bot-watson.name
|
||||
Type: watson
|
||||
ModularBot@HAL9001:
|
||||
Name: bot-hal9001.name
|
||||
Type: hal9001
|
||||
GrantConditionOnBotOwner@cabal:
|
||||
Condition: enable-cabal-ai
|
||||
Bots: cabal
|
||||
GrantConditionOnBotOwner@watson:
|
||||
Condition: enable-watson-ai
|
||||
Bots: watson
|
||||
GrantConditionOnBotOwner@hal9001:
|
||||
Condition: enable-hal9001-ai
|
||||
Bots: hal9001
|
||||
SupportPowerBotModule:
|
||||
RequiresCondition: enable-cabal-ai || enable-watson-ai || enable-hal9001-ai
|
||||
Decisions:
|
||||
Airstrike:
|
||||
OrderName: AirstrikePowerInfoOrder
|
||||
MinimumAttractiveness: 2000
|
||||
Consideration@1:
|
||||
Against: Enemy
|
||||
Types: Vehicle, Infantry
|
||||
Attractiveness: 3
|
||||
TargetMetric: Value
|
||||
CheckRadius: 2c0
|
||||
Consideration@2:
|
||||
Against: Ally
|
||||
Types: Ground, Water
|
||||
Attractiveness: -20
|
||||
TargetMetric: Value
|
||||
CheckRadius: 2c0
|
||||
Consideration@3:
|
||||
Against: Enemy
|
||||
Types: Structure
|
||||
Attractiveness: 1
|
||||
TargetMetric: Value
|
||||
CheckRadius: 2c0
|
||||
IonCannonPower:
|
||||
OrderName: IonCannonPowerInfoOrder
|
||||
MinimumAttractiveness: 1000
|
||||
FineScanRadius: 2
|
||||
Consideration@1:
|
||||
Against: Enemy
|
||||
Types: Air, Tank, Vehicle, Infantry, Water
|
||||
Attractiveness: 2
|
||||
TargetMetric: Value
|
||||
CheckRadius: 2c0
|
||||
Consideration@2:
|
||||
Against: Enemy
|
||||
Types: Structure
|
||||
Attractiveness: 1
|
||||
TargetMetric: Value
|
||||
CheckRadius: 2c0
|
||||
Consideration@3:
|
||||
Against: Ally
|
||||
Types: Ground, Water
|
||||
Attractiveness: -10
|
||||
TargetMetric: Value
|
||||
CheckRadius: 3c0
|
||||
NukePower:
|
||||
OrderName: NukePowerInfoOrder
|
||||
MinimumAttractiveness: 3000
|
||||
Consideration@1:
|
||||
Against: Enemy
|
||||
Types: Structure
|
||||
Attractiveness: 1
|
||||
TargetMetric: Value
|
||||
CheckRadius: 5c0
|
||||
Consideration@2:
|
||||
Against: Ally
|
||||
Types: Air, Ground, Water
|
||||
Attractiveness: -10
|
||||
TargetMetric: Value
|
||||
CheckRadius: 7c0
|
||||
HarvesterBotModule:
|
||||
RequiresCondition: enable-cabal-ai || enable-watson-ai || enable-hal9001-ai
|
||||
HarvesterTypes: harv
|
||||
RefineryTypes: proc
|
||||
InitialHarvesters: 3
|
||||
ResourceMapBotModule:
|
||||
RequiresCondition: enable-hal9001-ai || enable-cabal-ai || enable-watson-ai
|
||||
ResourceCreatorTypes: split2, split3, splitblue
|
||||
ValuableResourceTypes: Tiberium, BlueTiberium
|
||||
HarvesterTypes: harv
|
||||
RefineryTypes: proc
|
||||
EnemyBaseBuildingTypes: fact,pyle,hand,weap,afld,gtwr,gun,atwr,obli,hpad,nuke,nuk2,proc
|
||||
BaseBuilderBotModule@cabal:
|
||||
RequiresCondition: enable-cabal-ai
|
||||
BuildingQueues: Building.Nod, Building.GDI
|
||||
DefenseQueues: Support.Nod, Support.GDI
|
||||
MinimumExcessPower: 0
|
||||
MaximumExcessPower: 270
|
||||
ExcessPowerIncrement: 40
|
||||
ExcessPowerIncreaseThreshold: 3
|
||||
MaxBaseRadius: 18
|
||||
ConstructionYardTypes: fact
|
||||
ExpansionTolerate: 0
|
||||
ForceExpansionTolerate: 1
|
||||
RefineryTypes: proc
|
||||
PowerTypes: nuke, nuk2
|
||||
TechTypes: hq, tmpl, fix, eye, hpad
|
||||
ProductionTypes: pyle, hand, weap, afld
|
||||
NewProductionCashThreshold: 8000
|
||||
SiloTypes: silo
|
||||
DefenseTypes: gtwr,gun,atwr,obli,sam
|
||||
BuildingLimits:
|
||||
pyle: 3
|
||||
hand: 3
|
||||
hq: 1
|
||||
weap: 3
|
||||
afld: 3
|
||||
hpad: 1
|
||||
eye: 1
|
||||
tmpl: 1
|
||||
fix: 1
|
||||
silo: 1
|
||||
BuildingFractions:
|
||||
nuke: 1
|
||||
proc: 1
|
||||
pyle: 5
|
||||
hand: 5
|
||||
hq: 4
|
||||
weap: 9
|
||||
afld: 9
|
||||
gtwr: 6
|
||||
gun: 6
|
||||
atwr: 20
|
||||
obli: 20
|
||||
sam: 7
|
||||
eye: 1
|
||||
tmpl: 1
|
||||
fix: 1
|
||||
hpad: 2
|
||||
BuildingDelays:
|
||||
hq: 4000
|
||||
fix: 4000
|
||||
hpad: 4100
|
||||
gun: 2000
|
||||
gtwr: 2000
|
||||
sam: 3000
|
||||
BaseBuilderBotModule@watson:
|
||||
RequiresCondition: enable-watson-ai
|
||||
BuildingQueues: Building.Nod, Building.GDI
|
||||
DefenseQueues: Support.Nod, Support.GDI
|
||||
MinimumExcessPower: 0
|
||||
MaximumExcessPower: 150
|
||||
ExcessPowerIncrement: 40
|
||||
ExcessPowerIncreaseThreshold: 3
|
||||
MaxBaseRadius: 18
|
||||
ConstructionYardTypes: fact
|
||||
RefineryTypes: proc
|
||||
PowerTypes: nuke,nuk2
|
||||
AdditionalMinimumRefineryCount: 0
|
||||
TechTypes: hq, tmpl, fix, eye, hpad
|
||||
ProductionTypes: pyle,hand,weap,afld
|
||||
ExpansionTolerate: 0
|
||||
ForceExpansionTolerate: 0
|
||||
NewProductionCashThreshold: 6000
|
||||
SiloTypes: silo
|
||||
DefenseTypes: gtwr,gun,atwr,obli,sam
|
||||
BuildingLimits:
|
||||
pyle: 3
|
||||
hand: 3
|
||||
hq: 1
|
||||
weap: 3
|
||||
afld: 3
|
||||
hpad: 2
|
||||
eye: 1
|
||||
tmpl: 1
|
||||
fix: 1
|
||||
silo: 1
|
||||
BuildingFractions:
|
||||
nuke: 1
|
||||
proc: 1
|
||||
pyle: 2
|
||||
hand: 2
|
||||
hq: 1
|
||||
weap: 5
|
||||
afld: 5
|
||||
hpad: 4
|
||||
gtwr: 5
|
||||
gun: 5
|
||||
atwr: 9
|
||||
obli: 7
|
||||
eye: 1
|
||||
tmpl: 1
|
||||
sam: 7
|
||||
fix: 1
|
||||
BuildingDelays:
|
||||
hq: 5000
|
||||
fix: 5000
|
||||
hpad: 6000
|
||||
gun: 2000
|
||||
gtwr: 2000
|
||||
sam: 3000
|
||||
BaseBuilderBotModule@hal9001:
|
||||
RequiresCondition: enable-hal9001-ai
|
||||
BuildingQueues: Building.Nod, Building.GDI
|
||||
DefenseQueues: Support.Nod, Support.GDI
|
||||
MinimumExcessPower: 0
|
||||
MaximumExcessPower: 200
|
||||
ExcessPowerIncrement: 40
|
||||
ExcessPowerIncreaseThreshold: 2
|
||||
ConstructionYardTypes: fact
|
||||
MaxBaseRadius: 18
|
||||
RefineryTypes: proc
|
||||
InititalMinimumRefineryCount: 0
|
||||
AdditionalMinimumRefineryCount: 2
|
||||
PowerTypes: nuke,nuk2
|
||||
TechTypes: hq, tmpl, fix, eye, hpad
|
||||
ProductionTypes: pyle,hand,weap,afld
|
||||
ExpansionTolerate: 0
|
||||
ForceExpansionTolerate: 0
|
||||
NewProductionCashThreshold: 7000
|
||||
SiloTypes: silo
|
||||
DefenseTypes: gtwr,gun,atwr,obli,sam
|
||||
BuildingLimits:
|
||||
pyle: 4
|
||||
hand: 4
|
||||
hq: 1
|
||||
weap: 4
|
||||
afld: 4
|
||||
hpad: 2
|
||||
eye: 1
|
||||
tmpl: 1
|
||||
fix: 1
|
||||
silo: 1
|
||||
BuildingFractions:
|
||||
nuke: 1
|
||||
proc: 1
|
||||
pyle: 7
|
||||
hand: 9
|
||||
hq: 1
|
||||
weap: 8
|
||||
afld: 6
|
||||
hpad: 4
|
||||
gtwr: 5
|
||||
gun: 5
|
||||
atwr: 9
|
||||
obli: 7
|
||||
eye: 1
|
||||
tmpl: 1
|
||||
sam: 7
|
||||
fix: 1
|
||||
BuildingDelays:
|
||||
hq: 4000
|
||||
fix: 4000
|
||||
hpad: 4100
|
||||
gun: 2000
|
||||
gtwr: 2000
|
||||
sam: 3000
|
||||
BuildingRepairBotModule:
|
||||
RequiresCondition: enable-cabal-ai || enable-watson-ai || enable-hal9001-ai
|
||||
SquadManagerBotModule@cabal:
|
||||
RequiresCondition: enable-cabal-ai
|
||||
SquadSize: 50
|
||||
ExcludeFromSquadsTypes: harv, mcv, a10, mlrs
|
||||
ConstructionYardTypes: fact
|
||||
AirUnitsTypes: heli, orca
|
||||
ProtectionTypes: fact, fact.gdi, fact.nod, nuke, nuk2, proc, silo, pyle, hand, afld, weap, hpad, hq, fix, eye, tmpl, gun, sam, obli, gtwr, atwr, mcv, harv, miss
|
||||
IgnoredEnemyTargetTypes: Air
|
||||
RushInterval: 1000
|
||||
MinimumAttackForceDelay: 1000
|
||||
ProtectUnitScanRadius: 30
|
||||
ProtectionScanRadius: 12
|
||||
UnitBuilderBotModule@cabal:
|
||||
RequiresCondition: enable-cabal-ai
|
||||
ProductionMinCashRequirement: 750
|
||||
UnitQueues: Vehicle.Nod, Vehicle.GDI, Infantry.Nod, Infantry.GDI, Aircraft.Nod, Aircraft.GDI
|
||||
UnitsToBuild:
|
||||
e1: 65
|
||||
e2: 25
|
||||
e3: 40
|
||||
e4: 15
|
||||
e5: 15
|
||||
harv: 10
|
||||
bggy: 5
|
||||
bike: 40
|
||||
ltnk: 25
|
||||
ftnk: 10
|
||||
apc: 10
|
||||
arty: 60
|
||||
stnk: 40
|
||||
jeep: 5
|
||||
mtnk: 20
|
||||
msam: 40
|
||||
htnk: 50
|
||||
heli: 5
|
||||
orca: 5
|
||||
mlrs: 1
|
||||
UnitLimits:
|
||||
harv: 8
|
||||
mlrs: 3
|
||||
McvExpansionManagerBotModule@cabal:
|
||||
RequiresCondition: enable-cabal-ai
|
||||
McvTypes: mcv
|
||||
ConstructionYardTypes: fact
|
||||
McvFactoryTypes: weap,afld
|
||||
MinimumConstructionYardCount: 1
|
||||
AdditionalConstructionYardCount: 1
|
||||
McvExpansionManagerBotModule@watson-hal9001:
|
||||
RequiresCondition: enable-watson-ai || enable-hal9001-ai
|
||||
McvTypes: mcv
|
||||
ConstructionYardTypes: fact
|
||||
McvFactoryTypes: weap,afld
|
||||
MinimumConstructionYardCount: 1
|
||||
SquadManagerBotModule@watson:
|
||||
RequiresCondition: enable-watson-ai
|
||||
SquadSize: 15
|
||||
ExcludeFromSquadsTypes: harv, mcv, a10, mlrs
|
||||
ConstructionYardTypes: fact
|
||||
AirUnitsTypes: heli, orca
|
||||
ProtectionTypes: fact, fact.gdi, fact.nod, nuke, nuk2, proc, silo, pyle, hand, afld, weap, hpad, hq, fix, eye, tmpl, gun, sam, obli, gtwr, atwr, mcv, harv, miss
|
||||
IgnoredEnemyTargetTypes: Air
|
||||
UnitBuilderBotModule@watson:
|
||||
RequiresCondition: enable-watson-ai
|
||||
UnitQueues: Vehicle.Nod, Vehicle.GDI, Infantry.Nod, Infantry.GDI, Aircraft.Nod, Aircraft.GDI
|
||||
UnitsToBuild:
|
||||
e1: 65
|
||||
e2: 30
|
||||
e3: 40
|
||||
e4: 30
|
||||
e5: 30
|
||||
harv: 10
|
||||
bggy: 10
|
||||
ftnk: 10
|
||||
arty: 40
|
||||
bike: 10
|
||||
heli: 1
|
||||
ltnk: 40
|
||||
stnk: 40
|
||||
orca: 1
|
||||
msam: 40
|
||||
htnk: 50
|
||||
jeep: 20
|
||||
mtnk: 50
|
||||
mlrs: 1
|
||||
UnitLimits:
|
||||
harv: 8
|
||||
mlrs: 2
|
||||
SquadManagerBotModule@hal9001:
|
||||
RequiresCondition: enable-hal9001-ai
|
||||
SquadSize: 15
|
||||
ExcludeFromSquadsTypes: harv, mcv, a10, mlrs
|
||||
ConstructionYardTypes: fact
|
||||
AirUnitsTypes: heli, orca
|
||||
ProtectionTypes: fact, fact.gdi, fact.nod, nuke, nuk2, proc, silo, pyle, hand, afld, weap, hpad, hq, fix, eye, tmpl, gun, sam, obli, gtwr, atwr, mcv, harv, miss
|
||||
IgnoredEnemyTargetTypes: Air
|
||||
ProtectUnitScanRadius: 15
|
||||
ProtectionScanRadius: 12
|
||||
UnitBuilderBotModule@hal9001:
|
||||
RequiresCondition: enable-hal9001-ai
|
||||
UnitQueues: Vehicle.Nod, Vehicle.GDI, Infantry.Nod, Infantry.GDI, Aircraft.Nod, Aircraft.GDI
|
||||
UnitsToBuild:
|
||||
e1: 65
|
||||
e2: 30
|
||||
e3: 40
|
||||
e4: 50
|
||||
e5: 50
|
||||
harv: 16
|
||||
bggy: 10
|
||||
bike: 10
|
||||
ltnk: 40
|
||||
arty: 20
|
||||
ftnk: 5
|
||||
stnk: 40
|
||||
mlrs: 5
|
||||
heli: 10
|
||||
jeep: 20
|
||||
apc: 10
|
||||
mtnk: 50
|
||||
msam: 50
|
||||
htnk: 50
|
||||
orca: 10
|
||||
UnitLimits:
|
||||
harv: 8
|
||||
mlrs: 3
|
||||
Reference in New Issue
Block a user