From: MirceaKitsune Date: Tue, 3 May 2011 14:05:56 +0000 (+0300) Subject: Draw the two sbar rings. They will be used to indicate certain things, including... X-Git-Url: https://de.git.xonotic.org/?p=voretournament%2Fvoretournament.git;a=commitdiff_plain;h=7f1609a8c1ba223e1fcf95eb3f24177876b78a83 Draw the two sbar rings. They will be used to indicate certain things, including slow swallowing once it will be implemented. --- diff --git a/data/qcsrc/client/sbar.qc b/data/qcsrc/client/sbar.qc index b6881b45..7fa1280d 100644 --- a/data/qcsrc/client/sbar.qc +++ b/data/qcsrc/client/sbar.qc @@ -1978,6 +1978,18 @@ void Sbar_Timer() drawstring(pos, finaltime, 18 * scale * '1 1 0', timer_color, sbar_alpha_fg, DRAWFLAG_NORMAL); } +void Sbar_Ring() +{ + vector pos; + pos_x = vid_conwidth / 2; + pos_y = vid_conheight / 1.375; + pos_z = 0; + + DrawCircleClippedPic(pos, 100, "gfx/hud/sb_ring.tga", 0.85, '1 1 1', 1 * sbar_alpha_fg, DRAWFLAG_ADDITIVE); + + DrawCircleClippedPic(pos, 80, "gfx/hud/sb_ring.tga", 0.75, '1 1 1', 1 * sbar_alpha_fg, DRAWFLAG_ADDITIVE); +} + void CSQC_Strength_Timer() { vector pos; vector bottomright; @@ -3085,9 +3097,10 @@ void Sbar_Draw (void) if (e && e.netname != "" && e.netname != "N/A") drawpic(bottom - '96 96 0', strcat("gfx/hud/bg_status_activeweapon_", e.netname), '192 96 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL); - // draw scores and timer + // draw scores, timer, and ring Sbar_Score(); Sbar_Timer(); + Sbar_Ring(); // draw strength/invincibility icon and timer CSQC_Strength_Timer();