How to add Rain/Thunder & Lightning to your Maps.
Posted: March 5th, 2008, 7:51 am
How to add Rain/Thunder & Lightning to your maps
1: In your MP_Mapname.gsc add the following.you will find your GSC file
here (C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\raw\maps\mp)
NOTE: you may have to edit the figures, 2548,0,27000,0,1100), 3) ect to your own map referance Grids.
If you have (maps\mp\_load::main();) already in your GSC file you dont need to add this one.
2:Open Notepad and make a new file called MP_yourmap_fx and add the following infomations then save it
to the same folder as your GSC Files.(C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\raw\maps\mp)
3:in the same directory (C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\raw\maps\mp)
make a new Folder called: CREATEFX,then inside that folder open notepad and make a file called
mp_yourmap.fx (NOTE This is a 2nd FX file that is required)save it in this Folder(CREATEFX only) not
in you main GSC folder.
Put the following details into the created file.
Save and close file, in the CreateFX folder.
Open radiant & your compiler and do a full compile..
Compile BPS. Compile Refelections, Build ZoneFileThe do step 5
Lastly, no:5
5: in your Compiler. open up you update zone-file button and add the following to your ZoneFile
Save your update zone file then re-run the Build-Fast-File again.
Start map, then hopefully you should have Rain/Thunder/Lightning.
This is all i have in mine and it works.. if it dont work then you have done somethink wrong.
Final Results should be like this.
http://www.youtube.com/watch?v=Bbk-qsLoe6Q
LArger Screen version.
http://www.youtube.com/swf/l.swf?video_ ... S7FLdDVuh4
---------------------------------------------------------------------------------------
Tutorial by ManicKiller/SteveUK
1: In your MP_Mapname.gsc add the following.you will find your GSC file
here (C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\raw\maps\mp)
NOTE: you may have to edit the figures, 2548,0,27000,0,1100), 3) ect to your own map referance Grids.
Code: Select all
main()
{
level._effect[ "rain_heavy_mist" ] = loadfx( "weather/rain_mp_farm" );
maps\mp\_fx::loopfx("rain_heavy_mist", (2548.0, 2700.0, 1100), 3);
level._effect[ "lightning" ] = loadfx( "weather/lightning_mp_farm" );
maps\mp\_fx::loopfx("lightning", (2500.0, 2700.0, 1100), 10);
maps\mp\_load::main();
If you have (maps\mp\_load::main();) already in your GSC file you dont need to add this one.
2:Open Notepad and make a new file called MP_yourmap_fx and add the following infomations then save it
to the same folder as your GSC Files.(C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\raw\maps\mp)
Code: Select all
main()
{
level._effect[ "wood" ] = loadfx( "explosions/grenadeExp_wood" );
level._effect[ "dust" ] = loadfx( "explosions/grenadeExp_dirt_1" );
level._effect[ "brick" ] = loadfx( "explosions/grenadeExp_concrete_1" );
level._effect[ "coolaidmanbrick" ] = loadfx( "explosions/grenadeExp_concrete_1" );
level._effect[ "rain_heavy_mist" ] = loadfx( "weather/rain_mp_farm" );
level._effect[ "lightning" ] = loadfx( "weather/lightning_mp_farm" );
level._effect[ "cgoshp_drips_a" ] = loadfx( "misc/cgoshp_drips_a" );
//ambient runners
level._effect[ "rain_splash_mp_farm" ] = loadfx( "ambient_runners/mp_farm_rain_splash01" );
level._effect[ "water_noise_ud" ] = loadfx( "ambient_runners/mp_farm_water_noise_ud01" );
level._effect[ "water_noise" ] = loadfx( "ambient_runners/mp_farm_water_noise01" );
/#
if ( getdvar( "clientSideEffects" ) != "1" )
maps\createfx\mp_tubrok_fx::main();
#/
}
3:in the same directory (C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\raw\maps\mp)
make a new Folder called: CREATEFX,then inside that folder open notepad and make a file called
mp_yourmap.fx (NOTE This is a 2nd FX file that is required)save it in this Folder(CREATEFX only) not
in you main GSC folder.
Put the following details into the created file.
Code: Select all
ent = maps\mp\_utility::createOneshotEffect( "rain_heavy_mist" );
ent.v[ "origin" ] = ( 3232.0, 3160.0, 900 );
ent.v[ "angles" ] = ( 270, 276, 0 );
ent.v[ "fxid" ] = "rain_heavy_mist";
ent.v[ "delay" ] = -1;
ent = maps\mp\_utility::createOneshotEffect( "lightning" );
ent.v[ "origin" ] = ( 3288.0, 3100.0, 624 );
ent.v[ "angles" ] = ( 270, 276, 0 );
ent.v[ "fxid" ] = "lightning";
ent.v[ "delay" ] = -1;
Save and close file, in the CreateFX folder.
Open radiant & your compiler and do a full compile..
Compile BPS. Compile Refelections, Build ZoneFileThe do step 5
Lastly, no:5
5: in your Compiler. open up you update zone-file button and add the following to your ZoneFile
Code: Select all
fx,ambient_runners/mp_cargoship_rain_noise01
fx,ambient_runners/mp_cargoship_rain_noise02
fx,ambient_runners/mp_cargoship_rain_noise03
fx,ambient_runners/mp_cargoship_rain_noise04
fx,ambient_runners/mp_cargoship_rain_noise_ud01
fx,ambient_runners/mp_cargoship_rain_noise_ud02
fx,ambient_runners/mp_cargoship_rain_noise_ud03
fx,ambient_runners/mp_cargoship_rain_noise05
fx,weather/rain_mp_farm
fx,weather/lightning_mp_farm
fx,misc/cgoshp_drips
fx,misc/cgoshp_drips_a
Save your update zone file then re-run the Build-Fast-File again.
Start map, then hopefully you should have Rain/Thunder/Lightning.
This is all i have in mine and it works.. if it dont work then you have done somethink wrong.
Final Results should be like this.
http://www.youtube.com/watch?v=Bbk-qsLoe6Q
LArger Screen version.
http://www.youtube.com/swf/l.swf?video_ ... S7FLdDVuh4
---------------------------------------------------------------------------------------
Tutorial by ManicKiller/SteveUK