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

Improve monsters turning to target behaviour #4363

Merged
2 commits merged into from
Apr 6, 2023
Merged

Improve monsters turning to target behaviour #4363

2 commits merged into from
Apr 6, 2023

Conversation

omarcopires
Copy link
Contributor

Pull Request Prelude

Changes Proposed

  • Simplify updateLookDirection logic removing 2-step turning in some cases.
  • Update look direction on successful attack or when melee was out of reach

There is still some room for improvement when it comes to ranged creatures more than necessarily turning to you while they're running to keep distance. I may or may not fix it in separate PR, as this is another issue.

Issues addressed:
Close #4255

omarcopires and others added 2 commits April 1, 2023 23:54
Co-Authored-By: Marcin Michalski <57528542+marmichalski@users.noreply.github.com>
Co-Authored-By: Marcin Michalski <57528542+marmichalski@users.noreply.github.com>
@ghost ghost requested review from DSpeichert, ranisalt and nekiro April 2, 2023 03:15
@ghost ghost merged commit 2b2df70 into otland:master Apr 6, 2023
@omarcopires omarcopires deleted the monster-turn branch April 6, 2023 22:59
Tofame added a commit to Tofame/MFS that referenced this pull request Jan 1, 2025
This pull request was closed.
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.

monster atk direction update
1 participant