From 1c83b7b27c93931e8bda9ad224bd57e3063012b5 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Sun, 5 Sep 2010 01:27:35 +0300 Subject: [PATCH] Turn the transition back to black when we die or go spectating --- data/qcsrc/client/sbar.qc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/data/qcsrc/client/sbar.qc b/data/qcsrc/client/sbar.qc index e62cca4a..496da10a 100644 --- a/data/qcsrc/client/sbar.qc +++ b/data/qcsrc/client/sbar.qc @@ -2593,6 +2593,12 @@ vector Stomachstatus_Colortrans(vector target_color) local float step; step = 0.0125; + if(spectatee_status == -1 || getstati(STAT_HEALTH) <= 0) + { + colortrans_current = '0 0 0'; + return colortrans_current; + } + if(colortrans_current_x > target_color_x + step) colortrans_current_x -= step; else if(colortrans_current_x < target_color_x - step) -- 2.39.2