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

Function drawhudgun

source/src/rendergl.cpp:951–963  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

949}
950
951void drawhudgun()
952{
953 sethudgunperspective(true);
954
955 if(hudgun && (specthudgun || !player1->isspectating()) && camera1->type==ENT_PLAYER)
956 {
957 playerent *p = (playerent *)camera1;
958 if(p->state==CS_ALIVE) p->weaponsel->renderhudmodel();
959 }
960 rendermenumdl();
961
962 sethudgunperspective(false);
963}
964
965bool outsidemap(physent *pl)
966{

Callers 1

gl_drawframeFunction · 0.85

Calls 4

sethudgunperspectiveFunction · 0.85
rendermenumdlFunction · 0.85
isspectatingMethod · 0.80
renderhudmodelMethod · 0.80

Tested by

no test coverage detected