From: MirceaKitsune Date: Sat, 4 Sep 2010 22:27:35 +0000 (+0300) Subject: Turn the transition back to black when we die or go spectating X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1c83b7b27c93931e8bda9ad224bd57e3063012b5;p=voretournament%2Fvoretournament.git Turn the transition back to black when we die or go spectating --- 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)