From: MirceaKitsune Date: Thu, 7 Jul 2011 13:09:43 +0000 (+0300) Subject: Disable damage blur when dead, but keep content blur. Also tweak the death fade to... X-Git-Url: http://de.git.xonotic.org/?p=voretournament%2Fvoretournament.git;a=commitdiff_plain;h=eba2467b1191db2353b99dca6fe7d0a4e6dd67e8 Disable damage blur when dead, but keep content blur. Also tweak the death fade to be much slower (screen going red after you die). --- diff --git a/data/defaultVT.cfg b/data/defaultVT.cfg index 19c23f08..0c09e3c1 100644 --- a/data/defaultVT.cfg +++ b/data/defaultVT.cfg @@ -167,7 +167,7 @@ v_deathtilt 0 // needed for spectators (who are dead to avoid prediction) // these settings determine how much the view is affected by movement/damage cl_smoothviewheight 0.2 // time of the averaging to the viewheight value so that it creates a smooth transition for crouching and such. 0 for instant transition -cl_deathfade 1 // fade screen to dark red when dead, value represents how fast the fade is (higher is faster) +cl_deathfade 0.03 // fade screen to dark red when dead, value represents how fast the fade is (higher is faster) cl_bobcycle 0.6 // how long the cycle of up/down view movement takes (only works if cl_bob is not 0), default is 0.6 cl_bob 0.01 // how much view moves up/down when moving (does not move if cl_bobcycle is 0), default is 0.01 cl_bob2cycle 0.6 // how long the cycle of left/right view movement takes (only works if cl_bob2 is not 0), default is 0.6 diff --git a/data/qcsrc/client/View.qc b/data/qcsrc/client/View.qc index f88392ea..c957f0f3 100644 --- a/data/qcsrc/client/View.qc +++ b/data/qcsrc/client/View.qc @@ -741,6 +741,10 @@ void CSQC_UpdateView(float w, float h) { // all of this should be done in the engine eventually + // disable damage blur when dead, but keep content blur + if(getstati(STAT_HEALTH) <= 0) + damage_blurpostprocess = '0 0 0'; + // enable or disable rendering types if they are used or not if(cvar("r_glsl_postprocess_uservec1_enable") != (cvar("hud_postprocessing_maxbluralpha") != 0)) cvar_set("r_glsl_postprocess_uservec1_enable", ftos(cvar("hud_postprocessing_maxbluralpha") != 0));