From 63e16f78ab4746a5510aefb90005927d9504fa21 Mon Sep 17 00:00:00 2001 From: In-line Date: Fri, 30 Jun 2017 15:22:33 +0400 Subject: [PATCH] Fix fall sound bug (#169) --- regamedll/dlls/player.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/regamedll/dlls/player.cpp b/regamedll/dlls/player.cpp index 3d8899d5..6e88fe70 100644 --- a/regamedll/dlls/player.cpp +++ b/regamedll/dlls/player.cpp @@ -4900,7 +4900,11 @@ void EXT_FUNC CBasePlayer::__API_VHOOK(PostThink)() // NOTE: play on item channel because we play footstep landing on body channel EMIT_SOUND(ENT(pev), CHAN_ITEM, "common/bodysplat.wav", VOL_NORM, ATTN_NORM); } +#ifdef REGAMEDLL_FIXES + if (flFallDamage >= 1.0f) +#else if (flFallDamage > 0) +#endif { m_LastHitGroup = HITGROUP_GENERIC; TakeDamage(VARS(eoNullEntity), VARS(eoNullEntity), flFallDamage, DMG_FALL);