]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix a bug causing damage effects to not show for alt-fire hits
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 4 Jan 2012 21:29:46 +0000 (23:29 +0200)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 4 Jan 2012 21:29:46 +0000 (23:29 +0200)
qcsrc/client/damage.qc

index c858f7eaa50f45f25d7e4b2ff94796e91d88d433..4b7e4658cd1a79d038f6e578c0311e3af51623a8 100644 (file)
@@ -289,6 +289,7 @@ void DamageEffect(vector hitorg, float dmg, float type, float specnum, float ent
        specstr = species_prefix(specnum);
        life = bound(autocvar_cl_damageeffect_lifetime_min, dmg * autocvar_cl_damageeffect_lifetime, autocvar_cl_damageeffect_lifetime_max);
 
+       type = DEATH_WEAPONOF(type);
        e = get_weaponinfo(type);
        effectnum = strcat("weapondamage_", e.netname);
        // If the weapon is a bullet weapon, its damage effect is blood.