//=============================================================================
// SpeedyWaterZone.
// There I hope to here no more biching about the water at RedVember
// Hows this for your bouncy water?
//=============================================================================
class SpeedyWaterZone expands WaterZone;

var() int SpeedFactor;

// When an actor enters this zone.
event ActorEntered( actor Other )
{
	if (SpeedFactor == 0)
		SpeedFactor = 1;
	Super.ActorEntered(Other);
	if ( Other.IsA('Pawn') && Pawn(Other).bIsPlayer )
	{
		Pawn(Other).WaterSpeed *= SpeedFactor;
	}
}

// When an actor leaves this zone.
event ActorLeaving( actor Other )
{
	if (SpeedFactor == 0)
		SpeedFactor = 1;
	Super.ActorLeaving(Other);
	if ( Other.IsA('Pawn') && Pawn(Other).bIsPlayer )
	{
		Pawn(Other).WaterSpeed = Pawn(Other).default.WaterSpeed;
	}
}

defaultproperties
{
    SpeedFactor=3
}
