From 6fd3c15ebdc853879653acdff98a1bcff9cc857a Mon Sep 17 00:00:00 2001 From: Mircea Kitsune Date: Thu, 5 Jan 2012 01:12:31 +0200 Subject: [PATCH] Fix blood-dependent damage effects --- qcsrc/client/damage.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.2