From: Mircea Kitsune Date: Sat, 2 Apr 2011 17:09:45 +0000 (+0300) Subject: If the weapon is a bullet weapon (shotgun uzi or sniper), its damage effect is blood... X-Git-Tag: xonotic-v0.6.0~110^2^2~172 X-Git-Url: https://de.git.xonotic.org/?a=commitdiff_plain;h=1249dc120cf78fba1b4a9befaccf89a69566fa5c;p=xonotic%2Fxonotic-data.pk3dir.git 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. --- 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);