From b5a0fa4736302e6ae297c67944b76314aa1128fd Mon Sep 17 00:00:00 2001 From: voed Date: Thu, 11 Apr 2019 02:31:54 +0300 Subject: [PATCH] Fix player's velocity on pushable use (#352) * Fix player's velocity on pushable use --- regamedll/dlls/func_break.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/regamedll/dlls/func_break.cpp b/regamedll/dlls/func_break.cpp index 84c30a7b..60093d88 100644 --- a/regamedll/dlls/func_break.cpp +++ b/regamedll/dlls/func_break.cpp @@ -1056,8 +1056,11 @@ void CPushable::Move(CBaseEntity *pOther, int push) if (bPlayerTouch) { +// do not push player along with entity +#ifndef REGAMEDLL_FIXES pevToucher->velocity.x = pev->velocity.x; pevToucher->velocity.y = pev->velocity.y; +#endif // REGAMEDLL_FIXES if ((gpGlobals->time - m_soundTime) > 0.7f) {