//=============================================================================
// WildcardsTeleporterZone.
//=============================================================================
class WildcardsTeleporterZone expands TeleporterZone;

var() class<EnhancedSiegeMessage> PunishmentMessageClass;

event ActorEntered( actor Other )
{
	if ( myTeleporter != None && Other.IsA('TournamentPlayer') )
		{
			myTeleporter.Touch(Other);
			PunishmentAlert();
		}

	if ( myTeleporter != None && Other.IsA('TranslocatorTarget') )
		{
			myTeleporter.Touch(TranslocatorTarget(Other).Master.Owner);
			PunishmentAlert();
		}
}

function PunishmentAlert()
{
    local pawn p;

	for ( p = Level.PawnList; p != None; p = p.nextPawn )
		if ( p.IsA('TournamentPlayer' ))
	        TournamentPlayer(P).ReceiveLocalizedMessage(PunishmentMessageClass);
}

defaultproperties
{
}
