class NitrogenZone expands ZoneInfo;

#exec AUDIO IMPORT FILE="Sounds\Generic\uLNitro1.WAV" NAME="InNitro" GROUP="Generic"

// When an actor enters this zone.
event ActorEntered( actor Other )
{
	CallParent.ActorEntered(Other);
	if ( Other.IsA('Pawn') && Pawn(Other).bIsPlayer )
	{
		Pawn(Other).UnderWaterTime = -1.0;
		Pawn(Other).WaterSpeed *= 2;
	}
}

// When an actor leaves this zone.
event ActorLeaving( actor Other )
{
	CallParent.ActorLeaving(Other);
	if ( Other.IsA('Pawn') && Pawn(Other).bIsPlayer )
	{
		Pawn(Other).UnderWaterTime = Pawn(Other).Default.UnderWaterTime;
		Pawn(Other).WaterSpeed *= 0.5;
	}
}

