Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Major AI aim improvements #51

Merged
merged 6 commits into from
Apr 16, 2018
Merged

Major AI aim improvements #51

merged 6 commits into from
Apr 16, 2018

Conversation

NMS127
Copy link
Contributor

@NMS127 NMS127 commented Apr 15, 2018

They could still use some behavior improvements, especially in CAIBehaviorCtx::ImplementAttackTargetManeuver and ImplementFireOnTargetsOfOpportunity, but this improves their accuracy with fixed weapons a lot.

This made the AI prioritize maneuvering over aiming until it was extremely close to the target. However, some other fixes will be necessary. Now they sometimes attempt to aim without thrusting, even though there's no fire solution. And weapons with wide fire tolerances are not aimed very well.
Prefer to stop on the facing that's closest in degrees to the desired angle.
While deliberate, this is the cause of the commonly mentioned "AI range bug", making them unable to fire at long range.

Ideally, they might use the full range only if necessary to hit a target they can't close on. But the greater number of facings for most ships now makes it more reasonable to try to hit at long range.
…up close

These conditions are probably not totally optimal, but they seem like a good start.
@gmoromisato gmoromisato merged commit 10b9c55 into kronosaur:master Apr 16, 2018
@gmoromisato
Copy link
Member

Looks great! Looking forward to seeing these changes in action. Thanks.

@NMS127
Copy link
Contributor Author

NMS127 commented Apr 16, 2018

Well, I have been killed today by a lone Repentant and a big swarm of Hornets - no joke.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants