Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 105 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 4
Category: CoD4 MP Mapping
CoD 4 mapping and level design for multiplayer.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Previous Page
subscribe
Author Topic: (TUTORIAL).. How to add Rain/Thunder & Lightning to your Maps.
45king
General Member
Since: Aug 18, 2005
Posts: 101
Last: May 23, 2011
[view latest posts]
Level 4
Category: CoD4 MP Mapping
Posted: Saturday, Apr. 5, 2008 04:21 pm
Nevermind fixed it[smokin]
Share |
Fluke
General Member
Since: Dec 31, 2004
Posts: 129
Last: Aug 2, 2008
[view latest posts]
Level 4
Category: CoD4 MP Mapping
Posted: Sunday, Apr. 6, 2008 09:07 pm
45king writes...
Quote:
Nevermind fixed it[smokin]


Don't know if I speak for anyone else but it would be helpful when you solve it you can give a brief summary of what you did to fix it. [wink]

Cheers!
Share |
45king
General Member
Since: Aug 18, 2005
Posts: 101
Last: May 23, 2011
[view latest posts]
Level 4
Category: CoD4 MP Mapping
Posted: Monday, Apr. 7, 2008 10:28 am
This gsc file set up will get the lightning and rain to work, you would have to change my map name and the x/y/z coordinates to what you want. And also ignore the code referring to smoke.

raw/maps/mp/mp_mhz_cem_b
Code:

main()
{
	
      
      maps\mp\mp_mhz_cem_b_fx::main(); 
      maps\createfx\mp_mhz_cem_b_fx::main();
      maps\mp\_load::main(); 
       
      maps\mp\_compass::setupMiniMap("compass_map_mp_mhz_cem_b");

	//setExpFog(700, 1500, 0.5, 0.5, 0.5, 0);
	ambientPlay("ambient_farm");
	VisionSetNaked( "mp_mhz_cem_b" );
	
	game["allies"] = "sas";
	game["axis"] = "russian";
	game["attackers"] = "allies";
	game["defenders"] = "axis";
	game["allies_soldiertype"] = "woodland";
	game["axis_soldiertype"] = "woodland";

	//setdvar( "r_specularcolorscale", "1" );

	//setdvar("r_glowbloomintensity0",".1");
	//setdvar("r_glowbloomintensity1",".1");
	//setdvar("r_glowskybleedintensity0",".1");
	//setdvar("compassmaxrange","2200");

}


raw/maps/mp/mp_mhz_cem_b
Code:
main()
{
   level._effect[ "rain_mp_farm" ]       = loadfx( "weather/rain_mp_farm" );
   level._effect[ "lightning" ]          = loadfx( "weather/lightning_mp_farm" );
   level._effect[ "smoke" ]          = loadfx( "smoke/amb_smoke_add" );
   
/#

   if ( getdvar( "clientSideEffects" ) != "1" )
      maps\createfx\mp_mhz_cem_b_fx::main();
#/      

}


