NSNavAI: set _m_flRouteGiveUp to something valid, and change our pathskip tracebox to work like the nodegraph one.

This commit is contained in:
Marco Cawthorne 2024-03-18 23:50:14 -07:00
parent c1eb4bcb99
commit 1514c977e9
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
1 changed files with 3 additions and 1 deletions

View File

@ -292,9 +292,10 @@ NSNavAI::RouteToPositionDenyFlags(vector destination, int denylinkflags)
p.m_iNodes = numnodes;
p.m_iCurNode = numnodes - 1;
p.m_pRoute = nodelist;
p._m_flRouteGiveUp = time + 4.0f;
//traceline(p.origin, dest, MOVE_NORMAL, this);
tracebox(p.origin, p.mins, p.maxs, dest, MOVE_NORMAL, this);
tracebox(p.origin, [-16, -16, -16], [16, 16, 16], dest, MOVE_NORMAL, this);
/* can we walk directly to our target destination? */
if (trace_fraction == 1.0) {
@ -314,6 +315,7 @@ NSNavAI::RouteToPositionDenyFlags(vector destination, int denylinkflags)
break;
}
}
}
}