]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Disable damage blur when dead, but keep content blur. Also tweak the death fade to...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 7 Jul 2011 13:09:43 +0000 (16:09 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 7 Jul 2011 13:09:43 +0000 (16:09 +0300)
data/defaultVT.cfg
data/qcsrc/client/View.qc

index 19c23f08b8881ec095d096a8f3d3b31a2b143781..0c09e3c1db108bd23dc3afd3f18a70fabc0365a1 100644 (file)
@@ -167,7 +167,7 @@ v_deathtilt 0 // needed for spectators (who are dead to avoid prediction)
 \r
 // these settings determine how much the view is affected by movement/damage\r
 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\r
-cl_deathfade 1 // fade screen to dark red when dead, value represents how fast the fade is (higher is faster)\r
+cl_deathfade 0.03 // fade screen to dark red when dead, value represents how fast the fade is (higher is faster)\r
 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\r
 cl_bob 0.01 // how much view moves up/down when moving (does not move if cl_bobcycle is 0), default is 0.01\r
 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\r
index f88392ead701ff9805ddf4f8eebc554339112755..c957f0f3b4222a2e06fc0e60d3273f8b9e3d9e25 100644 (file)
@@ -741,6 +741,10 @@ void CSQC_UpdateView(float w, float h)
        {\r
                // all of this should be done in the engine eventually\r
 \r
+               // disable damage blur when dead, but keep content blur\r
+               if(getstati(STAT_HEALTH) <= 0)\r
+                       damage_blurpostprocess = '0 0 0';\r
+\r
                // enable or disable rendering types if they are used or not\r
                if(cvar("r_glsl_postprocess_uservec1_enable") != (cvar("hud_postprocessing_maxbluralpha") != 0))\r
                        cvar_set("r_glsl_postprocess_uservec1_enable", ftos(cvar("hud_postprocessing_maxbluralpha") != 0));\r