mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-04-14 21:42:27 +03:00
Fix player's velocity on pushable use (#352)
* Fix player's velocity on pushable use
This commit is contained in:
parent
d67492482a
commit
b5a0fa4736
@ -1056,8 +1056,11 @@ void CPushable::Move(CBaseEntity *pOther, int push)
|
|||||||
|
|
||||||
if (bPlayerTouch)
|
if (bPlayerTouch)
|
||||||
{
|
{
|
||||||
|
// do not push player along with entity
|
||||||
|
#ifndef REGAMEDLL_FIXES
|
||||||
pevToucher->velocity.x = pev->velocity.x;
|
pevToucher->velocity.x = pev->velocity.x;
|
||||||
pevToucher->velocity.y = pev->velocity.y;
|
pevToucher->velocity.y = pev->velocity.y;
|
||||||
|
#endif // REGAMEDLL_FIXES
|
||||||
|
|
||||||
if ((gpGlobals->time - m_soundTime) > 0.7f)
|
if ((gpGlobals->time - m_soundTime) > 0.7f)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user