main()
{
	maps\mp\_load::main();
    setCullFog (0, 6000, .32, .36, .40, 0);


if(level.wwx_ambmapsound) ambientPlay("ambient_mp_draguignan_lib");

ambientFX();

setcvar("r_glowbloomintensity0","1");
setcvar("r_glowbloomintensity1","1");
setcvar("r_glowskybleedintensity0",".25");
        
      if(level.wwx_ambfirefx)
      {
	level._effect["tank_fire_engine"] = loadfx ("fx/fire/tank_fire_engine.efx");
	level._effect["house_fire"] = 		loadfx ("fx/fire/ground_fire_small_oneshot.efx"); 
      level._effect["barrel_fire"]			= loadfx ("fx/props/barrel_fire2.efx");
      }

      if(level.wwx_ambsmokefx)
      {
	level._effect["house_smoke"] = 		loadfx ("fx/smoke/damaged_vehicle_smoke.efx"); 
	level._effect["traktor_smoke"] = 	loadfx ("fx/smoke/vehicle_steam.efx"); 
      }

      if(level.wwx_ambfliesfx) level._effect["horse_fly"] = 		loadfx ("fx/misc/insects_carcass_flies.efx");
      level._effect["oil_lamp"] 		= loadfx ("fx/props/glow_latern.efx");
   
	game["allies"] = "american";
	game["axis"] = "german";
	game["attackers"] = "allies";
	game["defenders"] = "axis";
	game["british_soldiertype"] = "normandy";
	game["german_soldiertype"] = "normandy";

	

	if(level.wwx_radiobased)
	{
		level.radio = [];
		level.radio[0] = spawn("script_model", (-1692, -4489, 117));
		level.radio[0].angles = (0, 270, 0);

		level.radio[1] = spawn("script_model", (-1744, -3623, 16));
		level.radio[1].angles = (0, 180, 0);
		
		level.radio[2] = spawn("script_model", (-1278, -5374, 40));
		level.radio[2].angles = (0, 180, 0);
		
		level.radio[3] = spawn("script_model", (-1482, -3800, 7));
		level.radio[3].angles = (0, 180, 0);
		
		level.radio[4] = spawn("script_model", (-2963, -4880, 8));
		level.radio[4].angles = (0, 206, 0);
		
		level.radio[5] = spawn("script_model", (-2482, -5045, 115));
		level.radio[5].angles = (0, 270, 0);
		
		level.radio[6] = spawn("script_model", (-1701, -4654, 12));
		level.radio[6].angles = (0, 270, 0);
		
		level.radio[7] = spawn("script_model", (-1252.05, -4192.5, 25));
		level.radio[7].angles = (0, 0, 0);
		
		level.radio[8] = spawn("script_model", (-2432, -3016, 304));
		level.radio[8].angles = (0, 90, 0);
		
		level.radio[9] = spawn("script_model", (-3329, -5374, 7));
		level.radio[9].angles = (0, 90, 0);
		
	}
}
ambientFX()
{
      if(level.wwx_ambfirefx)
      {
	maps\mp\_fx::loopfx("tank_fire_engine",  (-2328, -2817, 10), 1.0);
	maps\mp\_fx::loopfx("tank_fire_engine", (-3629, -5018, 58), 1.0);
	maps\mp\_fx::loopfx("barrel_fire", (-2605, -3414, 47), 1.0);
      maps\mp\_fx::loopfx("house_fire", (-2608, -5176, 224), 1);
      }

   	maps\mp\_fx::loopfx("oil_lamp", (-1686, -3960, 46), 0.4);
	maps\mp\_fx::loopfx("oil_lamp", (-3465, -4211, 60), 0.4);
	maps\mp\_fx::loopfx("oil_lamp", (-2651, -3237, 321), 0.4);

      if(level.wwx_ambfliesfx)
      {
	maps\mp\_fx::loopfx("horse_fly", (-3514, -4306, 8), 1); 
	maps\mp\_fx::loopfx("horse_fly", (-3520, -4005, 6), 1);
      }

      if(level.wwx_ambsmokefx)
      {
	maps\mp\_fx::loopfx("traktor_smoke", (-3647, -5019, 86), 0.4);
	maps\mp\_fx::loopfx("house_smoke", (-2600, -4992, 255), 0.4);  
	}
}