Phobos icon indicating copy to clipboard operation
Phobos copied to clipboard

Dehardcode SP campaign AI's ability of auto-repairing structures built from base nodes / trigger action 125/ SW delivery

Open chaserli opened this issue 3 years ago • 1 comments

Sorry I accidentally deleted #711 In singleplayer campaigns, base nodes cannot auto-repair, neither can buildings delivered from trigger action 125 or Ares' UnitDelivery SW. This PR aims to fix this:

In your campaign.map:

[Country House]
RepairBaseNodes=no,no,no ; 3 booleans indicating whether AI should repair produced structures in Easy/ Normal/ Difficult game diffculty.

If set to yes at the corresponding difficulty level, the corresponding house will be able to repair base node structures.

For trigger action 125, note Param3 and Param4 from

[Actions]
...
ACTIONID=COUNT,...,125,10,BuildingTypeID,Param3,Param4,0,0,WaypointID,...
...

If Param3=1, the buildup will be played. If Param4=1, the building will be repairable for AI in SP missions.

chaserli avatar Aug 03 '22 13:08 chaserli

Nightly build for this pull request:

github-actions[bot] avatar Aug 03 '22 13:08 github-actions[bot]