Ejemplo n.º 1
0
void CPortableThumper::ThumpThink( void )
{
	EmitSound( "PortableThumper.ThumpSound" );

	UTIL_RotorWash( GetAbsOrigin() + Vector( 0, 0, 32 ), Vector( 0, 0, -1 ), 512 );	

	SetNextThink( gpGlobals->curtime + thumpFrequency.GetFloat() );

	CSoundEnt::InsertSound( SOUND_THUMPER, GetAbsOrigin(), thumpRadius.GetInt(), 0.2, this );
}
//-----------------------------------------------------------------------------
// 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 );
}