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

precacheFX()
{
	level._effect["flak_explosion"]				= loadfx ("fx/explosions/flak88_explosion.efx");

      if(level.wwx_ambsnowfx)
      {
	level._effect["snow_light"]				= loadfx ("fx/misc/snow_light_mp_downtown.efx");
	level._effect["snow_wind_cityhall"]			= loadfx ("fx/misc/snow_wind_cityhall.efx");
      }
 
      if(level.wwx_ambsmokefx)
      {
	level._effect["thin_black_smoke_S"]			= loadfx ("fx/smoke/thin_black_smoke_S.efx");
	level._effect["thin_black_smoke_M"]			= loadfx ("fx/smoke/thin_black_smoke_M.efx");
      }

	if(level.wwx_ambfogbankfx) level._effect["fogbank_small_duhoc"]			= loadfx ("fx/misc/fogbank_small_duhoc.efx");
	if(level.wwx_ambfirefx) level._effect["tank_fire_engine"] 			= loadfx ("fx/fire/tank_fire_engine.efx");	
}


ambientFX()
{
	
	//Wind FX
      if(level.wwx_ambsmokefx)
      {
	maps\mp\_fx::loopfx("thin_black_smoke_S", (-1616,-88,224), 1, (-1616,-88,664));
	maps\mp\_fx::loopfx("thin_black_smoke_S", (832,-1056,320), 1, (832,-1056,728));
	maps\mp\_fx::loopfx("thin_black_smoke_S", (1632,-1408,488), 1, (1632,-1408,800));
      }

	//interrior fog
      if(level.wwx_ambfogbankfx)
      {
	maps\mp\_fx::loopfx("fogbank_small_duhoc", (48,80,-40), 2, (48,80,24));
	maps\mp\_fx::loopfx("fogbank_small_duhoc", (160,-832,-30), 2, (160,-832,50));
	maps\mp\_fx::loopfx("fogbank_small_duhoc", (-776,816,-30), 2, (-776,816,24));
	maps\mp\_fx::loopfx("fogbank_small_duhoc", (1904,-152,-30), 2, (1904,-152,50));
      }
}