Go to the source code of this file.
◆ HUD_Mod_Keepaway()
Definition at line 13 of file cl_keepaway.qc.
References blink(), bound(), DRAWFLAG_NORMAL, drawpic_aspect_skin, drawpic_aspect_skin_expanding(), eX, eY, kaball_prevstatus, kaball_statuschange_time, mod_active, panel_fg_alpha, time, vec2, and vector().
Referenced by Keepaway::Keepaway ::m_isAlwaysSupported().
17 float kaball_alpha =
blink(0.85, 0.15, 5);
19 int kaball = (STAT(OBJECTIVE_STATUS) & KA_CARRYING);
27 vector kaball_pos, kaball_size;
29 if(mySize.x > mySize.y) {
30 kaball_pos = pos +
eX * 0.25 * mySize.x;
31 kaball_size =
vec2(0.5 * mySize.x, mySize.y);
33 kaball_pos = pos +
eY * 0.25 * mySize.y;
34 kaball_size =
vec2(mySize.x, 0.5 * mySize.y);
38 float f =
bound(0, kaball_statuschange_elapsedtime*2, 1);
float kaball_statuschange_time
ERASEABLE float blink(float base, float range, float freq)
#define drawpic_aspect_skin(pos, pic, sz, color, theAlpha, drawflag)
void drawpic_aspect_skin_expanding(vector position, string pic, vector theScale, vector rgb, float theAlpha, float flag, float fadelerp)
const float DRAWFLAG_NORMAL
vector(float skel, float bonenum) _skel_get_boneabs_hidden