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

precacheFX()
{
         //fx

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

        if(level.wwx_ambfirefx) level._effect["truck"]= loadfx("fx/fire/halftrack_fire.efx");
        if(level.wwx_ambfliesfx) level._effect["Flies"]= loadfx("fx/misc/insects_carcass_flies.efx");
         

          

}

ambientFX()
{
          
         if(level.wwx_ambfirefx)
         {
          maps\mp\_fx::loopfx("truck", (952,-47,15),0.7, (952,-47,25));
          maps\mp\_fx::soundfx("Smallfire", (952,-47,15));
         }

          if(level.wwx_ambsmokefx)
          {
          maps\mp\_fx::loopfx("jeep", (3134,-2067,43),0.7, (3150,-2122,81));
          maps\mp\_fx::loopfx("jeep", (3156,-887,-73),0.7, (3156,-887,-63));
          }

          if(level.wwx_ambfliesfx)
          {
          maps\mp\_fx::loopfx("Flies", (748,-1700,15),0.3, (748,-1700,25));
          maps\mp\_fx::soundfx("emt_fly_loop", (748,-1700,12));
          }
         

}