From: MirceaKitsune Date: Tue, 31 Jan 2012 12:23:09 +0000 (+0200) Subject: Don't show ammo on the HUD when dead X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=42d4ffbd7483bb40fdee21e51d830db3baa9e3fd;p=voretournament%2Fvoretournament.git Don't show ammo on the HUD when dead --- diff --git a/data/qcsrc/client/hud.qc b/data/qcsrc/client/hud.qc index 043e360c..646eb7e1 100644 --- a/data/qcsrc/client/hud.qc +++ b/data/qcsrc/client/hud.qc @@ -2015,6 +2015,10 @@ void Sbar_Status() health_pos -= '1 0 0' * stringwidth(ftos(x), FALSE, '22 22 0') * 0.5; Sbar_DrawXNum(health_pos, x, 3, 0, 22, Sbar_NumColor(x), sbar_alpha_fg, DRAWFLAG_NORMAL); + // if we are dead, we can skip the HUD from here + if(health <= 0) + return; + // ammo pos_x = bottom_x + 140; pos_y = bottom_y - 20; diff --git a/docs/TODO.txt b/docs/TODO.txt index 2004ce95..cc558a47 100644 --- a/docs/TODO.txt +++ b/docs/TODO.txt @@ -124,6 +124,4 @@ - 0.7: HUD icon when stunned. -- 0.7: Better portrait images. - -- 0.7: Don't show fuel on the HUD when dead and in the stomach. \ No newline at end of file +- 0.7: Better portrait images. \ No newline at end of file