Server: Limit hitbody sound in traceattacks to entities that can actually bleed, not just take damage
This commit is contained in:
parent
6da1f3c4fa
commit
25f657532c
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ TraceAttack_FireSingle(vector vecPos, vector vAngle, int iDamage, int iWeapon)
|
|||
if (trace_fraction >= 1.0f)
|
||||
return;
|
||||
|
||||
if (trace_ent.takedamage == DAMAGE_YES) {
|
||||
if (trace_ent.takedamage == DAMAGE_YES && trace_ent.iBleeds) {
|
||||
Sound_Play(trace_ent, CHAN_BODY, "damage_bullet.hit");
|
||||
|
||||
#ifdef CSTRIKE
|
||||
|
|
Loading…
Reference in a new issue