class ScrnInvasionBot extends KFInvasionBot;


// function InitPlayerReplicationInfo()
// {
    // super.InitPlayerReplicationInfo();
    
    // if ( !PlayerReplicationInfo.bNoTeam )
        // Level.Game.ChangeTeam(self, 1, true);
// }

function array<class<Pickup> > GetLegalPurchases()
{
	local int i,j;
	local KFLevelRules KFLR;
	local array<class<Pickup> > RetList;

	KFLR = KFGameType(Level.game).KFLRules;
    
	for(i=0; i<KFLR.MediItemForSale.length; i++ )
		if( CanAfford(KFLR.MediItemForSale[i] ) )
			RetList[j++] = KFLR.MediItemForSale[i];
	for(i=0; i<KFLR.SuppItemForSale.length; i++ )
		if( CanAfford(KFLR.SuppItemForSale[i] ) )
			RetList[j++] = KFLR.SuppItemForSale[i];            
	for(i=0; i<KFLR.ShrpItemForSale.length; i++ )
		if( CanAfford(KFLR.ShrpItemForSale[i] ) )
			RetList[j++] = KFLR.ShrpItemForSale[i];            
	for(i=0; i<KFLR.CommItemForSale.length; i++ )
		if( CanAfford(KFLR.CommItemForSale[i] ) )
			RetList[j++] = KFLR.CommItemForSale[i];            
	for(i=0; i<KFLR.BersItemForSale.length; i++ )
		if( CanAfford(KFLR.BersItemForSale[i] ) )
			RetList[j++] = KFLR.BersItemForSale[i];            
	for(i=0; i<KFLR.FireItemForSale.length; i++ )
		if( CanAfford(KFLR.FireItemForSale[i] ) )
			RetList[j++] = KFLR.FireItemForSale[i];            
	for(i=0; i<KFLR.DemoItemForSale.length; i++ )
		if( CanAfford(KFLR.DemoItemForSale[i] ) )
			RetList[j++] = KFLR.DemoItemForSale[i];            
	for(i=0; i<KFLR.NeutItemForSale.length; i++ )
		if( CanAfford(KFLR.NeutItemForSale[i] ) )
			RetList[j++] = KFLR.NeutItemForSale[i];            
	
	return RetList;
}

defaultproperties
{
     PawnClass=Class'ScrnTestGroundsUtil.ScrnBotPawn'
}
