MCPcopy Create free account
hub / github.com/ValveSoftware/source-sdk-2013 / BuildAndGetPathDistToGoal

Method BuildAndGetPathDistToGoal

src/game/server/ai_navigator.cpp:3328–3340  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Computes the distance to our goal, rebuilding waypoint distances if necessary. Returns -1 if we still don't have a valid path length after rebuilding. NOTE: this should really be part of GetPathDistToGoal below, but I didn't want to affect OnFailedSteer this close to shipping! (dvs: 8/16/07) ----------------------------

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

GetTimeToNavGoalMethod · 0.80

Calls 2

GetPathLengthMethod · 0.80
GetCurWaypointMethod · 0.80

Tested by

no test coverage detected