main()
{
	precacheFX();
        ambientFX();
	
	level.scr_sound["flak88_explode"]	= "flak88_explode";
	level.scr_sound["vitre_explode"]	= "vitre_explode";
	level.scr_sound["bout_explode"]	        = "bout_explode";
        precacheModel("xmodel/mp_tntbomb_obj");
}


precacheFX()
{
	level._effect["flak_explosion"]	 = loadfx("fx/explosions/flak88_explosion.efx");
        level._effect["cassevitre"] = loadfx ("fx/explose/vitre_explo.efx");
	level._effect["cassebout"] = loadfx ("fx/props/wine_bottle.efx");
	level._effect["cassebout2"] = loadfx ("fx/vin/tachevin.efx");	
        level._effect["banque_explose"]	 = loadfx("fx/explose/banque_explosion.efx");
        if(level.wwx_ambsmokefx) level._effect["thin_black_smoke_M"]  = loadfx ("fx/smoke/thin_black_smoke_M.efx");
	if(level.wwx_ambdustfx) level._effect["dust_wind"]	= loadfx ("fx/dust/dust_wind_brown_thick.efx");
}

ambientFX()
{ 
        if(level.wwx_ambsmokefx)
        {
        maps\mp\_fx::loopfx("thin_black_smoke_M", (-372,2490,-92), 2, (-72,2690,-32));
        maps\mp\_fx::loopfx("thin_black_smoke_M", (-2470,-3210,295), 2, (-2170,-3410,355));  
        }
      
	if(level.wwx_ambdustfx) maps\mp\_fx::loopfx("dust_wind", (1533,3312, -17), 3, (1533,3312, -07));
}
