fix: nav: overlap between occupied node check and player avoid distance
fix: bot: debug overlay flickering in some situations
This commit is contained in:
parent
5019e0f872
commit
7a7a9c3146
5 changed files with 14 additions and 10 deletions
|
|
@ -3044,7 +3044,7 @@ bool Bot::isOccupiedNode (int index, bool needZeroVelocity) {
|
|||
}
|
||||
const auto length = client.origin.distanceSq (graph[index].origin);
|
||||
|
||||
if (length < cr::clamp (cr::sqrf (graph[index].radius) * 2.0f, cr::sqrf (40.0f), cr::sqrf (90.0f))) {
|
||||
if (length < cr::clamp (cr::sqrf (graph[index].radius) * 2.0f, cr::sqrf (90.0f), cr::sqrf (120.0f))) {
|
||||
return true;
|
||||
}
|
||||
auto bot = bots[client.ent];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue