]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
If the weapon is a bullet weapon (shotgun uzi or sniper), its damage effect is blood...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 2 Apr 2011 17:09:45 +0000 (20:09 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 2 Apr 2011 17:09:45 +0000 (20:09 +0300)
qcsrc/client/gibs.qc

index 4527239b74c8a75094c7791f7e33b82ab2765cbf..8a0f055f16112c46949ec00eeef1624b16ce9b3d 100644 (file)
@@ -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);