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

}

precacheFX()

{
	level._effect["flak_explosion"]		= loadfx("fx/explosions/flak88_explosion.efx");
	level._effect["raidlamp"] 	        = loadfx ("fx/props/glow_latern.efx");
	if(level.wwx_ambfirefx) level._effect["raidfire"] 	        = loadfx ("fx/fire/flame_small_em.efx");

}


ambientFX()

{

//lanterns

level._effect["raidlamp"] = loadfx ("fx/props/glow_latern.efx");
maps\mp\_fx::loopfx("raidlamp", (-1862,-3805,24), 0.6);
level._effect["raidlamp"] = loadfx ("fx/props/glow_latern.efx");
maps\mp\_fx::loopfx("raidlamp", (-1840,-3399,64), 0.6);
level._effect["raidlamp"] = loadfx ("fx/props/glow_latern.efx");
maps\mp\_fx::loopfx("raidlamp", (160,2992,121), 0.6);
level._effect["raidlamp"] = loadfx ("fx/props/glow_latern.efx");
maps\mp\_fx::loopfx("raidlamp", (211,2516,199), 0.6);



//torches
if(level.wwx_ambfirefx)
{
level._effect["raidfire"] = loadfx ("fx/fire/flame_small_em.efx");
maps\mp\_fx::loopfx("raidfire", (1592,-1042,-300), 0.6);
level._effect["raidfire"] = loadfx ("fx/fire/flame_small_em.efx");
maps\mp\_fx::loopfx("raidfire", (1674,-996,-300), 0.6);
level._effect["raidfire"] = loadfx ("fx/fire/flame_small_em.efx");
maps\mp\_fx::loopfx("raidfire", (1740,-1058,-300), 0.6);
level._effect["raidfire"] = loadfx ("fx/fire/flame_small_em.efx");
maps\mp\_fx::loopfx("raidfire", (1772,-1118,-300), 0.6);
level._effect["raidfire"] = loadfx ("fx/fire/flame_small_em.efx");
maps\mp\_fx::loopfx("raidfire", (1664,-1148,-300), 0.6);
}
}