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

Fix issues relating to constant dismounts #374

Merged
merged 2 commits into from
Feb 18, 2024

Conversation

nk3nny
Copy link
Owner

@nk3nny nk3nny commented Jan 28, 2024

This patches some of the issues pertaining to constant dismounting of units.

It does this by rethinking how information is shared, and fixing a bug in doFleeing (which would not take into account the units current situation very well). Information is now only passed for units that are within "combatShareRange" ~ 200 meters by default. Units outside this distance, but within radio range, will unless busy, instead turn towards the direction of the unit calling for aid.

Hiding is also tweaked to make that contact response more effective, which again translates into fewer repetitive executions of said command.

This patches some of the issues pertaining to constant dismounting of units.

It does this by rethinking how information is shared, and fixing a bug in doFleeing (which would not take into account the units current situation very well).

Information is now only passed for units that are within "combatShareRange"  ~ 200 meters by default.  Units outside this distance, but within radio range, will unless busy, instead turn towards the direction of the unit calling for aid.

Hiding is also tweaked to make that contact response more effective, which again translates into fewer repetetive executions of said command.
@nk3nny nk3nny requested a review from jokoho48 January 28, 2024 18:59
@nk3nny nk3nny self-assigned this Jan 28, 2024
@nk3nny nk3nny merged commit b90f650 into master Feb 18, 2024
4 checks passed
@nk3nny nk3nny deleted the Improve-Units-getting-stuck-in-information-sharing branch February 18, 2024 13:39
@jokoho48 jokoho48 added this to the 2.6.1 milestone Feb 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants