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

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

	//ambient FX   
      if(level.wwx_ambsmokefx)
      {                         		                                                      			
	level._effect["thin_black_smoke_S"]= loadfx ("fx/smoke/thin_black_smoke_S.efx");
      level._effect["battlefield_smokebank_S"]= loadfx ("fx/smoke/battlefield_smokebank_S.efx");
	level._effect["damaged_vehicle_smoke"]= loadfx ("fx/smoke/damaged_vehicle_smoke.efx");
      }
 
      if(level.wwx_ambfirefx)
      {
	level._effect["tank_fire_engine"]= loadfx ("fx/fire/tank_fire_engine.efx");
	level._effect["tank_fire_turret_large"]= loadfx ("fx/fire/tank_fire_turret_large.efx");
	level._effect["halftrack_fire"]= loadfx ("fx/fire/halftrack_fire.efx");
      }
}

ambientFX()
{
      if(level.wwx_ambsmokefx)
      {
	maps\mp\_fx::loopfx("battlefield_smokebank_S", (765,2940,350), 1, (755,2748,450));
	maps\mp\_fx::loopfx("thin_black_smoke_S", (959,-683,400), 1, (959,-683,500));
	maps\mp\_fx::loopfx("damaged_vehicle_smoke", (707,1886,490), 1, (707,1886,590));
	maps\mp\_fx::loopfx("damaged_vehicle_smoke", (2953,-662,405), 1, (2953,-662,500));
      }

      if(level.wwx_ambfirefx)
      {
	//burning tank
	maps\mp\_fx::loopfx("tank_fire_turret_large", (-1029,-760,490), 1, (-1029,-760,590));
	//burning blitz	
	maps\mp\_fx::loopfx("tank_fire_engine", (-990,712,413), .5, (-990,712,513));
	maps\mp\_fx::loopfx("halftrack_fire", (-1077,2155,413), 1, (-1077,2155,513));
	//burning car
	maps\mp\_fx::loopfx("tank_fire_turret_large", (974,337,411), 1, (974,337,511));
	//Sound FX
	//burning tank
	maps\mp\_fx::soundfx("medfire", (-1029,-760,490));
	//burning blitz
	maps\mp\_fx::soundfx("smallfire", (-990,712,413));
	maps\mp\_fx::soundfx("medfire", (-1077,2155,413));
	//burning car
	maps\mp\_fx::soundfx("medfire", (974,337,411));
      }
	
	//waterfall
	maps\mp\_fx::soundfx("waterfall", (840,3408,450));
}