/* <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 ) { pev->avelocity = g_vecZero; TrackTarget(); if( fabs( pev->avelocity.x ) > 1 || fabs( 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(); }
//----------------------------------------------------------------------------- // Purpose: //----------------------------------------------------------------------------- void CFuncTank::TankDeactivate(void) { m_spawnflags &= ~SF_TANK_ACTIVE; m_fireLast = 0; StopRotSound(); }
//----------------------------------------------------------------------------- // Purpose: //----------------------------------------------------------------------------- void CAPCController::DeactivateRocketGuidance(void) { m_spawnflags &= ~SF_TANK_ACTIVE; StopRotSound(); }
inline void TankDeactivate(void) { pev->spawnflags &= ~SF_TANK_ACTIVE; m_fireLast = 0; StopRotSound(); }