From 1249dc120cf78fba1b4a9befaccf89a69566fa5c Mon Sep 17 00:00:00 2001 From: Mircea Kitsune Date: Sat, 2 Apr 2011 20:09:45 +0300 Subject: [PATCH] If the weapon is a bullet weapon (shotgun uzi or sniper), its damage effect is blood. Since blood is species dependent, we make their effects per-species. --- qcsrc/client/gibs.qc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcsrc/client/gibs.qc b/qcsrc/client/gibs.qc index 4527239b7..8a0f055f1 100644 --- a/qcsrc/client/gibs.qc +++ b/qcsrc/client/gibs.qc @@ -297,6 +297,10 @@ void Ent_DamageEffect() specstr = species_prefix(specnum2); effectnum = strcat("weapondamage_", e.netname); + // If the weapon is a bullet weapon, its damage effect is blood. + // Since blood is species dependent, we make this effect per-species. + if(type == WEP_SHOTGUN || type == WEP_UZI || type == WEP_SNIPERRIFLE) + effectnum = strcat(effectnum, specstr); dprint(strcat("Origin is: ", vtos(org), " and weapon is: ", e.netname, " and species is: ", specstr, "\n")); pointparticles(particleeffectnum(effectnum), org, '0 0 0', 1); -- 2.39.2