class MineTarget expands Actor;

function PostBeginPlay()
{
	if (class'NWMutator'.default.MinesLifeSpan > 0)
		SetTimer(class'NWMutator'.default.MinesLifeSpan, False);
}

singular function TakeDamage( int NDamage, Pawn instigatedBy, Vector hitlocation, vector momentum, name damageType )
{
	if ((instigatedBy.PlayerReplicationInfo.Team == Instigator.PlayerReplicationInfo.Team && instigatedBy!=Instigator) && 
	Level.Game.IsA('TeamGamePlus') && !Level.Game.IsA('MonsterHunt'))
		return;

	if (NDamage > 10 && Owner.IsA('StickyMine') && (class'NWMutator'.default.bMineExplosionChain || 
		(!class'NWMutator'.default.bMineExplosionChain && damageType != 'Exploded')))
	{
		Instigator = InstigatedBy;
		Owner.Instigator = InstigatedBy;
		StickyMine(Owner).BlowUp(Owner.Location);
		Destroy();
	}
	else if (NDamage > 25 && Owner.IsA('LandMine') && (class'NWMutator'.default.bMineExplosionChain || 
		(!class'NWMutator'.default.bMineExplosionChain && damageType != 'Exploded')))
	{
		Instigator = InstigatedBy;
		Owner.Instigator = InstigatedBy;
		LandMine(Owner).BlowUp(Owner.Location);
		Destroy();
	}
}

function Timer()
{
	TakeDamage(200000, Instigator, Location, vect(0,0,0), 'SelfDestruct');
}

defaultproperties
{
	bHidden=True
	RemoteRole=ROLE_DumbProxy
	bNetTemporary=True
	bCollideActors=True
	bCollideWorld=True
	bProjTarget=True
	bNetTemporary=False
	CollisionRadius=20.000000
	CollisionHeight=3.000000
	bStasis=False
}