raw/maps/createfx/mp_mhz_cem_b.fx.gsc
Code:
main()
{
			ent = maps\mp\_utility::createOneshotEffect( "rain_mp_farm" );
			ent.v[ "origin" ] = ( -560, 1880, 700 );
			ent.v[ "angles" ] = ( 270, 0, 0 );
			ent.v[ "fxid" ] = "rain_mp_farm";
			ent.v[ "delay" ] = -15;

                  ent = maps\mp\_utility::createOneshotEffect( "rain_mp_farm" );
			ent.v[ "origin" ] = ( 2928, 1792, 700 );
			ent.v[ "angles" ] = ( 270, 0, 0 );
			ent.v[ "fxid" ] = "rain_mp_farm";
			ent.v[ "delay" ] = -15;

                  ent = maps\mp\_utility::createOneshotEffect( "rain_mp_farm" );
			ent.v[ "origin" ] = ( 3040, 8736, 700 );
			ent.v[ "angles" ] = ( 270, 0, 0 );
			ent.v[ "fxid" ] = "rain_mp_farm";
			ent.v[ "delay" ] = -15;

                  ent = maps\mp\_utility::createOneshotEffect( "rain_mp_farm" );
			ent.v[ "origin" ] = ( -736, 8768, 700 );
			ent.v[ "angles" ] = ( 270, 0, 0 );
			ent.v[ "fxid" ] = "rain_mp_farm";
			ent.v[ "delay" ] = -15;

			ent = maps\mp\_utility::createOneshotEffect( "lightning" );
			ent.v[ "origin" ] = ( 1008, 1952, 3200 );
			ent.v[ "angles" ] = ( 270, 0, 0 );
			ent.v[ "fxid" ] = "lightning";
			ent.v[ "delay" ] = -15;

                  ent = maps\mp\_utility::createOneshotEffect( "lightning" );
			ent.v[ "origin" ] = ( 1040, 8752, 3200 );
			ent.v[ "angles" ] = ( 270, 0, 0 );
			ent.v[ "fxid" ] = "lightning";
			ent.v[ "delay" ] = -15;

                  ent = maps\mp\_utility::createOneshotEffect( "smoke" );
			ent.v[ "origin" ] = ( 2208, 1968, 112 );
			ent.v[ "angles" ] = ( 270, 0, 0 );
			ent.v[ "fxid" ] = "smoke";
			ent.v[ "delay" ] = -15;

                  ent = maps\mp\_utility::createOneshotEffect( "smoke" );
			ent.v[ "origin" ] = ( -448, 8272, 112 );
			ent.v[ "angles" ] = ( 270, 0, 0 );
			ent.v[ "fxid" ] = "smoke";
			ent.v[ "delay" ] = -15;

                  ent = maps\mp\_utility::createOneshotEffect( "smoke" );
			ent.v[ "origin" ] = ( -1088, 2528, 32 );
			ent.v[ "angles" ] = ( 270, 0, 0 );
			ent.v[ "fxid" ] = "smoke";
			ent.v[ "delay" ] = -15;

                  ent = maps\mp\_utility::createOneshotEffect( "smoke" );
			ent.v[ "origin" ] = ( 2960, 7744, 32 );
			ent.v[ "angles" ] = ( 270, 0, 0 );
			ent.v[ "fxid" ] = "smoke";
			ent.v[ "delay" ] = -15;

                  ent = maps\mp\_utility::createOneshotEffect( "smoke" );
			ent.v[ "origin" ] = ( 752, 0, 96 );
			ent.v[ "angles" ] = ( 270, 0, 0 );
			ent.v[ "fxid" ] = "smoke";
			ent.v[ "delay" ] = -15;

                  ent = maps\mp\_utility::createOneshotEffect( "smoke" );
			ent.v[ "origin" ] = ( 16, 1504, 80 );
			ent.v[ "angles" ] = ( 270, 0, 0 );
			ent.v[ "fxid" ] = "smoke";
			ent.v[ "delay" ] = -15;

                  ent = maps\mp\_utility::createOneshotEffect( "smoke" );
			ent.v[ "origin" ] = ( 1856, 8976, 80 );
			ent.v[ "angles" ] = ( 270, 0, 0 );
			ent.v[ "fxid" ] = "smoke";
			ent.v[ "delay" ] = -15;

                  ent = maps\mp\_utility::createOneshotEffect( "smoke" );
			ent.v[ "origin" ] = ( 1056, 10272, 96 );
			ent.v[ "angles" ] = ( 270, 0, 0 );
			ent.v[ "fxid" ] = "smoke";
			ent.v[ "delay" ] = -15;

}


This set will make the effects work but you will still be missing the "elm_thunder_strike, elm_thunder_distant" soundFX.

I still havn't been able to get them to work, I tried adding a folder "raw\sound\amb_elements" with all the thunder sounds in it, the creationg my own maps csv in the raw/soundaliass folder.

I treid 2 sets of code

Code:
#Emitters,,,,,,,,,,,,,,,,,,,,,,,,,

