View Issue Details

IDProjectCategoryLast Update
0019464AI War 2Gameplay IdeaMar 14, 2018 10:32 pm
ReporterBadgerBadger Assigned Tokeith.lamothe  
Status resolvedResolutionfixed 
Product Version0.710 
Fixed in Version0.712 
Summary0019464: Implement inefficient target sorter
DescriptionFor lower AI difficulties, the AI should be "less effective" with its targeting. If you give Badger some advice on implementation you can offload it to him.
TagsNo tags attached.

Activities

keith.lamothe

Mar 14, 2018 10:32 pm

administrator   ~0047200

For 0.712:

* Added support for a faction to override the target sorter used by its units. The first examples of this are:
** On Difficulties 3 and 4, the AI will no longer prefer shooting at things that it will kill fastest; so it tends to not get bonus damage versus defenses it is good against, etc.
** On Difficulties 1 and 2, the AI will actually prefer shooting at things that it will take a long time to kill.

To see how this is done, look for usages of TargetSorter_StandardIdiotic ; it's defined in WeaponTargetSorters.cs and used in AI.cs (method GetOverrideTargetSorterFor )

Thanks :)

Issue History

Date Modified Username Field Change
Mar 5, 2018 4:35 pm BadgerBadger New Issue
Mar 5, 2018 4:35 pm BadgerBadger Status new => assigned
Mar 5, 2018 4:35 pm BadgerBadger Assigned To => keith.lamothe
Mar 14, 2018 10:32 pm keith.lamothe Status assigned => resolved
Mar 14, 2018 10:32 pm keith.lamothe Resolution open => fixed
Mar 14, 2018 10:32 pm keith.lamothe Fixed in Version => 0.712
Mar 14, 2018 10:32 pm keith.lamothe Note Added: 0047200