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

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

}

precacheFX()

{
	level._effect["flak_explosion"]	       = loadfx("fx/explosions/flak88_explosion.efx");
	if(level.wwx_ambsmokefx) level._effect["dawntanksmoke"] 	       = loadfx ("fx/smoke/thin_black_smoke_S.efx");
	if(level.wwx_ambfirefx) level._effect["dawnhtfire"] 	       = loadfx ("fx/fire/tank_fire_engine.efx");
	
	
}


ambientFX()

{

//tank
if(level.wwx_ambsmokefx)
{
level._effect["dawntanksmoke"] = loadfx ("fx/smoke/thin_black_smoke_S.efx");
maps\mp\_fx::loopfx("dawntanksmoke", (160,-1632,95), 0.6);
level._effect["dawntanksmoke"] = loadfx ("fx/smoke/thin_black_smoke_S.efx");
maps\mp\_fx::loopfx("dawntanksmoke", (247,-1636,95), 0.6);
level._effect["dawntanksmoke"] = loadfx ("fx/smoke/thin_black_smoke_S.efx");
maps\mp\_fx::loopfx("dawntanksmoke", (956,-1561,92), 0.6);
level._effect["dawntanksmoke"] = loadfx ("fx/smoke/thin_black_smoke_S.efx");
maps\mp\_fx::loopfx("dawntanksmoke", (1022,-1509,92), 0.6);
level._effect["dawntanksmoke"] = loadfx ("fx/smoke/thin_black_smoke_S.efx");
maps\mp\_fx::loopfx("dawntanksmoke", (594,-1650,109), 0.6);
level._effect["dawntanksmoke"] = loadfx ("fx/smoke/thin_black_smoke_S.efx");
maps\mp\_fx::loopfx("dawntanksmoke", (668,-1612,109), 0.6);
}


//halftrack
if(level.wwx_ambfirefx)
{
level._effect["dawnhtfire"] = loadfx ("fx/fire/tank_fire_engine.efx");
maps\mp\_fx::loopfx("dawnhtfire", (-1920,-1892,68), 0.6);
level._effect["dawnhtfire"] = loadfx ("fx/fire/tank_fire_engine.efx");
maps\mp\_fx::loopfx("dawnhtfire", (172,-432,48), 0.6);
}
}