]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix blood-dependent damage effects
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 4 Jan 2012 23:12:31 +0000 (01:12 +0200)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 4 Jan 2012 23:12:31 +0000 (01:12 +0200)
qcsrc/client/damage.qc

index 64e3554703977b9a96768d9f89698b62c0965196..9bb245260630d65cda2b83cbf6879fe42bf0c4b6 100644 (file)
@@ -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