//cleaned and added by Claire Claws

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

precacheFX()
{
	if(level.wwx_ambfogbankfx){
		//ambient fx
		level._effect["thin_light_smoke_M"]			= loadfx ("fx/smoke/thin_light_smoke_M.efx");
		level._effect["thin_black_smoke_M"]	            = loadfx ("fx/smoke/thin_black_smoke_M.efx");  
	}
	
    if(level.wwx_ambsnowfx){
		level._effect["snow_wind_cityhall"]			= loadfx ("fx/misc/snow_wind_cityhall.efx");
	}
}


ambientFX()
{
    if(level.wwx_ambfogbankfx){
		maps\mp\_fx::loopfx("thin_light_smoke_M", (1436,141,1), 1, (1436,141,101));
		maps\mp\_fx::loopfx("thin_light_smoke_M", (270,521,23), 1, (270,521,43));
		maps\mp\_fx::loopfx("thin_light_smoke_M", (1840,354,-7), 1, (1840,354,92));
		maps\mp\_fx::loopfx("thin_light_smoke_M", (3546,506,-30), 1, (3546,506,69));
		maps\mp\_fx::loopfx("thin_light_smoke_M", (2863,-31,-26), 1, (2863,-31,73));
	
		maps\mp\_fx::loopfx("thin_black_smoke_M", (2173,-115,-20), 0.6, (2173,-115,10));
		maps\mp\_fx::loopfx("thin_black_smoke_M", (808,1583,36), 0.6, (808,1583,136));
	}
	
	if(level.wwx_ambsnowfx){
		maps\mp\_fx::loopfx("snow_wind_cityhall", (1497,1449,28), 0.6, (1497,1449,128));
		maps\mp\_fx::loopfx("snow_wind_cityhall", (1486,2285,85), 0.6, (1486,2285,185));
		maps\mp\_fx::loopfx("snow_wind_cityhall", (1937,893,-5), 0.6, (1937,893,94));
		maps\mp\_fx::loopfx("snow_wind_cityhall", (2328,460,25), 0.6, (2328,460,125));
		maps\mp\_fx::loopfx("snow_wind_cityhall", (2921,441,19), 0.6, (2921,441,119));
		maps\mp\_fx::loopfx("snow_wind_cityhall", (1958,51,44), 0.6, (1958,51,144));
		maps\mp\_fx::loopfx("snow_wind_cityhall", (847,814,14), 0.6, (847,814,114));
		maps\mp\_fx::loopfx("snow_wind_cityhall", (838,-39,1), 0.6, (838,-39,101));
	}
}



