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

}

precacheFX()
{
        if(level.wwx_ambsmokefx)
        {
	  level._effect["battlefield_smokebank_S"]    = loadfx ("fx/smoke/battlefield_smokebank_S.efx");
        level._effect["thin_black_smoke_M_duhoc"] = loadfx ("fx/smoke/thin_black_smoke_M_duhoc.efx");
        }

        if(level.wwx_ambfirefx)
        {
        level._effect["ground_fire_small_oneshot"]      = loadfx("fx/fire/ground_fire_small_oneshot.efx");
        level._effect["halftrack_fire"]    = loadfx ("fx/fire/halftrack_fire.efx");
        level._effect["building_fire_large"]    = loadfx ("fx/fire/building_fire_large.efx");
        }

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

}

spawnWorldFX()
{
	//props
	
        //smoke
        if(level.wwx_ambsmokefx)
        {
        maps\mp\_fx::loopfx("battlefield_smokebank_S", (1484, 1000, -161), 1.0);
	  maps\mp\_fx::loopfx("battlefield_smokebank_S", (-213, -800, -250), 1.0);
        maps\mp\_fx::loopfx("thin_black_smoke_M_duhoc", (1896, -2016, 1992), 3.0);
        }

        //fire
	  if(level.wwx_ambfirefx) maps\mp\_fx::loopfx("building_fire_large", (-703, -1517, 1480), 2.0);
        

}