From: Mircea Kitsune Date: Wed, 4 Jan 2012 23:12:31 +0000 (+0200) Subject: Fix blood-dependent damage effects X-Git-Tag: xonotic-v0.6.0~110^2^2~55 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6fd3c15ebdc853879653acdff98a1bcff9cc857a;p=xonotic%2Fxonotic-data.pk3dir.git Fix blood-dependent damage effects --- diff --git a/qcsrc/client/damage.qc b/qcsrc/client/damage.qc index 64e355470..9bb245260 100644 --- a/qcsrc/client/damage.qc +++ b/qcsrc/client/damage.qc @@ -296,13 +296,13 @@ void DamageEffect(vector hitorg, float dmg, float type, float specnum) // since blood is species dependent, use the species tag in this effect if(type == WEP_SHOTGUN || type == WEP_UZI || type == WEP_RIFLE) { - if(self.isplayermodel && specstr != "") + if(self.isplayermodel) { effectnum = strcat(effectnum, "_", specstr); effectnum = substring(effectnum, 0, strlen(effectnum) - 1); // remove the _ symbol at the end of the species tag } else - return; // objects can't bleed + return; // objects don't bleed } // if this is a player, damage effects will show on the limb the player was damaged on