From: Mircea Kitsune Date: Sat, 14 May 2011 14:22:43 +0000 (+0300) Subject: No postprocessing effects when the event chasecam is active X-Git-Tag: xonotic-v0.5.0~173^2~3^2~7 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a84e4dcc49d383f06db5e2dfed0c40c93a42fed0;p=xonotic%2Fxonotic-data.pk3dir.git No postprocessing effects when the event chasecam is active --- diff --git a/qcsrc/client/View.qc b/qcsrc/client/View.qc index f6461cb96..2c678e86c 100644 --- a/qcsrc/client/View.qc +++ b/qcsrc/client/View.qc @@ -887,7 +887,7 @@ void CSQC_UpdateView(float w, float h) cvar_set("r_glsl_postprocess_uservec2_enable", ftos(cvar("hud_powerup") != 0)); // lets apply the postprocess effects from the previous two functions if needed - if(damage_blurpostprocess_x || content_blurpostprocess_x) + if((damage_blurpostprocess_x || content_blurpostprocess_x) && autocvar_chase_active >= 0) // not while the event camera is active { float blurradius = bound(0, damage_blurpostprocess_y + content_blurpostprocess_y, autocvar_hud_postprocessing_maxblurradius); float bluralpha = bound(0, damage_blurpostprocess_z + content_blurpostprocess_z, autocvar_hud_postprocessing_maxbluralpha); @@ -911,7 +911,7 @@ void CSQC_UpdateView(float w, float h) if (getstatf(STAT_INVINCIBLE_FINISHED) - time > 0) sharpen_intensity += (getstatf(STAT_INVINCIBLE_FINISHED) - time); - if(autocvar_hud_powerup && sharpen_intensity > 0) + if(autocvar_hud_powerup && sharpen_intensity > 0 && autocvar_chase_active >= 0) // not while the event camera is active { sharpen_intensity = bound(0, sharpen_intensity, 5); // powerup warning time is 5 seconds, so fade the effect from there