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

Function updatedmgindicator

source/src/renderhud.cpp:254–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252void *damageindicatorplayer = NULL;
253
254void updatedmgindicator(playerent *p, vec &attack)
255{
256 if(hidedamageindicator || !damageindicatorsize) return;
257 vec base_d = p->o;
258 base_d.sub(attack);
259 damagedirections[(int(742.5f - p->yaw - base_d.anglexy()) / 45) & 0x7] = lastmillis + damageindicatortime;
260 damageindicatorplayer = p;
261}
262
263void drawdmgindicator(playerent *p)
264{

Callers 2

hitFunction · 0.85
dodamageFunction · 0.85

Calls 1

anglexyMethod · 0.80

Tested by

no test coverage detected