]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Properly fix the species effectnum
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 2 Apr 2011 20:25:04 +0000 (23:25 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 2 Apr 2011 20:25:04 +0000 (23:25 +0300)
qcsrc/client/gibs.qc

index 37d6e85e3e02c4abd57b60cdf0f652a0b6a6df4b..6dbd9f0e4397be431640e6423771a26ca21a56ee 100644 (file)
@@ -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);
 }