1.open your mp_mapname.gsc located here rawfile,maps/mp/mp_mapname.gsc ,& add these 2 lines above maps\mp\_load::main(); maps\mp\mp_mapname_fx::main(); maps\createfx\mp_mapname_fx::main(); maps\mp\_load::main(); 2.now if you have not already created an mp_mapname_fx.gsc then just open the stock mp_bloc_fx.gsc it should be like this ----------------------------------------------------------- main() { level._effect[ "snow_light" ] = loadfx( "weather/snow_light_mp_bloc" ); level._effect[ "hallway_smoke" ] = loadfx( "smoke/hallway_smoke_light" ); level._effect[ "snow_wind" ] = loadfx( "weather/snow_wind" ); /# if ( getdvar( "clientSideEffects" ) != "1" ) maps\createfx\mp_bloc_fx::main(); #/ } ------------------------------------------------------------------------ the words in red is the effect that will be loaded. the words in green is the addres that the effect is located in the fx folder. the words in blue needs to be changed to your map name fx gsc for example! mp_mapname _fx once you have input the desired fx in the higlighted feilds what fx you want RED /where it is located,GREEN /and changed the blue entry to your mapname fx gsc click file save As ,then call it mp_youmapname_fx now you have your mp_youmapname_fx 3. Then create a new folder called createfx in this directory raw/maps & copy & paste the fx.gsc you just made in to that folder open it up and deleate all the info in it now just copy this info here in to it instead ---------------------------------------------------------------- main() { ent = maps\mp\_utility::createOneshotEffect( "snow_light_mp_bloc" ); ent.v[ "origin" ] = ( 1200, -464, 144 ); ent.v[ "angles" ] = ( 270, 0, 0 ); ent.v[ "fxid" ] = "snow_light_mp_bloc"; ent.v[ "delay" ] = -1; } ----------------------------------------------------------------------- using the original fx that was already there in the mp_bloc_fx .gsc as an example i have placed it in where it needs to go,the green numbers are the x,y,z location on your map where you want to place the fx each time you want to add more fx all you have to do is copy & paste this ent info editing the red & green with what ever fx & location you want ,save & close that file once edited. final step open the compile tools click the update zone files button and add these 2 lines rawfile,maps/mp/mp_yourmapname_fx.gsc rawfile,maps/createfx/mp_yourmapname_fx.gsc also add the relevant new fx still using the snow_light_mp_bloc fx as an example would look like this fx,weather/snow_light_mp_bloc then save !!!!!!!!!!! build fast file every time you add new fx so do that now then enjoy they should work and to prove they do look at my new fog fx
Tutorial Written By: Alphawolf |