
announce()
{
	level endon("wwx_gameover");
	self endon("disconnect");
	self endon("wwx_dead");

	if(!isdefined(self.pers["team"])) return;

	stp = undefined;
	wait 1;

	if(isPlayer(self))
	{
		if(self.pers["team"] == "allies")
		{
			switch(game["allies"])
			{
				case "american":
				stp = "us_welcome";
				break;
				
				case "british":
				stp = "uk_welcome";
				break;
		
				case "russian":
				stp = "ru_welcome";
				break;
			}
		}
		else if(self.pers["team"] == "axis")
		{
			switch(game["axis"])
			{
				case "german":
				stp = "ge_welcome";
				break;
			}
		}
	
		if(isdefined(stp))
		{
                  self playlocalsound("prepare");
                  wait 3;
			self playLocalSound(stp);
			self.wwx_glplay = true;
		}
	}
}
