/*
==========================
CG_FindClientModelFile
==========================

static qboolean	CG_FindClientModelFileTA( char *filename, int length, clientInfo_t *ci, const char *teamName, const char *modelName, const char *skinName, const char *base, const char *ext ) {
	char *team, *charactersFolder;
	int i;
	char *text;

	if ( cgs.gametype >= GT_TEAM ) {
		switch ( ci->team ) {
			case TEAM_BLUE: {
				team = "blue";
				break;
			}
			default: {
				team = "red";
				break;
			}
		}
	}
	else {
		team = "default";
	}
	charactersFolder = "";
	while(1) {
		for ( i = 0; i < 2; i++ ) {
			if ( i == 0 && teamName && *teamName ) {
				//								"models/players/characters/james/stroggs/lower_lily_red.skin"
				if(team){
					text = va("models/players/%s%s/%s%s_%s_%s.%s", charactersFolder, modelName, teamName, base, skinName, team, ext );
					Com_sprintf( filename, strlen(text)+1, "models/players/%s%s/%s%s_%s_%s.%s", charactersFolder, modelName, teamName, base, skinName, team, ext );
				}
				else{
					Com_sprintf( filename, length, "models/players/%s%s/%s%s_%s.%s", charactersFolder, modelName, teamName, base, skinName, ext );
				}
				
			}
			else {
				//								"models/players/characters/james/lower_lily_red.skin"
				if(team){
					text = va("models/players/%s%s/%s_%s_%s.%s", charactersFolder, modelName, base, skinName, team, ext );
					Com_sprintf( filename, strlen(text)+1, "models/players/%s%s/%s_%s_%s.%s", charactersFolder, modelName, base, skinName, team, ext );
				}
				else
					Com_sprintf( filename, length, "models/players/%s%s/%s_%s_%s.%s", charactersFolder, modelName, base, skinName, team, ext );
			}
			if ( CG_FileExists( filename ) ) {
				return qtrue;
			}
			if ( cgs.gametype >= GT_TEAM ) {
				if ( i == 0 && teamName && *teamName ) {
					//								"models/players/characters/james/stroggs/lower_red.skin"
					if(team){
						text = va("models/players/%s%s/%s%s_%s.%s", charactersFolder, modelName, teamName, base, team, ext );
						Com_sprintf( filename, strlen(text)+1,"models/players/%s%s/%s%s_%s.%s", charactersFolder, modelName, teamName, base, team, ext );
					}
					else
						Com_sprintf( filename, length,"models/players/%s%s/%s%s_%s.%s", charactersFolder, modelName, teamName, base, team, ext );
				}
				else {
					//								"models/players/characters/james/lower_red.skin"
					if(team){
						text = va("models/players/%s%s/%s_%s.%s", charactersFolder, modelName, base, team, ext );
						Com_sprintf( filename, strlen(text)+1, "models/players/%s%s/%s_%s.%s", charactersFolder, modelName, base, team, ext );
					}
					else
						Com_sprintf( filename, length, "models/players/%s%s/%s_%s.%s", charactersFolder, modelName, base, team, ext );
				}
			}
			else {
				if ( i == 0 && teamName && *teamName ) {
					//								"models/players/characters/james/stroggs/lower_lily.skin"
					if(team){
						text = va("models/players/%s%s/%s%s_%s.%s", charactersFolder, modelName, teamName, base, skinName, ext );
						Com_sprintf( filename, strlen(text) + 1 , "models/players/%s%s/%s%s_%s.%s", charactersFolder, modelName, teamName, base, skinName, ext );
					}
					else
						Com_sprintf( filename, length, "models/players/%s%s/%s%s_%s.%s", charactersFolder, modelName, teamName, base, skinName, ext );
				}
				else {
					//								"models/players/characters/james/lower_lily.skin"
					if(team){
						text = va("models/players/%s%s/%s_%s.%s", charactersFolder, modelName, base, skinName, ext );
						Com_sprintf( filename, strlen(text)+1, "models/players/%s%s/%s_%s.%s", charactersFolder, modelName, base, skinName, ext );
					}else
						Com_sprintf( filename, length, "models/players/%s%s/%s_%s.%s", charactersFolder, modelName, base, skinName, ext );
				}
			}
			if ( CG_FileExists( filename ) ) {
				return qtrue;
			}
			if ( !teamName || !*teamName ) {
				break;
			}
		}
		// if tried the heads folder first
		if ( charactersFolder[0] ) {
			break;
		}
		charactersFolder = "characters/";
	}

	return qfalse;
}
*/