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

Function damageblend

source/src/renderhud.cpp:716–722  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

714VARP(damagescreenfade, 0, 125, 1000);
715
716void damageblend(int n, void *p)
717{
718 if(!damagescreen) return;
719 if(lastmillis > damageblendmillis || damageblendplayer != p) damageblendmillis = lastmillis;
720 damageblendmillis = min(damageblendmillis + n * damagescreenfactor, lastmillis + 3999);
721 damageblendplayer = p;
722}
723
724inline char rangecolor(int val, const char *colors, int thres1, int thres2, int thres3)
725{

Callers 2

hitFunction · 0.85
dodamageFunction · 0.85

Calls 1

minFunction · 0.85

Tested by

no test coverage detected