//----------------------------------------------------------------------------- // Purpose: // //----------------------------------------------------------------------------- void CBaseHelicopter::DrawRotorWash( float flAltitude, Vector vecRotorOrigin ) { // Shake any ropes nearby if ( random->RandomInt( 0, 2 ) == 0 ) { CRopeKeyframe::ShakeRopes( GetAbsOrigin(), flAltitude, 128 ); } if ( m_spawnflags & SF_NOROTORWASH ) return; DoRotorPhysicsPush( vecRotorOrigin, flAltitude ); // Send down the rotor wash Vector vecDown( 0, 0, -1 ); UTIL_RotorWash( vecRotorOrigin, vecDown, flAltitude ); }
//----------------------------------------------------------------------------- // Purpose: //----------------------------------------------------------------------------- void CBaseHelicopter::DrawRotorWash( float flAltitude, const Vector &vecRotorOrigin ) { // Shake any ropes nearby if ( random->RandomInt( 0, 2 ) == 0 ) { CRopeKeyframe::ShakeRopes( GetAbsOrigin(), flAltitude, 128 ); } if ( m_spawnflags & SF_NOROTORWASH ) return; DoRotorPhysicsPush( vecRotorOrigin, flAltitude ); if ( m_flRotorWashEntitySearchTime > gpGlobals->curtime ) return; // Only push every half second m_flRotorWashEntitySearchTime = gpGlobals->curtime + 0.5f; }