main()

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

precacheFX()

{
	
      if(level.wwx_ambfirefx) level._effect["tank_fire_turret"] 	        = loadfx ("fx/fire/tank_fire_turret_small.efx");
        if(level.wwx_ambsmokefx) level._effect["thin_light_smoke_L"]	  	= loadfx ("fx/smoke/thin_light_smoke_L.efx"); 
         
       
}


ambientFX()

{
       
       //mortar 
        if(level.wwx_ambsmokefx)
        {
        maps\mp\_fx::loopfx("thin_light_smoke_L", (-192,-960,143), 1, (1817,-1474,89));

        maps\mp\_fx::loopfx("thin_light_smoke_L", (-236,156,156), 1, (1817,-1474,89));

        maps\mp\_fx::loopfx("thin_light_smoke_L", (-2448,-976,166), 1, (1817,-1474,89));
        }

     //fire
        if(level.wwx_ambfirefx)
        {
        maps\mp\_fx::loopfx("tank_fire_turret", (-2400,-2000,200), 1, (974,-2118,120));
        maps\mp\_fx::loopfx("tank_fire_turret", (-2472,0,224), 1, (974,-2118,120));
        maps\mp\_fx::loopfx("tank_fire_turret", (-768,-2128,272), 1, (974,-2118,120));

      //fire sound
        maps\mp\_fx::soundfx("medfire", (-2400,-2000,200));
        maps\mp\_fx::soundfx("medfire", (-2472,0,224));
        maps\mp\_fx::soundfx("medfire", (-768,-2128,272));
        }
}
