main()
{
	precacheFX();
	ambientFX();
	 
}

precacheFX()
{
	
	if(level.wwx_ambdustfx) level._effect["dust_wind_brown"] 			= loadfx ("fx/dust/dust_wind_brown.efx");
      
      if(level.wwx_ambfirefx)
      {
	level._effect["tank_fire_turret"] 			= loadfx ("fx/fire/tank_fire_turret_small.efx");
	level._effect["tank_fire_engine"] 			= loadfx ("fx/fire/tank_fire_engine.efx");
      }


}

ambientFX()
{
	// tank fire fx
      if(level.wwx_ambfirefx)
      {	
	maps\mp\_fx::loopfx("tank_fire_turret", (974,-2118,48), 1, (974,-2118,120));
	maps\mp\_fx::loopfx("tank_fire_turret", (1280,-1528,24), 1, (1280,-1528,104));
      maps\mp\_fx::loopfx("tank_fire_turret", (1992,-1520,16), 1, (1992,-1520,46));
	//Sound FX
	maps\mp\_fx::soundfx("medfire", (974,-2118,28));
	maps\mp\_fx::soundfx("medfire", (1280,-1528,28));
	maps\mp\_fx::soundfx("medfire", (1992,-1520,18));
      }
		 
	// Dust FX 
      if(level.wwx_ambdustfx)
      {
	maps\mp\_fx::loopfx("dust_wind_brown", (1302,-802,56), .6, (1302,-802,86));
	maps\mp\_fx::loopfx("dust_wind_brown", (1632,-1896,48), .6, (1632,-1896,88));
	maps\mp\_fx::loopfx("dust_wind_brown", (336,-424,16), .6, (336,-424,66));
	maps\mp\_fx::loopfx("dust_wind_brown", (96,-1896,48), .6, (96,-1896,88));
      maps\mp\_fx::loopfx("dust_wind_brown", (576,-2432,56), .6, (576,-2432,99));
      maps\mp\_fx::loopfx("dust_wind_brown", (2216,-1512,16), .6, (2216,-1512,66));
      }
}
