From: Mircea Kitsune Date: Sat, 2 Apr 2011 20:25:04 +0000 (+0300) Subject: Properly fix the species effectnum X-Git-Tag: xonotic-v0.6.0~110^2^2~170 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a4b0012048e9f5063a6a978d9b98eae17b4eea3f;p=xonotic%2Fxonotic-data.pk3dir.git Properly fix the species effectnum --- diff --git a/qcsrc/client/gibs.qc b/qcsrc/client/gibs.qc index 37d6e85e3..6dbd9f0e4 100644 --- a/qcsrc/client/gibs.qc +++ b/qcsrc/client/gibs.qc @@ -301,8 +301,11 @@ void Ent_DamageEffect() // Since blood is species dependent, we make this effect per-species. if(type == WEP_SHOTGUN || type == WEP_UZI || type == WEP_SNIPERRIFLE) if(specstr != "") + { effectnum = strcat(effectnum, "_", specstr); + effectnum = substring(effectnum, 0, strlen(effectnum) - 1); // remove the _ symbol at the end of the species name + } - dprint(strcat("Origin is: ", vtos(org), " and weapon is: ", e.netname, " and species is: ", specstr, "\n")); + dprint(strcat(effectnum, "\n")); pointparticles(particleeffectnum(effectnum), org, '0 0 0', 1); }