void CNPC_CombineDropship::DoRotorWash( void ) { Vector vecForward; GetVectors( &vecForward, NULL, NULL ); Vector vecRotorHub = GetAbsOrigin() + vecForward * -64; DrawRotorWash( DROPSHIP_WASH_ALTITUDE, vecRotorHub ); }
//----------------------------------------------------------------------------- // Rotor wash think //----------------------------------------------------------------------------- void CBaseHelicopter::RotorWashThink( void ) { if ( m_lifeState == LIFE_ALIVE || m_lifeState == LIFE_DYING ) { DrawRotorWash( BASECHOPPER_WASH_ALTITUDE, GetAbsOrigin() ); SetContextThink( &CBaseHelicopter::RotorWashThink, gpGlobals->curtime + HELICOPTER_ROTORWASH_THINK_INTERVAL, s_pRotorWashThinkContext ); } else { SetContextThink( NULL, gpGlobals->curtime, s_pRotorWashThinkContext ); } }
//----------------------------------------------------------------------------- // Purpose: //----------------------------------------------------------------------------- void CBaseHelicopter::DoRotorWash( void ) { DrawRotorWash( BASECHOPPER_WASH_ALTITUDE, GetAbsOrigin() ); }