From 42d4ffbd7483bb40fdee21e51d830db3baa9e3fd Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Tue, 31 Jan 2012 14:23:09 +0200 Subject: [PATCH] Don't show ammo on the HUD when dead --- data/qcsrc/client/hud.qc | 4 ++++ docs/TODO.txt | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) 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 -- 2.39.2