void CFuncTank::Think( void ) { pev->avelocity = g_vecZero; TrackTarget(); if( fabs( pev->avelocity.x ) > 1 || fabs( pev->avelocity.y ) > 1 ) StartRotSound(); else StopRotSound(); }
/* <8f717> ../cstrike/dlls/func_tank.cpp:477 */ void CFuncTank::__MAKE_VHOOK(Think)(void) { pev->avelocity = g_vecZero; TrackTarget(); if (fabs((float_precision)pev->avelocity.x) > 1 || fabs((float_precision)pev->avelocity.y) > 1) StartRotSound(); else StopRotSound(); }
void CFuncTank::Think( void ) { // refresh the matrix UpdateMatrix(); SetLocalAngularVelocity( vec3_angle ); TrackTarget(); if ( fabs(GetLocalAngularVelocity().x) > 1 || fabs(GetLocalAngularVelocity().y) > 1 ) StartRotSound(); else StopRotSound(); }