feat(Core/Travel): Cap bots at 50° via NAV_GROUND_STEEP exclude

This commit is contained in:
bash 2026-05-10 17:31:19 +02:00
parent 1078d8b89e
commit 0b90d2d41d

View File

@ -730,6 +730,7 @@ std::vector<WorldPosition> WorldPosition::getPathStepFrom(WorldPosition startPos
// the previous step's endpoint, giving the 40-attempt walker // the previous step's endpoint, giving the 40-attempt walker
// its intended multi-tile reach. // its intended multi-tile reach.
PathGenerator path(pathUnit); PathGenerator path(pathUnit);
path.AddExcludeFlag(NAV_GROUND_STEEP);
path.CalculatePath(startPos.GetPositionX(), startPos.GetPositionY(), startPos.GetPositionZ(), path.CalculatePath(startPos.GetPositionX(), startPos.GetPositionY(), startPos.GetPositionZ(),
GetPositionX(), GetPositionY(), GetPositionZ(), false); GetPositionX(), GetPositionY(), GetPositionZ(), false);