Go to the source code of this file.
◆ HUD_Mod_Keepaway()
Definition at line 13 of file cl_keepaway.qc.
14{
15 if (!should_draw)
16 return;
17
19
20 float kaball_alpha =
blink(0.85, 0.15, 5);
21
23
25 {
28 }
29
30 vector kaball_pos, kaball_size;
31
32 if(mySize.x > mySize.y) {
33 kaball_pos = pos +
eX * 0.25 * mySize.x;
34 kaball_size =
vec2(0.5 * mySize.x, mySize.y);
35 } else {
36 kaball_pos = pos +
eY * 0.25 * mySize.y;
37 kaball_size =
vec2(mySize.x, 0.5 * mySize.y);
38 }
39
41 float f =
bound(0, kaball_statuschange_elapsedtime*2, 1);
42
45
46 if(kaball)
48}
float kaball_statuschange_time
void drawpic_aspect_skin_expanding(vector position, string pic, vector theScale, vector rgb, float theAlpha, float flag, float fadelerp)
#define drawpic_aspect_skin(pos, pic, sz, color, theAlpha, drawflag)
ERASEABLE float blink(float base, float range, float freq)
const float DRAWFLAG_NORMAL
References blink(), bound(), DRAWFLAG_NORMAL, drawpic_aspect_skin, drawpic_aspect_skin_expanding(), eX, eY, KA_CARRYING, kaball_prevstatus, kaball_statuschange_time, mod_active, panel_fg_alpha, STAT, time, vec2, and vector.
Referenced by Keepaway::void().