//
//Taken from RAINMOD, for modification
//
class RainDrop extends effects;



var RainMaker master;
var texture t;
var float life;
var DeusExPlayer player;

function PostBeginPlay()
{
	Super.PostBeginPlay();
	SetTimer(0.08,False);
}

function tick(float deltaTime)
{
	super.Tick(deltatime);
	life+=deltaTime;

	if (life<4.0)
		SetRotation( Rotator(Velocity) );

	if (life>20.0 || (VSize(Velocity)<1.0 && life>0.8) )
	{
		master.LoseADrop();
		Destroy();
	}

}

Function Timer()
{
	SetRotation( Rotator(Velocity) );
}

simulated function HitWall (vector HitNormal, actor HitWall)
{
	master.LoseADrop();
	Destroy();
}



function ZoneChange( ZoneInfo NewZone )
{
	Local raindropRing ring;

	if ( NewZone.bWaterZone )
	{
		ring = Spawn(class'RaindropRing',,, Self.location,);
		master.LoseADrop();
		Destroy();
	}
}

defaultproperties
{
     Physics=PHYS_Falling
     LifeSpan=3.000000
     DrawType=DT_Mesh
     Style=STY_Translucent
     Skin=Texture'ContenderStuff.Skins.raindrop'
     Mesh=LodMesh'DeusExItems.Tracer'
     DrawScale=1.000000
     CollisionHeight=20.000000
     bCollideActors=True
     bCollideWorld=True
     Mass=60.000000
}
