| 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] |
|
|
 |
 |
|
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 |
 |
|
|
| Tmartinez |
General Member Since: Nov 8, 2004 Posts: 17 Last: May 6, 2006 [view latest posts] |
|
|
|
|
| Bodger2 |
General Member Since: Sep 4, 2004 Posts: 132 Last: Aug 5, 2006 [view latest posts] |
|
|
|
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]](images/BBCode/smilies/thumbs_up.gif) |
 |
|
|
| R4R44VIS |
 |
General Member Since: Apr 22, 2005 Posts: 553 Last: Jul 24, 2008 [view latest posts] |
|
|
|
|
| Mystic |
 |
General Member Since: Apr 10, 2004 Posts: 6147 Last: Apr 15, 2018 [view latest posts] |
|
|
 |
 |
|
|
| Bodger2 |
General Member Since: Sep 4, 2004 Posts: 132 Last: Aug 5, 2006 [view latest posts] |
|
|
|
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]](images/BBCode/smilies/wink.gif) |
 |
|
|
| Mystic |
 |
General Member Since: Apr 10, 2004 Posts: 6147 Last: Apr 15, 2018 [view latest posts] |
|
|
 |
 |
|
|
| westonegoth |
 |
General Member Since: Mar 27, 2005 Posts: 842 Last: Feb 25, 2008 [view latest posts] |
|
|
|
|
| Bodger2 |
General Member Since: Sep 4, 2004 Posts: 132 Last: Aug 5, 2006 [view latest posts] |
|
|
|
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.
@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. |
 |
|
|
| MrNoodle |
General Member Since: Apr 21, 2006 Posts: 27 Last: Jun 6, 2006 [view latest posts] |
|
|
|
|
|
|
mp_TempleCall of Duty: Mods: Multiplayer (624.12Kb)
|