Autocover Tweaks V3
Lots of adjustments to attack order AI in this one. I'm really happy with how everything is working. I hope Tommy can add this into the mod proper once he gets a chance to try it out.
The autocover distance is actually more or less irrelevant to squads jumping out of cover. If people find it's too short and squads aren't getting into cover, I could increase it back up without breaking the big fixes.
"Idle" AI (Completed Move Orders)
Before:
- When encountering an enemy, AI tells the squad to move in until all squad members are within 95% weapon range
- After reaching 95% weapon range, squad will try to find cover
After:
- When encountering an enemy, AI tells the squad to find cover
- Squad will not move if already in cover
- Squad will not move if the target is out of weapon's range
"Attack" AI (Attack or Attack Move Orders)
Before:
- AI tells the squad to move into 100% weapon range
- After reaching 100% weapon's range, squad will try to find cover
- Over the next ~30 seconds, AI tells squad to move up to 60% weapon's range
- Finds cover as it goes
After:
- AI tells the squad to move into 100% weapon range
- After reaching 100% weapon's range, squad will try to find cover
- Squad will remain at 100% weapon range
- Squad will periodically check for new cover, but won't move out of cover
I left the stupid 50% received damage because as little sense as it makes, like 12ocky mentioned it has affected engagements for the past 6 years and changing it now isn't a good idea.
This new squad AI really fits with the idea of an "ELITE" mod - it let's you better control your squads, but at the same time you need to pay closer attention to them. You have to keep track of squads that are out of their ideal range and move them in manually.
The one outstanding issue is when you give an attack order on an enemy that's in the midst of your squad, like Mp44s or Pioneers. Instead of just dropping and shooting, they'll still hop around. This one is tied to the autocover search radius so I'm not sure what I can do about it though.