From: MirceaKitsune Date: Tue, 15 Nov 2011 17:24:08 +0000 (+0200) Subject: First implementation of powered systems. When armor (not treated as charge) is lower... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a76bc9f07fa5f20cbc573c22e2b98bf751b0f031;p=voretournament%2Fvoretournament.git 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 --- 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();