MCPcopy Create free account
hub / github.com/assaultcube/AC / IsVisible

Function IsVisible

source/src/bot/bot_util.cpp:321–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319}
320
321bool IsVisible(vec v1, vec v2, dynent *tracer, bool SkipTags)
322{
323 traceresult_s tr;
324 TraceLine(v1, v2, tracer, (tracer!=NULL), &tr, SkipTags);
325 return !tr.collided;
326}
327
328// Prediction:
329// - pos: Current position

Callers 15

HeadToTargetEntMethod · 0.85
IsVisibleMethod · 0.85
WPIsReachableMethod · 0.85
GetNearestWaypointMethod · 0.85
ConnectFloodWPMethod · 0.85
GetNearestFloodWPMethod · 0.85
HeadToWaypointMethod · 0.85
CurrentWPIsValidMethod · 0.85
ReachedGoalWPMethod · 0.85
DetectEnemyMethod · 0.85

Calls 1

TraceLineFunction · 0.85

Tested by

no test coverage detected