]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Do show damage effects on our own gibs, even when not in third person mode.
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 10 Apr 2011 16:37:49 +0000 (19:37 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 10 Apr 2011 16:37:49 +0000 (19:37 +0300)
qcsrc/client/gibs.qc

index 2ce8a9012d990f2ee43faf4e76fc524a066a03c8..7239fffe283c4094f490e6ecbbd4af7164aa2e5a 100644 (file)
@@ -296,9 +296,6 @@ void Ent_DamageEffect()
                return;
        if(autocvar_cl_gentle || autocvar_cl_gentle_damage)
                return;
-       // if we aren't in third person mode, hide our own damage effect
-       if(entnumber == player_localentnum && !autocvar_chase_active)
-               return;
 
        e = get_weaponinfo(type);
 
@@ -327,6 +324,10 @@ void Ent_DamageEffect()
                        pointparticles(particleeffectnum(effectnum), head.origin, '0 0 0', 1);
        }
 
+       // if we aren't in third person mode, hide our own damage effect
+       if(entnumber == player_localentnum && !autocvar_chase_active)
+               return;
+
        // Now apply the effect to the player. This shouldn't be done on gibbed bodies, but there's no way
        // to tell between them and the respawned player, if both have damage effects at the same time.
        if(random() < autocvar_cl_damageeffect)