mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2024-12-26 06:45:31 +03:00
Minor body lean fix from Alien Swarm SDK
This commit is contained in:
parent
7e96be39b2
commit
2f8e920c3e
@ -2332,8 +2332,13 @@ void CBaseFlex::DoBodyLean( void )
|
|||||||
{
|
{
|
||||||
m_vecPrevVelocity = vecDelta;
|
m_vecPrevVelocity = vecDelta;
|
||||||
float decay = ExponentialDecay( 0.5, 0.1, dt );
|
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_vecShift = m_vecLean * decay;
|
||||||
m_vecLean = m_vecShift * decay;
|
m_vecLean = m_vecShift * decay;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
m_vecPrevOrigin = vecOrigin;
|
m_vecPrevOrigin = vecOrigin;
|
||||||
|
Loading…
Reference in New Issue
Block a user