Phobos
Phobos copied to clipboard
Dehardcode SP campaign AI's ability of auto-repairing structures built from base nodes / trigger action 125/ SW delivery
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.
Nightly build for this pull request:
- compiled-dll-02baec525f4eed4a849c05b93d64aefa1b6b3a1e.zip This comment is automatic and is meant to allow guests to get latest nightly builds without registering. It is updated on every successful build.