From a4b0012048e9f5063a6a978d9b98eae17b4eea3f Mon Sep 17 00:00:00 2001 From: Mircea Kitsune Date: Sat, 2 Apr 2011 23:25:04 +0300 Subject: [PATCH] Properly fix the species effectnum --- qcsrc/client/gibs.qc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); } -- 2.39.2