main()
{
	
	exploderFX();

	level.scr_sound["flak88_explode"]			= "flak88_explode";
	level.scr_sound["radio_explosion"]			= "flak88_explode";

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

      if(level.wwx_ambfirefx)
      {
	level._effect["tank_fire_turret"] 			= loadfx ("fx/fire/tank_fire_turret_large.efx");
	level._effect["halftrack_fire"]				= loadfx ("fx/fire/halftrack_fire.efx");	
	level._effect["tank_fire_engine"] 			= loadfx ("fx/fire/tank_fire_engine.efx");
      }
 
      if(level.wwx_ambsmokefx)
      {
	level._effect["damaged_vehicle_smoke"]			= loadfx ("fx/smoke/damaged_vehicle_smoke.efx");
	level._effect["crater_smoke"]				= loadfx ("fx/smoke/thin_light_smoke_M_duhoc.efx");
	}

	if(level.wwx_ambfliesfx) level._effect["insects_carcass_flies"]			= loadfx ("fx/misc/insects_carcass_flies.efx");

	if(level.wwx_ambdustfx) level._effect["dust_wind"]				= loadfx ("fx/dust/dust_wind_eldaba.efx");
	level._effect["lantern_light"] 				= loadfx ("fx/props/glow_latern.efx");

	
	//Fire
      if(level.wwx_ambfirefx)
      {
	maps\mp\_fx::loopfx("tank_fire_turret", (-256,-2032,108), 1, (-260,-2040,128));
	maps\mp\_fx::loopfx("halftrack_fire", (-24,-568,32), 1, (48,-648,32));
	maps\mp\_fx::loopfx("tank_fire_engine", (-1392,-1840,48), 1, (-1376,-1864,56));
	maps\mp\_fx::loopfx("tank_fire_turret", (-816,1136,88), 1, (-816,1142,96));
	maps\mp\_fx::loopfx("halftrack_fire", (-2112,-4088,32), 1, (-2122,-4088,64));
	maps\mp\_fx::soundfx("medfire", (-256,-2032,80));
	maps\mp\_fx::soundfx("medfire", (-24,-568,40));
	maps\mp\_fx::soundfx("medfire", (-1392,-1840,40));
      }

	//Lanterns
	maps\mp\_fx::loopfx("lantern_light", (286,-152,50), 0.5, (286,-152,52));
	maps\mp\_fx::loopfx("lantern_light", (1669,-1526,187), 0.5, (1669,-1526,189));
	maps\mp\_fx::loopfx("lantern_light", (-1530,-1632,42), 0.5, (-1558,-1632,44));
	maps\mp\_fx::loopfx("lantern_light", (-494,-3468,477), 0.5, (-494,-3468,479));

	//Smoke
      if(level.wwx_ambsmokefx)
      {	
	maps\mp\_fx::loopfx("damaged_vehicle_smoke", (-1384,-1856,40), 1, (-1360,-1888,112));	
	maps\mp\_fx::loopfx("crater_smoke", (-1392,-2528,-32), 1, (-1344,-2600,192));	
	maps\mp\_fx::loopfx("crater_smoke", (1856,-440,-24), 1, (1920,-512,136));
	maps\mp\_fx::loopfx("crater_smoke", (1688,-896,-56), 1, (1744,-1000,112));
      }

	//Flies
      if(level.wwx_ambfliesfx)
      {
	maps\mp\_fx::loopfx("insects_carcass_flies", (1408,-520,16), 1, (1408,-520,32));
	maps\mp\_fx::loopfx("insects_carcass_flies", (1672,-656,24), 1, (1696,-664,32));	
	maps\mp\_fx::soundfx("cow_fly", (1408,-520,16));
	maps\mp\_fx::soundfx("cow_fly", (1672,-656,24));
	}

	//Dust
      if(level.wwx_ambdustfx)
      {
	maps\mp\_fx::loopfx("dust_wind", (1024,-2032,16), 1, (1024,-2032,32));
	maps\mp\_fx::loopfx("dust_wind", (872,-1440,16), 1, (872,-1440,32));
	maps\mp\_fx::loopfx("dust_wind", (720,-808,16), 1, (720,-808,32));
	maps\mp\_fx::loopfx("dust_wind", (240,-2712,16), 1, (240,-2712,32));
	}

}

exploderFX()
{
	maps\mp\_fx::exploderfx(1, "flak_explosion", (-420,295,44), 0, (-420,295,54));
	maps\mp\_fx::exploderfx(2, "radio_explosion", (-420,295,44), 0, (-420,295,54));
	maps\mp\_fx::exploderfx(2, "radio_explode", (-420,295,44), 0, (-420,295,54));
}