main()
{
	precacheFX();
	mp_siegfriedline_final_FX();
	level.scr_sound["flak88_explode"]	= "flak88_explode";    
}

precacheFX()
{
	level._effect["flak_explosion"]		 = loadfx ("fx/explosions/flak88_explosion.efx");
	if(level.wwx_ambfogbankfx) level._effect["fogbank_small_duhoc"] = loadfx ("fx/misc/fogbank_small_duhoc.efx");
	if(level.wwx_ambsmokefx) level._effect["jeep_smoke_trail"]    = loadfx ("fx/smoke/vehicle_steam.efx");
	if(level.wwx_ambfliesfx) level._effect["water_fly"]           = loadfx ("fx/misc/insects_carcass_flies.efx"); 
}

mp_siegfriedline_final_FX()
{  
	//Dust
      if(level.wwx_ambfogbankfx)
      {
   	maps\mp\_fx::loopfx("fogbank_small_duhoc", (755, -2100, -21), 0.8, (755, -2100, -80));
   	maps\mp\_fx::loopfx("fogbank_small_duhoc", (1492, -1908, -21), 2, (1492, -1908, -60));
   	maps\mp\_fx::loopfx("fogbank_small_duhoc", (2305, -1865, -21), 0.8, (2305, -1865, 60));
	maps\mp\_fx::loopfx("fogbank_small_duhoc", (-568, -2235, -21), 2, (-568, -2235, -50));
	maps\mp\_fx::loopfx("fogbank_small_duhoc", (106, -2279, -21), 2, (106, -2279, 90));
      }

	//Smoke
	if(level.wwx_ambsmokefx) maps\mp\_fx::loopfx("jeep_smoke_trail", (538, -4104, 18), 0.4); 

	//Fly
      if(level.wwx_ambfliesfx)
      {
	maps\mp\_fx::loopfx("water_fly", (2648, -3662, 270), 0.5); 

	//Flysounds
	maps\mp\_fx::soundfx("horse_fly", (2648, -3662, 260));
      }

//Misc. Wald
            maps\mp\_fx::soundfx("froesche", (318, -2281, -69));
            maps\mp\_fx::soundfx("heulenderwind", (-1771, -1027, 875));
            maps\mp\_fx::soundfx("knarrendeaeste", (85, -1601, 384));
            maps\mp\_fx::soundfx("eule", (1815, -1449, 804));
            maps\mp\_fx::soundfx("rabe1", (2582, -2685, 835));
            maps\mp\_fx::soundfx("rabe2", (2172, -2570, 855));
            maps\mp\_fx::soundfx("heulenderwind", (2369, -3587, 860));
            maps\mp\_fx::soundfx("knarrendeaeste", (3549, -5162, 615));
            maps\mp\_fx::soundfx("heulenderwind", (2441, -1918, 521));
            maps\mp\_fx::soundfx("rabe1", (-1480, -4150, 890));
            maps\mp\_fx::soundfx("rabe2", (-1480, -4206, 854));

}

