/*
//////////////////////////////////////
//Pierrambo //pierrambo@pierrambo.fr//
//////////////////////////////////////
*/

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

	maps\mp\co_fenetre::main();
	maps\mp\co_pont::main();
	maps\mp\co_egout::main();
	maps\mp\co_juke::main();
        maps\mp\co_feuilles::main();
	maps\mp\co_bombe::main();
	maps\mp\co_portebombe::main();
	maps\mp\co_porte::main();
 	maps\mp\co_camiOn::main();
        maps\mp\co_voiturOn::main();

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

        getent ("henicheval","targetname") playloopsound ("comm_cheval");
        getent ("fontaine","targetname") playloopsound ("comm_fontaine");
        getent ("comcorbeau","targetname") playloopsound ("comm_corbeau");
	getent ("comoisoa","targetname") playloopsound ("comm_oisoa");
	getent ("comoisob","targetname") playloopsound ("comm_oisob");
	getent ("comoisoc","targetname") playloopsound ("comm_oisob");
	getent ("comoisod","targetname") playloopsound ("comm_oisoa");
	getent ("comoisoe","targetname") playloopsound ("comm_oisob");
        getent ("comoisof","targetname") playloopsound ("comm_oisoa");
        getent ("comoisog","targetname") playloopsound ("comm_oisob");
        getent ("radiogarde","targetname") playloopsound ("comm_garde");
        getent ("radiostation","targetname") playloopsound ("comm_station");
        if(level.wwx_ambfliesfx) getent ("moucheval","targetname") playloopsound ("comm_mouche");

          	if(level.wwx_radiobased)
	        {
		level.radio = [];
		level.radio[0] = spawn("script_model", (-2465, -3120, 566));
		level.radio[0].angles = (0, 90, 0);
		
		level.radio[1] = spawn("script_model", (-2480, -4453, 431));
		level.radio[1].angles = (0, 0, 0);
		
		level.radio[2] = spawn("script_model", (-1890, -4887, 474));
		level.radio[2].angles = (0, 270, 0);
		
		level.radio[3] = spawn("script_model", (-1327, -5150, 487));
		level.radio[3].angles = (0, 45, 0);
		
		level.radio[4] = spawn("script_model", (-1592, -4962, 651));
		level.radio[4].angles = (0, 0, 0);

		level.radio[5] = spawn("script_model", (-2156, -5054, 332));
		level.radio[5].angles = (0, 270, 0);

		level.radio[6] = spawn("script_model", (-375, -3562, 337));
		level.radio[6].angles = (0, 0, 0);

		level.radio[7] = spawn("script_model", (1269, -2201, 165));
		level.radio[7].angles = (0, 180, 0);

		level.radio[8] = spawn("script_model", (2366, -2566, 168));
		level.radio[8].angles = (0, 0, 0);

		level.radio[9] = spawn("script_model", (-1694, -4126, 235));
		level.radio[9].angles = (0, 0, 0);
                }

                if(getcvar("g_gametype") == "sd" || getcvar("g_gametype") == "esd" )
                {
                maps\mp\co_alarmsd::main();
                }
}

