From: Mircea Kitsune Date: Sun, 10 Apr 2011 16:37:49 +0000 (+0300) Subject: Do show damage effects on our own gibs, even when not in third person mode. X-Git-Tag: xonotic-v0.6.0~110^2^2~116 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1f7a2f1a806c0263e85046ac84504af6a8c55f47;p=xonotic%2Fxonotic-data.pk3dir.git Do show damage effects on our own gibs, even when not in third person mode. --- diff --git a/qcsrc/client/gibs.qc b/qcsrc/client/gibs.qc index 2ce8a9012..7239fffe2 100644 --- a/qcsrc/client/gibs.qc +++ b/qcsrc/client/gibs.qc @@ -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)