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

Members Online

»
0 Active | 7 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 SP Mapping
Call of Duty 2 single player mapping, scripting and everything single player.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: SP map fog effect.
elmer_fudd
General Member
Since: Feb 20, 2007
Posts: 125
Last: Mar 20, 2009
[view latest posts]
Level 4
Category: CoD2 SP Mapping
Posted: Sunday, May. 13, 2007 04:52 pm
Could someone be kind enough to direct me to a tutorial on how to add/create a fog effect on my SP map? I've searched all over and can't seem to find one [duh][wave]
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD2 SP Mapping
Posted: Sunday, May. 13, 2007 05:37 pm
works the same as in MP maps

setCullFog(0, 5000, .58, .57, .57, 0);

for instance
Share |
elmer_fudd
General Member
Since: Feb 20, 2007
Posts: 125
Last: Mar 20, 2009
[view latest posts]
Level 4
Category: CoD2 SP Mapping
Posted: Monday, May. 14, 2007 02:37 am
Thanks, I'll try it out [thumbs_up]
Share |
elmer_fudd
General Member
Since: Feb 20, 2007
Posts: 125
Last: Mar 20, 2009
[view latest posts]
Level 4
Category: CoD2 SP Mapping
Posted: Monday, May. 14, 2007 04:30 pm
I added the lines in my .gsc file folder and after finishing what I was doing to my map, I compiled it. There is no fog effect at all [ohwell]. I didn't get any script errors when I ran the map. What could be the problem?I got a feeling that it was supposed to go into the fx file folder. Any suggestions?
Below is my .gsc file:

#include maps\_utility;
#include maps\_anim;
#using_animtree("generic_human");

main()

{

maps\_load::main();
maps\newmap_fx::main();

//seExpFog (0.00007, .75, .84, .86, 0):
setCullFog ( 1300, 16000, 0.78, 0.84, 0.86, 0);
level.player takeallweapons();
level.player giveWeapon("thompson");
level.player giveWeapon("colt");
level.player giveWeapon("fraggrenade");
level.player switchToWeapon("colt");

precacheshader("black");
precacheString(&"STRINGS_NEWMAP_INTRO_1");
precacheString(&"STRINGS_NEWMAP_INTRO_2");
precacheString(&"STRINGS_NEWMAP_INTRO_3");
precacheString(&"STRINGS_NEWMAP_INTRO_4");

maps\_introscreen::introscreen_delay
(&"STRINGS_NEWMAP_INTRO_1",
&"STRINGS_NEWMAP_INTRO_2",
&"STRINGS_NEWMAP_INTRO_3",
&"STRINGS_NEWMAP_INTRO_4");



}
Share |
Tim451
General Member
Since: Feb 22, 2005
Posts: 771
Last: May 28, 2009
[view latest posts]
Level 7
Category: CoD2 SP Mapping
Posted: Monday, May. 14, 2007 04:58 pm
The code should be:

main()

{

maps\_load::main();
maps\newmap_fx::main();

setExpFog (0.00007, .75, .84, .86, 0);
setCullFog ( 1300, 16000, 0.78, 0.84, 0.86, 0);
level.player takeallweapons();
level.player giveWeapon("thompson");
level.player giveWeapon("colt");
level.player giveWeapon("fraggrenade");
level.player switchToWeapon("colt");

precacheshader("black");
precacheString(&"STRINGS_NEWMAP_INTRO_1");
precacheString(&"STRINGS_NEWMAP_INTRO_2");
precacheString(&"STRINGS_NEWMAP_INTRO_3");
precacheString(&"STRINGS_NEWMAP_INTRO_4");

maps\_introscreen::introscreen_delay
(&"STRINGS_NEWMAP_INTRO_1",
&"STRINGS_NEWMAP_INTRO_2",
&"STRINGS_NEWMAP_INTRO_3",
&"STRINGS_NEWMAP_INTRO_4");



}

The "//" was commenting out the line so it wasn't read & was just being treated as a comment rather than code... Also it should say "setExpFog" not "seExpFog" and it should be a semicolon at the end of the line instead of a colon...

Hope that helps!

[sniper]
Share |
TheModDoctor
General Member
Since: Apr 27, 2007
Posts: 174
Last: Jan 10, 2009
[view latest posts]
Level 4
Category: CoD2 SP Mapping
Posted: Monday, May. 14, 2007 05:23 pm
I tried this but it didn't work
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD2 SP Mapping
Posted: Monday, May. 14, 2007 05:29 pm
don't use both CullFog and Exp fog at the same time.. use one or the other.
Regarding your first .gsc file (with the ExpFog commented out), the fog only starts at 1300 units and will become completely grey at 16000 units.. that's probably a bit much.

Try one of the fog lines from one of the stock map files.

setExpFog(0.00015, 0.9, 0.95, 1, 0);

from mp_toujane for instance.

edited on May. 14, 2007 01:30 pm by The_Caretaker
Share |
TheModDoctor
General Member
Since: Apr 27, 2007
Posts: 174
Last: Jan 10, 2009
[view latest posts]
Level 4
Category: CoD2 SP Mapping
Posted: Monday, May. 14, 2007 05:35 pm
Thanks [thumbs_up], now its working
Share |
elmer_fudd
General Member
Since: Feb 20, 2007
Posts: 125
Last: Mar 20, 2009
[view latest posts]
Level 4
Category: CoD2 SP Mapping
Posted: Monday, May. 14, 2007 10:19 pm
Mine's working as well [biggrin]. As you can tell, I'm not only a beginner mapper, I'm beginner typist also [crazy] [casanova]Appreciate your help [thumbs_up]
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 SP 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

»