mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-06-20 15:39:25 +02:00
docs(Core/Travel): Note why setAreaCost(12,13) is not ported (mmap dataset diverges)
This commit is contained in:
parent
59f82465e1
commit
2913db8964
@ -723,6 +723,13 @@ std::vector<WorldPosition> WorldPosition::getPathStepFrom(WorldPosition startPos
|
|||||||
// fire — apply the same bot cost biases here so generated paths
|
// fire — apply the same bot cost biases here so generated paths
|
||||||
// match what bots prefer at runtime (STEEP/water are reachable
|
// match what bots prefer at runtime (STEEP/water are reachable
|
||||||
// but not preferred).
|
// but not preferred).
|
||||||
|
//
|
||||||
|
// Reference also applies setAreaCost(12, 5) + setAreaCost(13, 20)
|
||||||
|
// here. Not ported: reference and AC use different mmap generators
|
||||||
|
// and Detour area-id assignments diverge — raw IDs 12/13 are
|
||||||
|
// unlikely to match any polys on AC's navmesh and could no-op or
|
||||||
|
// bias something unintended. If we ever regenerate mmaps to match
|
||||||
|
// the reference dataset, revisit.
|
||||||
path.SetNavTerrainCost(NAV_GROUND_STEEP, 5.0f);
|
path.SetNavTerrainCost(NAV_GROUND_STEEP, 5.0f);
|
||||||
path.SetNavTerrainCost(NAV_WATER, 10.0f);
|
path.SetNavTerrainCost(NAV_WATER, 10.0f);
|
||||||
auto result = getPathStepFrom(startPos, path);
|
auto result = getPathStepFrom(startPos, path);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user