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

Method IsVisible

source/src/bot/bot.cpp:296–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294}
295
296bool CBot::IsVisible(entity *e, bool CheckPlayers)
297{
298 vec v(e->x, e->y, e->z);
299 return ::IsVisible(m_pMyEnt->o, v, (CheckPlayers) ? m_pMyEnt : NULL);
300}
301
302bool CBot::IsVisible(vec o, int Dir, float flDist, bool CheckPlayers, float *pEndDist)
303{

Callers

nothing calls this directly

Calls 8

IsVisibleFunction · 0.85
WrapXAngleFunction · 0.85
WrapYZAngleFunction · 0.85
AnglesToVectorsFunction · 0.85
TraceLineFunction · 0.85
GetDistanceFunction · 0.85
mulMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected