]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Allow hud_dynamic_shake effect when dying
authorterencehill <piuntn@gmail.com>
Thu, 24 Mar 2016 21:41:44 +0000 (22:41 +0100)
committerterencehill <piuntn@gmail.com>
Thu, 24 Mar 2016 21:41:44 +0000 (22:41 +0100)
qcsrc/client/hud/hud.qc

index f27870988a6b62470c36f4bd57cb5a2c6901d6ca..fe08de6da781e71ff8c4fbe495c8abc363a1a2b9 100644 (file)
@@ -521,13 +521,13 @@ void Hud_Dynamic_Frame()
        hud_scale.x = (1 + hud_shift.z);
        hud_scale.y = hud_scale.x;
 
-       float health = STAT(HEALTH);
-       if(autocvar_hud_dynamic_shake > 0 && !autocvar__hud_configure && health > 0)
+       if(autocvar_hud_dynamic_shake > 0)
        {
                if(hud_dynamic_shake_factor == -1) // don't allow the effect for this frame
                        hud_dynamic_shake_factor = 0;
                else
                {
+                       float health = STAT(HEALTH);
                        float new_hud_dynamic_shake_factor = 0;
                        if(prev_health - health >= autocvar_hud_dynamic_shake_damage_min && autocvar_hud_dynamic_shake_damage_max > autocvar_hud_dynamic_shake_damage_min)
                        {