Пользователь
-
Автор темы
- #1
C++:
if ( pPlayerPawn->m_vecVelocity( ).Length( ELengthType::2D ) > 10.0 )
{
const auto OldestVelocity = pPlayerPawn->m_vecVelocity( );
if ( pPlayerPawn->ChangeVelocityDirection( OldestVelocity, pPlayerPawn->m_vecVelocity( ) ) )
{
bCanChangeVelocityDirection = true;
if ( OldestVelocity <= 20.0
|| OldestVelocity > pPlayerPawn->m_vecVelocity( ) )
bCanChangeVelocityDirection = false;
}
}
else
{
#ifdef VALVE_SHIZO
bCanChangeVelocityDirection = true;
#endif
}