Server: Limit hitbody sound in traceattacks to entities that can actually bleed, not just take damage

This commit is contained in:
Marco Cawthorne 2021-04-10 22:49:30 +02:00
parent 6da1f3c4fa
commit 25f657532c

View file

@ -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