init()
{
	precacheShader("mpflag_spectator");

	
	
	if(game["am_gametype"] == "csd") {



		switch(game["allies"])
		{
		case "american":
			precacheShader("mpflag_american");
			setcvar("g_TeamName_Allies", &"AM_MP_COUNTER_TERRORISTS");
			setcvar("g_TeamColor_Allies", ".25 .75 .25");
			setcvar("g_ScoresBanner_Allies", "mpflag_american");
			break;

		case "british":
			precacheShader("mpflag_british");
			setcvar("g_TeamName_Allies", &"AM_MP_COUNTER_TERRORISTS");
			setcvar("g_TeamColor_Allies", ".25 .25 .75");
			setcvar("g_ScoresBanner_Allies", "mpflag_british");
			break;

		default:
			assert(game["allies"] == "russian");
			precacheShader("mpflag_russian");
			setcvar("g_TeamName_Allies", &"AM_MP_COUNTER_TERRORISTS");
			setcvar("g_TeamColor_Allies", ".75 .25 .25");
			setcvar("g_ScoresBanner_Allies", "mpflag_russian");
			break;
		}

		assert(game["axis"] == "german");
		precacheShader("mpflag_german");
		setcvar("g_TeamName_Axis", &"AM_MP_TERRORISTS");
		setcvar("g_TeamColor_Axis", ".6 .6 .6");
		setcvar("g_ScoresBanner_Axis", "mpflag_german");
	
	
	}
	else if(game["am_gametype"] == "noz") {



		switch(game["allies"])
		{
		case "american":
			precacheShader("mpflag_american");
			setcvar("g_TeamName_Allies", &"AM_MP_HUNTERS");
			setcvar("g_TeamColor_Allies", ".25 .75 .25");
			setcvar("g_ScoresBanner_Allies", "mpflag_american");
			break;

		case "british":
			precacheShader("mpflag_british");
			setcvar("g_TeamName_Allies", &"AM_MP_HUNTERS");
			setcvar("g_TeamColor_Allies", ".25 .25 .75");
			setcvar("g_ScoresBanner_Allies", "mpflag_british");
			break;

		default:
			assert(game["allies"] == "russian");
			precacheShader("mpflag_russian");
			setcvar("g_TeamName_Allies", &"AM_MP_HUNTERS");
			setcvar("g_TeamColor_Allies", ".75 .25 .25");
			setcvar("g_ScoresBanner_Allies", "mpflag_russian");
			break;
		}

		assert(game["axis"] == "german");
		precacheShader("mpflag_german");
		setcvar("g_TeamName_Axis", &"AM_MP_ZOMBIES");
		setcvar("g_TeamColor_Axis", ".6 .6 .6");
		setcvar("g_ScoresBanner_Axis", "mpflag_german");
	
	
	}
	else {
	
		switch(game["allies"])
		{
		case "american":
			precacheShader("mpflag_american");
			setcvar("g_TeamName_Allies", &"MPUI_AMERICAN");
			setcvar("g_TeamColor_Allies", ".25 .75 .25");
			setcvar("g_ScoresBanner_Allies", "mpflag_american");
			break;

		case "british":
			precacheShader("mpflag_british");
			setcvar("g_TeamName_Allies", &"MPUI_BRITISH");
			setcvar("g_TeamColor_Allies", ".25 .25 .75");
			setcvar("g_ScoresBanner_Allies", "mpflag_british");
			break;

		default:
			assert(game["allies"] == "russian");
			precacheShader("mpflag_russian");
			setcvar("g_TeamName_Allies", &"MPUI_RUSSIAN");
			setcvar("g_TeamColor_Allies", ".75 .25 .25");
			setcvar("g_ScoresBanner_Allies", "mpflag_russian");
			break;
		}

		assert(game["axis"] == "german");
		precacheShader("mpflag_german");
		setcvar("g_TeamName_Axis", &"MPUI_GERMAN");
		setcvar("g_TeamColor_Axis", ".6 .6 .6");
		setcvar("g_ScoresBanner_Axis", "mpflag_german");
	}
}