elm_thunder_strike,1,amb_elements/elm_thunder_strike1.wav,0.85,0.99,element,0.8,1.1,100000,,element,,,,0.5,mp_farm mp_cargoship mp_mhz_cem_b,,,,,250,,,0.4,,
elm_thunder_strike,2,amb_elements/elm_thunder_strike2.wav,0.85,0.99,element,0.8,1.1,100000,,element,,,,0.5,mp_farm mp_cargoship mp_mhz_cem_b,,,,,250,,,0.4,,
elm_thunder_strike,3,amb_elements/elm_thunder_strike3.wav,0.85,0.99,element,0.8,1.1,100000,,element,,,,0.5,mp_farm mp_cargoship mp_mhz_cem_b,,,,,250,,,0.4,,
elm_thunder_strike,4,amb_elements/elm_thunder_strike4.wav,0.85,0.99,element,0.8,1.1,100000,,element,,,,0.5,mp_farm mp_cargoship mp_mhz_cem_b,,,,,250,,,0.4,,
elm_thunder_strike,5,amb_elements/elm_thunder_strike1.wav,0.85,0.99,element,0.8,1.1,100000,,element,,,,0.5,mp_farm mp_cargoship mp_mhz_cem_b,,,,,500,,,0.4,,
elm_thunder_strike,6,amb_elements/elm_thunder_strike2.wav,0.85,0.99,element,0.8,1.1,100000,,element,,,,0.5,mp_farm mp_cargoship mp_mhz_cem_b,,,,,500,,,0.4,,
elm_thunder_strike,7,amb_elements/elm_thunder_strike3.wav,0.85,0.99,element,0.8,1.1,100000,,element,,,,0.5,mp_farm mp_cargoship mp_mhz_cem_b,,,,,500,,,0.4,,
elm_thunder_strike,8,amb_elements/elm_thunder_strike4.wav,0.85,0.99,element,0.8,1.1,100000,,element,,,,0.5,mp_farm mp_cargoship mp_mhz_cem_b,,,,,750,,,0.4,,
elm_thunder_distant,1,amb_elements/elm_thunder_dist1.wav,0.8,1,element,0.8,1,100000,,element,,,,0.5,mp_farm mp_cargoship mp_mhz_cem_b,,,,,750,,,0.2
elm_thunder_distant,2,amb_elements/elm_thunder_dist2.wav,0.8,1,element,0.8,1,100000,,element,,,,0.5,mp_farm mp_cargoship mp_mhz_cem_b,,,,,750,,,0.2
elm_thunder_distant,3,amb_elements/elm_thunder_dist3.wav,0.8,1,element,0.8,1,100000,,element,,,,0.5,mp_farm mp_cargoship mp_mhz_cem_b,,,,,750,,,0.2
elm_thunder_distant,4,amb_elements/elm_thunder_dist4.wav,0.8,1,element,0.8,1,100000,,element,,,,0.5,mp_farm mp_cargoship mp_mhz_cem_b,,,,,750,,,0.2
elm_thunder_distant,5,amb_elements/elm_thunder_dist1.wav,0.8,1,element,0.8,1,100000,,element,,,,0.5,mp_farm mp_cargoship mp_mhz_cem_b,,,,,1000,,,0.2
elm_thunder_distant,6,amb_elements/elm_thunder_dist2.wav,0.8,1,element,0.8,1,100000,,element,,,,0.5,mp_farm mp_cargoship mp_mhz_cem_b,,,,,1000,,,0.2
elm_thunder_distant,7,amb_elements/elm_thunder_dist3.wav,0.8,1,element,0.8,1,100000,,element,,,,0.5,mp_farm mp_cargoship mp_mhz_cem_b,,,,,1000,,,0.2
elm_thunder_distant,8,amb_elements/elm_thunder_dist4.wav,0.8,1,element,0.8,1,100000,,element,,,,0.5,mp_farm mp_cargoship mp_mhz_cem_b,,,,,1000,,,0.2


and replacing the line "element,,,,0.5,mp_farm mp_cargoship mp_mhz_cem_b"

with

element,,,,0.5,allmp

But still havnt been able to get it work[machine_gun] So Iused the ambient_farm for the map as it has rain, and thunder in the background.


edited on Apr. 7, 2008 06:35 am by 45king

edited on Apr. 7, 2008 06:37 am by 45king
Share |
FiremanPaul
General Member
Since: Nov 6, 2006
Posts: 84
Last: Oct 1, 2009
[view latest posts]
Level 3
Category: CoD4 MP Mapping
Posted: Monday, Apr. 7, 2008 04:01 pm
Not sure exactly where the problem is with what you posted. I think it may have to do with the modified sound alias csv. Check page 4 of this post http://www.modsonline.com/Forums-top-75588.html and if that doesnt work, contact me by PM here or on xfire, username firemanpaul. I can send you the csv file and help you through the rest.

Having this thunder working makes a BIG difference in the impact of the fx[eek]

edited on Apr. 7, 2008 12:04 pm by FiremanPaul
Share |
45king
General Member
Since: Aug 18, 2005
Posts: 101
Last: May 23, 2011
[view latest posts]
Level 4
Category: CoD4 MP Mapping
Posted: Tuesday, Apr. 8, 2008 01:56 am
Thanks for pointing ,me in the right direction[thumbs_up]

Got it working now[smokin]
Share |
mickey-virus
General Member
Since: Nov 29, 2015
Posts: 1
Last: Jan 18, 2016
[view latest posts]
Level 0
Category: CoD4 MP Mapping
Posted: Monday, Jan. 18, 2016 09:35 pm
hi gys i m new here can any one tell me how to add rain in cod4 promod like this : https://www.youtube.com/watch?v=-Z4Ab-0AWZc
Share |
Restricted Access Topic is Locked
Page
Previous Page
subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 MP Mapping

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»