Fixed func_rotating angles fix not being in the right place

This commit is contained in:
Blixibon 2021-01-24 22:28:55 -06:00
parent 01f830a72d
commit 6595b96418

View File

@ -960,18 +960,6 @@ void CFuncRotating::UpdateSpeed( float flNewSpeed )
RampPitchVol();
}
#ifdef MAPBASE
QAngle angNormalizedAngles = GetLocalAngles();
if (m_vecMoveAng.x)
angNormalizedAngles.x = AngleNormalize( angNormalizedAngles.x );
if (m_vecMoveAng.y)
angNormalizedAngles.y = AngleNormalize( angNormalizedAngles.y );
if (m_vecMoveAng.z)
angNormalizedAngles.z = AngleNormalize( angNormalizedAngles.z );
SetLocalAngles(angNormalizedAngles);
#endif
SetLocalAngularVelocity( m_vecMoveAng * m_flSpeed );
}
@ -1102,6 +1090,18 @@ void CFuncRotating::RotateMove( void )
{
SetMoveDoneTime( 10 );
#ifdef MAPBASE
QAngle angNormalizedAngles = GetLocalAngles();
if (m_vecMoveAng.x)
angNormalizedAngles.x = AngleNormalize( angNormalizedAngles.x );
if (m_vecMoveAng.y)
angNormalizedAngles.y = AngleNormalize( angNormalizedAngles.y );
if (m_vecMoveAng.z)
angNormalizedAngles.z = AngleNormalize( angNormalizedAngles.z );
SetLocalAngles(angNormalizedAngles);
#endif
if ( m_bStopAtStartPos )
{
SetMoveDoneTime( GetNextMoveInterval() );