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

Members Online

»
0 Active | 76 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 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 subscribe
Author Topic: fog help
dovlexdubrava
General Member
Since: Nov 3, 2008
Posts: 22
Last: Jul 16, 2010
[view latest posts]
Level 1
Category: CoD2 MP Mapping
Posted: Friday, Oct. 23, 2009 09:49 pm
I want to add fog to mp map...had someone know how to make this ?
Share |
S3NiC
General Member
Since: Aug 13, 2009
Posts: 71
Last: Feb 1, 2010
[view latest posts]
Level 3
Im a fan of MODSonair
Category: CoD2 MP Mapping
Posted: Saturday, Oct. 24, 2009 02:47 am
I found a great tutorial on adding effects on your map.

http://www.modsonline.com/Tutorials-read-345.html

This line
Code:
level._effect["____?____"] = loadfx ("fx/smoke/____?____.efx); 
you would want to look in raw/fx/smoke and add in what you want. e.g.
Code:
level._effect["black_smoke_ball"] = loadfx ("fx/smoke/black_smoke_ball.efx);

you would add that line to yourmapname.gsc
If i am wrong at least some else can get this post roling because you have waited a long time.
Share |
dovlexdubrava
General Member
Since: Nov 3, 2008
Posts: 22
Last: Jul 16, 2010
[view latest posts]
Level 1
Category: CoD2 MP Mapping
Posted: Saturday, Oct. 24, 2009 11:12 am
i know how to add fire and smoke but it is not same if i want to add fog or rain. More less some tutorial are made for Sp maps...like rain or lighting .
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, Oct. 24, 2009 11:31 am
Fog can be added using setVolFog or setExpFog.

For example:
Code:
SetExpFog( <startDist>, <halfwayDist>, <red>, <green>, <blue>, <transition time> )
Code:
setVolFog(<startDist>, <halfwayDist>, <halfwayHeight>, <baseHeight>, <red>, <green>, <blue>, <transition time>)


So an example of that would be;
Code:
setVolFog(200, 1500, 350, 100, 0.4, 0.425, 0.44, 0.0);
Code:
setExpFog(100, 1000, 0.4, 0.425, 0.44, 0.0);
Share |
dovlexdubrava
General Member
Since: Nov 3, 2008
Posts: 22
Last: Jul 16, 2010
[view latest posts]
Level 1
Category: CoD2 MP Mapping
Posted: Saturday, Oct. 24, 2009 11:36 am
Rasta writes...
Quote:
Fog can be added using setVolFog or setExpFog.

For example:
Code:
SetExpFog( <startDist>, <halfwayDist>, <red>, <green>, <blue>, <transition time> )
Code:
setVolFog(<startDist>, <halfwayDist>, <halfwayHeight>, <baseHeight>, <red>, <green>, <blue>, <transition time>)


So an example of that would be;
Code:
setVolFog(200, 1500, 350, 100, 0.4, 0.425, 0.44, 0.0);
Code:
setExpFog(100, 1000, 0.4, 0.425, 0.44, 0.0);

so if i want fog on map the fx file will look like this ?

Code:
main()
{
level._effect["fire"] = 	loadfx ("fx/fire/ground_fire_med.efx"); 
maps\mp\_fx::loopfx("fire",(-296, -4552, 8), 0.7);

setVolFog(200, 1500, 350, 100, 0.4, 0.425, 0.44, 0.0);
setExpFog(100, 1000, 0.4, 0.425, 0.44, 0.0);

//Sound FX
	maps\mp\_fx::soundfx("medfire", (-296,-4552,8));

[i]edited on Oct. 24, 2009 07:37 am by dovlexdubrava[/i]
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, Oct. 24, 2009 11:39 am
You must use one or the other volumetric or exponential, the script needs to be place in yourmap.gsc below the _load call.
Share |
dovlexdubrava
General Member
Since: Nov 3, 2008
Posts: 22
Last: Jul 16, 2010
[view latest posts]
Level 1
Category: CoD2 MP Mapping
Posted: Saturday, Oct. 24, 2009 11:46 am
Rasta writes...
Quote:
You must use one or the other volumetric or exponential, the script needs to be place in yourmap.gsc below the _load call.


i just try everything and allways i get this error
******* script compile error *******
unknown function: (file 'maps/mp/mp_castle.gsc', line 15)
setVolFog(200, 1500, 350, 100, 0.4, 0.425, 0.44, 0.0);

this is my gsc

Code:
main()
{
maps\mp\_load::main();
maps\mp\mp_ramp1::main(); 
maps\mp\mp_ramp2::main(); 
maps\mp\mp_ramp3::main(); 



game["allies"] = "american";
game["axis"] = "german";
game["attackers"] = "allies";
game["defenders"] = "axis";

setVolFog(200, 1500, 350, 100, 0.4, 0.425, 0.44, 0.0);
}
Share |
Sevenz
General Member
Since: Apr 24, 2006
Posts: 2390
Last: May 10, 2013
[view latest posts]
Level 8
Category: CoD2 MP Mapping
Posted: Sunday, Oct. 25, 2009 10:51 am
volumetric fog (setvolfog) is available in cod5 only, this is cod2. there should be exponential fog (setexpfog) and maybe cull fog (see stock map GSCs, i think you find it there sometimes but out commented)
Share |
Restricted Access Topic is Locked 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

»