main()
{
	maps\mp\Waterfall_fx::main();
	maps\mp\_load::main();

	setCullFog(3000, 14000, 0.55, 0.6, 0.55, 0);
	if(level.wwx_ambmapsound) ambientPlay("ambient_waterfall");

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

	setCvar("r_glowbloomintensity0", ".25");
	setCvar("r_glowbloomintensity1", ".25");
	setcvar("r_glowskybleedintensity0",".3");

	thread mill_work();

	if(level.wwx_radiobased)
	{

		level.radio = [];
		level.radio[0] = spawn("script_model", (1295, -1191, 551));
		level.radio[0].angles = (0, 34, 0);
		
		level.radio[1] = spawn("script_model", (1376, -317, 267));
		level.radio[1].angles = (0, 44, 0);
		
		level.radio[2] = spawn("script_model", (1124, 317, 422));
		level.radio[2].angles = (0, 274, 0);

		level.radio[3] = spawn("script_model", (1246, 669, 560));
		level.radio[3].angles = (0, 344, 0);
		
		level.radio[4] = spawn("script_model", (1598, 1385, 396));
		level.radio[4].angles = (0, 89, 0);

		level.radio[5] = spawn("script_model", (1701, 1653, 557));
		level.radio[5].angles = (0, 125, 0);

		level.radio[6] = spawn("script_model", (1619, 1994, 378));
		level.radio[6].angles = (0, 210, 0);

		level.radio[7] = spawn("script_model", (2016, 2854, 655));
		level.radio[7].angles = (0, 189, 0);

		level.radio[8] = spawn("script_model", (3459, 351, 400));
		level.radio[8].angles = (0, 54, 0);

		level.radio[9] = spawn("script_model", (3125, -654, 517));
		level.radio[9].angles = (0, 54, 0);

		level.radio[10] = spawn("script_model", (1884, -271, 548));
		level.radio[10].angles = (0, 216, 0);

		level.radio[11] = spawn("script_model", (1091, 49, 307));
		level.radio[11].angles = (0, 261, 0);

		level.radio[12] = spawn("script_model", (69, 107, 107));
		level.radio[12].angles = (0, 6, 0);

		level.radio[13] = spawn("script_model", (204, -296, 427));
		level.radio[13].angles = (0, 186, 0);

		level.radio[14] = spawn("script_model", (392, -1672, 510));
		level.radio[14].angles = (0, 51, 0);

		level.radio[15] = spawn("script_model", (-871, -432, 440));
		level.radio[15].angles = (0, 51, 0);

		level.radio[16] = spawn("script_model", (-2012, -688, 440));
		level.radio[16].angles = (0, 155, 0);

		level.radio[17] = spawn("script_model", (-783, 47, 384));
		level.radio[17].angles = (0, 2, 0);

		level.radio[18] = spawn("script_model", (-724, 413, 551));
		level.radio[18].angles = (0, 203, 0);

		level.radio[19] = spawn("script_model", (-545, 730, 384));
		level.radio[19].angles = (0, 78, 0);

		level.radio[20] = spawn("script_model", (-1220, 1457, 539));
		level.radio[20].angles = (0, 334, 0);

		level.radio[21] = spawn("script_model", (-300, 1303, 395));
		level.radio[21].angles = (0, 34, 0);

		level.radio[22] = spawn("script_model", (5, 2440, 421));
		level.radio[22].angles = (0, 124, 0);

		level.radio[23] = spawn("script_model", (16, 2440, 551));
		level.radio[23].angles = (0, 20, 0);

		level.radio[24] = spawn("script_model", (-1546, 2376, 529));
		level.radio[24].angles = (0, 80, 0);

		level.radio[25] = spawn("script_model", (-800, 2754, 376));
		level.radio[25].angles = (0, 5, 0);

		level.radio[26] = spawn("script_model", (-291, 1818, 638));
		level.radio[26].angles = (0, 155, 0);

		level.radio[27] = spawn("script_model", (-2019, 1506, 585));
		level.radio[27].angles = (0, 320, 0);

		level.radio[28] = spawn("script_model", (1060, 3177, 568));
		level.radio[28].angles = (0, 170, 0);
	}
}

mill_work()
{
wheel = getent ("millwheel", "targetname");
wheel rotatevelocity ( (0, 0, 45), 9999); 
}