//=============================================================================
// dnFreezeRayFX_IceNuke_ResidualCold.		May 28th, 2001 - Charlie Wiederhold
// "Finished" by Futuretime23
//=============================================================================
class dnFreezeRayFX_IceNuke_ResidualCold expands dnFreezeRayFX;

#exec OBJ LOAD FILE=..\Textures\t_generic.dtx

var bool bCanPoison;

function PostBeginPlay()
{
	Super.PostBeginPlay();

	SetTimer( 0.01, true, 1 );
}

function Timer( optional int TimerNum )
{
	local Pawn P;

	if ( TimerNum == 1 )
	{
		bCanPoison = true;
		SetTimer( 0.0, false, 1 );
		foreach TouchingActors( class'Pawn', P )
		{
			if ( P.CanBeGassed() )
				P.AddDot( DOT_Cold, 0.01, 0.01, 5.0, Pawn(Owner), Self );
		}
	}
	else
		Super.Timer( TimerNum );
}

event Touch( Actor Other )
{
	Super.Touch( Other );

	// If we were touched by a pawn, poison it.
	if ( bCanPoison && Other.bIsPawn && Pawn(Other).CanBeGassed() )
	{
		Pawn(Other).AddDOT( DOT_Cold, 0.01, 0.01, 5.0, Pawn(Owner), Self );
	}
}


defaultproperties
{
     DestroyWhenEmptyAfterSpawn=True
     SpawnPeriod=0.750000
	 SpawnAtRadius=True
     Lifetime=20.000000
     InitialVelocity=(Z=-32.000000)
     MaxVelocityVariance=(X=0.000000,Y=0.000000)
     UseZoneGravity=False
     Textures(1)=Texture't_firefx.icespray2.iceshardC3RC'
     StartDrawScale=1.250000
     EndDrawScale=1.250000
     RotationVariance=65535.000000
     UpdateWhenNotVisible=True
     TriggerAfterSeconds=2.500000
     TriggerType=SPT_Pulse
	 PulseSeconds=20.000000
     SystemAlphaScale=1.500000
     AlphaStart=0.000000
     AlphaMid=1.000000
     AlphaEnd=0.000000
     AlphaRampMid=0.250000
     bUseAlphaRamp=True
	 bCollideActors=True
     CollisionRadius=150.000000
     CollisionHeight=150.000000
     Style=STY_Translucent
}
