From: Mircea Kitsune Date: Wed, 4 Jan 2012 21:29:46 +0000 (+0200) Subject: Fix a bug causing damage effects to not show for alt-fire hits X-Git-Tag: xonotic-v0.6.0~110^2^2~61 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=426ebfae15f715398aff635c411656aa6d608310;p=xonotic%2Fxonotic-data.pk3dir.git Fix a bug causing damage effects to not show for alt-fire hits --- diff --git a/qcsrc/client/damage.qc b/qcsrc/client/damage.qc index c858f7eaa..4b7e4658c 100644 --- a/qcsrc/client/damage.qc +++ b/qcsrc/client/damage.qc @@ -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.