AI support for SW Targeting settings

Registered by AlexB

Replace all AI targeting modes by custom ones, with the following settings and changes:
- PsyDom and GeneticMutator now ignore cloaked units
- Where applicable, ranges, designators, required targets and houses are checked

Use a different set of tags for acquiring an automatic/AI Super Weapon target:

[SuperWeapon]SW.AIRequiresTarget= (enum land|water|empty|infantry|units|buildings|all, defaults to all)
Which targets will be considered eligible by AI players or human owned automatically fired super weapons. Human players manually selecting a target must suffice SW.RequiresTarget instead.
Certain targeting modes only target specific target types. If you exclude the types checked and include only the types not checked, the SW will not be able to fire.

[SuperWeapon]SW.AIRequiresHouse= (enum owner|allies|team|enemies|others|all, defaults to all)
Which houses will be considered eligible by AI players or human owned automatically fired super weapons. Human players manually selecting a target must suffice SW.RequiresHouse instead.
Certain targeting modes only target specific houses, usually only the enemy. If you exclude the houses checked and include only the houses not checked, the SW will not be able to fire.

Blueprint information

Status:
Complete
Approver:
AlexB
Priority:
Low
Drafter:
AlexB
Direction:
Approved
Assignee:
AlexB
Definition:
Approved
Series goal:
Accepted for 0.9
Implementation:
Implemented
Milestone target:
milestone icon 0.9
Started by
AlexB
Completed by
AlexB

Related branches

Sprints

Whiteboard

15.20.733, didn't notice any issues with them (although some SWs might require changing from default either SW.AIRequiresTarget= or SW.AIRequiresHouse=, or both, in order to work the same as before their introduction; most likely auto fired SWs, i think) - mevitar
---

I chose the defaults so they do the same things as the original targeting modes. Which ones do not work correctly? I can provide the current list of defaults, if you need this. -- AlexB
---

I'm not sure, i think it was Speeder saying, just after those tags were introduced, that some SW started to act strangely or something like that. I told him to set the above AI targeting tags to correct ones and didn't hear of any issues since then. I think the defaults will be needed for each targeting type anyway, so you could just tell me once you added it to the documentation.
I don't think it matters much, though, as long as unmodded YR SWs work as they did before. I'll check once i have time. - mevitar
---

I think i found the culprit - SonarPulse SW. Before, its SW.RequiresTarget= defaulted to "water". Now, since it no longer checks for that tag, it will fire according to SW.AITargetingType=Stealth default SW.AIRequiresTarget=, which is "infantry,units,buildings". So a water-specific Sonar Pulse will now fire at both land and water when used by the AI, unless the modder sets SW.AIRequiresTarget=water. - mevitar
---

Thanks, this was an oversight. I changed the SonarPulse SW to also default to water, and this will be documented as well as the original tags. i don't know when this build will be available. Depends on what else comes up. -AlexB

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.