//=============================================================================
// BioDrop.
//=============================================================================
class BioDrop expands BioGel;

auto state Flying
{
	function HitWall( vector HitNormal, actor Wall )
	{
		SetRotation(Rotation(HitNormal));	
		CallParent.HitWall(HitNormal, Wall);
	}

	function BeginState()
	{
		Velocity = vect(0,0,0);
		LoopAnim('Flying',0.4);
	}
}

state OnSurface
{
	function CheckSurface()
	{
		local float DotProduct;

		DotProduct = SurfaceNormal dot vect(0,0,-1);
		if (DotProduct > -0.5)
			PlayAnim('Slide',0.2);
	}

Begin:
	FinishAnim();
	CheckSurface();
}

