Minor body lean fix from Alien Swarm SDK

This commit is contained in:
Blixibon 2021-11-07 07:37:41 -06:00
parent 7e96be39b2
commit 2f8e920c3e

View File

@ -2332,8 +2332,13 @@ void CBaseFlex::DoBodyLean( void )
{
m_vecPrevVelocity = vecDelta;
float decay = ExponentialDecay( 0.5, 0.1, dt );
#ifdef MAPBASE // From Alien Swarm SDK
m_vecShift = m_vecShift * decay;
m_vecLean = m_vecLean * decay;
#else
m_vecShift = m_vecLean * decay;
m_vecLean = m_vecShift * decay;
#endif
}
m_vecPrevOrigin = vecOrigin;