From a76bc9f07fa5f20cbc573c22e2b98bf751b0f031 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Tue, 15 Nov 2011 19:24:08 +0200 Subject: [PATCH] First implementation of powered systems. When armor (not treated as charge) is lower than 5, your heads-up-display will not show, until you have enough energy for it again --- data/qcsrc/client/sbar.qc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/data/qcsrc/client/sbar.qc b/data/qcsrc/client/sbar.qc index 40171815..84756fd3 100644 --- a/data/qcsrc/client/sbar.qc +++ b/data/qcsrc/client/sbar.qc @@ -3078,6 +3078,10 @@ void Sbar_Draw (void) fade = 3.2 - 2 * (time - weapontime); fade = bound(0.7, fade, 1); + if(getstati(STAT_HEALTH) > 0) + if(getstati(STAT_ARMOR) < g_power) + return; + if(g_vore) // only when the vore system is active { // draw the stomach board @@ -3181,10 +3185,6 @@ void Sbar_Draw (void) Sbar_PrintStomachboardItemPred(bottomleft - '-76 150 0', pred); } -// if(getstati(STAT_HEALTH) > 0) -// if(getstati(STAT_ARMOR) < g_power) -// return; - // draw status, scores, timer, and ring Sbar_Status(); Sbar_Score(); -- 2.39.2