main()
{
	maps\mp\_load::main();
	if(level.wwx_ambmapsound) ambientPlay("ambient_tuscany");

	game["allies"] = "american";
	game["axis"] = "german";
	game["attackers"] = "allies";
	game["defenders"] = "axis";
	game["american_soldiertype"] = "normandy";
	game["german_soldiertype"] = "normandy";

	if(level.wwx_radiobased)
	{
		level.radio = [];
		level.radio[0] = spawn("script_model", (968, 8, 0));
		level.radio[0].angles = (0, 0, 0);
		level.radio[1] = spawn("script_model", (568, 232, 0));
		level.radio[1].angles = (0, 0, 0);
		level.radio[2] = spawn("script_model", (352, 544, 0));
		level.radio[2].angles = (0, 0, 0);
		level.radio[3] = spawn("script_model", (-840, 328, 0));
		level.radio[3].angles = (0, 0, 0);
		level.radio[4] = spawn("script_model", (328, -616, 0));
		level.radio[4].angles = (0, 0, 0);
		level.radio[5] = spawn("script_model", (-584, -912, -64));
		level.radio[5].angles = (0, 0, 0);
		level.radio[6] = spawn("script_model", (392, -840, -64));
		level.radio[6].angles = (0, 0, 0);
		level.radio[7] = spawn("script_model", (1048, -1064, -64));
		level.radio[7].angles = (0, 0, 0);
		level.radio[8] = spawn("script_model", (784, 1160, 64));
		level.radio[8].angles = (0, 0, 0);
		level.radio[9] = spawn("script_model", (160, 1048, 64));
		level.radio[9].angles = (0, 0, 0);
		level.radio[10] = spawn("script_model", (-816, 664, 0));
		level.radio[10].angles = (0, 0, 0);
		level.radio[11] = spawn("script_model", (-320, 424, 0));
		level.radio[11].angles = (0, 0, 0);
	}

	//Smoke
	level thread precacheFX();
	level thread spawnWorldFX();
}

precacheFX()
{
	if(level.wwx_ambsmokefx) level._effect["chimney_smoke"]	= loadfx ("fx/expansion_tuscany_lightsmoke.efx");
	level._effect["flak_explosion"]	= loadfx("fx/explosions/mortarExp_concrete.efx");
	level._effect["mortar_explosion"]	= loadfx("fx/explosions/mortarExp_concrete.efx");
}

spawnWorldFX()
{
      if(level.wwx_ambsmokefx)
      {
	maps\mp\_fx::loopfx("chimney_smoke", (-440 ,1744, 448), 0.3);
	maps\mp\_fx::loopfx("chimney_smoke", (-456 ,1720, 448), 0.3);
	maps\mp\_fx::loopfx("chimney_smoke", (-1368 ,768, 368), 0.3);
	maps\mp\_fx::loopfx("chimney_smoke", (-1392 ,792, 368), 0.3);
	maps\mp\_fx::loopfx("chimney_smoke", (1232 ,648, 368), 0.3);
	maps\mp\_fx::loopfx("chimney_smoke", (1256 ,624, 368), 0.3);
	maps\mp\_fx::loopfx("chimney_smoke", (800 ,240, 392), 0.3);
	maps\mp\_fx::loopfx("chimney_smoke", (776 ,224, 392), 0.3);
	maps\mp\_fx::loopfx("chimney_smoke", (1396 ,-728, 312), 0.3);
	maps\mp\_fx::loopfx("chimney_smoke", (1272 ,-752, 312), 0.3);
	maps\mp\_fx::loopfx("chimney_smoke", (1352 ,-64, 392), 0.3);
	maps\mp\_fx::loopfx("chimney_smoke", (1328 ,-88, 392), 0.3);
	maps\mp\_fx::loopfx("chimney_smoke", (224 ,264, 448), 0.3);
	maps\mp\_fx::loopfx("chimney_smoke", (248 ,288, 448), 0.3);
	maps\mp\_fx::loopfx("chimney_smoke", (-776 ,-8, 392), 0.3);
	maps\mp\_fx::loopfx("chimney_smoke", (-800 ,-32, 392), 0.3);
	maps\mp\_fx::loopfx("chimney_smoke", (608 ,-520, 408), 0.3);
	maps\mp\_fx::loopfx("chimney_smoke", (584 ,-544, 408), 0.3);
	maps\mp\_fx::loopfx("chimney_smoke", (1000 ,-2024, 312), 0.3);
	maps\mp\_fx::loopfx("chimney_smoke", (1024 ,-2040, 312), 0.3);
	maps\mp\_fx::loopfx("chimney_smoke", (456 ,-1272, 312), 0.3);
	maps\mp\_fx::loopfx("chimney_smoke", (480 ,-1248, 312), 0.3);
	maps\mp\_fx::loopfx("chimney_smoke", (40 ,-1672, 384), 0.3);
	maps\mp\_fx::loopfx("chimney_smoke", (24 ,-1606, 384), 0.3);
      }
}
 