Compare commits

...

2 Commits

Author SHA1 Message Date
bash
99039199e0 updated extract script 2026-05-10 16:58:16 +02:00
bash
1f7aa7394b feat(Core/Travel): Cap bots at NAV_GROUND_STEEP via AddExcludeFlag 2026-05-10 16:08:16 +02:00
2 changed files with 2 additions and 1 deletions

View File

@ -38,7 +38,7 @@ mmapsConfig:
# Maximum slope angle (in degrees) NPCs can walk on. # Maximum slope angle (in degrees) NPCs can walk on.
# Surfaces steeper than this will be considered unwalkable. # Surfaces steeper than this will be considered unwalkable.
walkableSlopeAngle: 50 walkableSlopeAngle: 60
# --- Cell Size Calculation --- # --- Cell Size Calculation ---
# Many parameters below are defined in "cell units". # Many parameters below are defined in "cell units".

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);