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

Members Online

»
0 Active | 8 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

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 2
Category: CoD2 MP Mapping
CoD 2 mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Next Page
subscribe
Author Topic: [Tutorial] Adding rain to a COD2 MP map!
Mystic
General Member
Since: Apr 10, 2004
Posts: 6147
Last: Apr 15, 2018
[view latest posts]
Level 10
Forum Moderator
Im a fan of MODSonair
Category: CoD2 MP Mapping
Posted: Friday, Apr. 28, 2006 10:24 pm
Adding rain to a MP map


I have wrote a tutorial for adding rain to a multiplayer map and it is available to view on our website here

MODSonline you are welcome to post the tutorial on this site if wanted, i have used an external link due to the speed of the MO server. If this is a problem foyleman just let me know.

edited on Apr. 28, 2006 06:25 pm by Rasta
Share |
Tmartinez
General Member
Since: Nov 8, 2004
Posts: 17
Last: May 6, 2006
[view latest posts]
Level 1
Category: CoD2 MP Mapping
Posted: Saturday, Apr. 29, 2006 12:57 am
didnt work for me... you gotta substitute the "rasta_cod2_rain" with the name of your map? , you gotta do something in the editor or just add this scripts?
Share |
Bodger2
General Member
Since: Sep 4, 2004
Posts: 132
Last: Aug 5, 2006
[view latest posts]
Level 4
Category: CoD2 MP Mapping
Posted: Saturday, Apr. 29, 2006 05:46 am
No its all scripting nothing to add to the map,just your gsc.Read the tut again.

Hey Rasta,isn't this just the UO tut with a different efx.Nothing really new here.Right down to this line, zufall = RandomInt(100); .It doesn't do anything.

I think the rain script from SP is better,and a little rewrite for MP of that script would look better.But thats just my 2 cents.All in all its a great tut.And I did give it a go,and it does work.

Thanks for sharing Rasta,keep up the good work.[thumbs_up]
Share |
R4R44VIS
General Member
Since: Apr 22, 2005
Posts: 553
Last: Jul 24, 2008
[view latest posts]
Level 6
Category: CoD2 MP Mapping
Posted: Saturday, Apr. 29, 2006 07:08 am
I couldnt get it working either:(
Share |
Mystic
General Member
Since: Apr 10, 2004
Posts: 6147
Last: Apr 15, 2018
[view latest posts]
Level 10
Forum Moderator
Im a fan of MODSonair
Category: CoD2 MP Mapping
Posted: Saturday, Apr. 29, 2006 08:51 am
Hey guys, it deffinatly does work, myself and others have tested it and got it to work fine, yes it is based on the UO tutorial but to make things more simple i just changed it to work for CoD2.
Share |
Bodger2
General Member
Since: Sep 4, 2004
Posts: 132
Last: Aug 5, 2006
[view latest posts]
Level 4
Category: CoD2 MP Mapping
Posted: Saturday, Apr. 29, 2006 01:08 pm
Ya I here ya Rasta.Nothing wrong with redoing a tut so its CoD2 friendly.Seems people even have trouble with a copy and paste.

I kind of did it different than Rasta.Instead of loading an external gsc,I put it in the maps gsc.I don't know,maybe thats where you lost them Rasta.Anyway heres another version of Rasta's fine work for you guys to copy and paste.
Code:

main()
{
maps\mp\_load::main();

level.rasta_cod2_rain = loadfx ("fx/misc/rain_light.efx");

//Soldier Settings
game["allies"] = "british";
game["axis"] = "german";
game["attackers"] = "allies";
game["defenders"] = "axis";
game["british_soldiertype"] = "normandy";
game["german_soldiertype"] = "normandy";

thread rasta_cod2_rain();
}

rasta_cod2_rain()
{
zufall = RandomInt(100);

while(1)
{
players = getentarray("player", "classname");

if(players.size > 0)
{
max_nodes       = 20;
max_nodes_per_player    = max_nodes/players.size;

for(ii=0;ii<max_nodes_per_player;ii++)
{
for(i = 0; i < players.size; i++)
{
player = players[i];

if(isAlive(player))
{
x= 350-randomfloat(700);
y= 350-randomfloat(700);

pos = player.origin +(x,y,200) ;
trace = bulletTrace(pos,pos +(0,0,-250), true, undefined);
                      
if(trace["fraction"] != 1) playfx(level.rasta_cod2_rain,trace["position"]);
wait 0.05; 
}
}
}
} 

wait 0.05;
}
}

Just paste that whole thing as your mymapname.gsc
Change the soldier settings if you want.Theres no HQ gametype included though.And the gsc goes in the same folder as your d3dbsp(maps/mp/)

Try it out and you will see that it works.
Once again good job Rasta.Your work is appreciated.[wink]
Share |
Mystic
General Member
Since: Apr 10, 2004
Posts: 6147
Last: Apr 15, 2018
[view latest posts]
Level 10
Forum Moderator
Im a fan of MODSonair
Category: CoD2 MP Mapping
Posted: Saturday, Apr. 29, 2006 01:13 pm
Cheers bodger, and nice idea simplifying it to one .gsc, i just tend to make a .gsc for every different function, just personal preference. Works both ways but if it ok with ill update the tutorial to include what you said?
Share |
westonegoth
General Member
Since: Mar 27, 2005
Posts: 842
Last: Feb 25, 2008
[view latest posts]
Level 7
Category: CoD2 MP Mapping
Posted: Saturday, Apr. 29, 2006 01:14 pm
why thankyou that will make my map better log i am not sure but instead of putting rain if u stick fog it ??? will it make fog ?? lol

iel try that soon l8r cheers rasta m8
Share |
Bodger2
General Member
Since: Sep 4, 2004
Posts: 132
Last: Aug 5, 2006
[view latest posts]
Level 4
Category: CoD2 MP Mapping
Posted: Saturday, Apr. 29, 2006 01:42 pm
Rasta writes...
Quote:
Cheers bodger, and nice idea simplifying it to one .gsc, i just tend to make a .gsc for every different function, just personal preference. Works both ways but if it ok with ill update the tutorial to include what you said?

Ya I do that to sometimes,but with larger scripts though.Like you said it works boths ways.
Hey its your tutorial not mine,do as you please.

Also I know how it feels when people say this tut doesn't work or cann't get a tut to work,after all your hard work in making it easy.[2guns]

@westonegoth
Fog is just one line in your gsc and you can add that easy enough.And again your getting off topic.And I will not reply any further than that.This topic is about rain not fog.
Share |
MrNoodle
General Member
Since: Apr 21, 2006
Posts: 27
Last: Jun 6, 2006
[view latest posts]
Level 2
Category: CoD2 MP Mapping
Posted: Monday, May. 1, 2006 04:09 am
Thanks Bodger2, I couldn't get it to work the other way. Is there a way to adapt that to make it snow, and possibly the cold breath?
Share |
Restricted Access Topic is Locked
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 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

»