forgottenserver icon indicating copy to clipboard operation
forgottenserver copied to clipboard

[Bug]: Fleeing creatures aren't properly taking distance steps

Open nekiro opened this issue 1 year ago • 1 comments

By submitting this bug issue, you agree to the following.

  • [X] This is a bug in the software that resides in this repository, and not a support matter (use https://otland.net/forums/support.16/ for support)
  • [X] This issue is reproducible without changes to the C++ code in this repository
  • [X] This bug has not been resolved in master branch
  • [X] There is no existing issue for this bug already

Does this bug crash tfs?

no

Server Version

1.7 (Master)

Operation System

all (listed below)

OS Description

No response

Bug description

Fleeing monsters arent properly taking distance steps

Possible Pull Requests which are to blame

No response

Steps to reproduce

  1. Create rabbit and check how it runs from the target

Actual Behavior

Monster takes a step every 1 second instead of the delay of step duration (it doesn't run away smoothly) This works fine for creatures that are running on low health, like rat or dragon

https://github.com/user-attachments/assets/1882a4e6-d038-41b8-b403-2d2a8196fc6e

Expected Behavior

Monster should seamlessly run from fleeing target as long as target is not near (1 sqm)

Backtrace

No response

nekiro avatar Dec 29 '24 18:12 nekiro