mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-06-20 07:29:27 +02:00
feat(Core/Travel): Cap bots at 50° via NAV_GROUND_STEEP exclude
This commit is contained in:
parent
249395f14f
commit
b3145d151d
@ -730,6 +730,7 @@ std::vector<WorldPosition> WorldPosition::getPathStepFrom(WorldPosition startPos
|
||||
// the previous step's endpoint, giving the 40-attempt walker
|
||||
// its intended multi-tile reach.
|
||||
PathGenerator path(pathUnit);
|
||||
path.AddExcludeFlag(NAV_GROUND_STEEP);
|
||||
path.CalculatePath(startPos.GetPositionX(), startPos.GetPositionY(), startPos.GetPositionZ(),
|
||||
GetPositionX(), GetPositionY(), GetPositionZ(), false);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user