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

Function getradarpos

source/src/renderhud.cpp:453–458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

451bool isattacking(playerent *p) { return lastmillis-p->lastaction < 500; }
452
453vec getradarpos()
454{
455 float radarviewsize = VIRTH/6;
456 float overlaysize = radarviewsize*4.0f/3.25f;
457 return vec(VIRTW-10-VIRTH/28-overlaysize, 10+VIRTH/52, 0);
458}
459
460VARP(showmapbackdrop, 0, 0, 2);
461VARP(showmapbackdroptransparency, 0, 75, 100);

Callers 1

renderMethod · 0.85

Calls 1

vecClass · 0.85

Tested by

no test coverage detected