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

Members Online

»
0 Active | 11 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 Scripting
Scripting and coding with Call of Duty 2.
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: different fog/sun values
RollinHard
General Member
Since: Jun 7, 2006
Posts: 24
Last: Feb 22, 2010
[view latest posts]
Level 1
Category: CoD2 Scripting
Posted: Tuesday, Feb. 13, 2007 07:09 pm
Is it possible that i can set another fog and sunlight only for dx7 in the main gsc or fx_gsc for MP?

Dont know if it is correct but something like this from SP:
Code:
{
if (getcvar("r_rendererInUse") == "dx7")
setCullFog (000, 3500, 1, 1, 1, 0.1);
setSunLight( 1, 1, 1.2 );
}


thx for any help
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD2 Scripting
Posted: Wednesday, Feb. 14, 2007 07:25 pm
well... you can try?

I'm not sure about the sunlight, but the fog should be working that way...

{
if (getcvar("r_rendererInUse") == "dx7")
{
setCullFog (000, 3500, 1, 1, 1, 0.1);
setSunLight( 1, 1, 1.2 );
}
else
{
setCullFog (000, 1500, 1, 1, 1, 0.1);
}
}

however... if you do this, you will give an unfair advantage to certain players, because people with DX7 can (in this script) see much further.
Share |
RollinHard
General Member
Since: Jun 7, 2006
Posts: 24
Last: Feb 22, 2010
[view latest posts]
Level 1
Category: CoD2 Scripting
Posted: Wednesday, Feb. 14, 2007 07:41 pm
thanks
i will try it and understand your point maybe its better only for sp..
it was just because my map looks fine at dx9 but the same settings looks much brighter in dx7..would like to have the same light and fog design as in dx9 but ok[ohwell]
Share |
KeiserSoze
General Member
Since: Feb 20, 2007
Posts: 11
Last: Aug 6, 2008
[view latest posts]
Level 1
Category: CoD2 Scripting
Posted: Tuesday, Feb. 20, 2007 03:36 pm
I was wondering is it possible with script, out of day map create night map?
(Using some of methods not mentioned in this thread)

The other thing are the coordinates of fog/smoke etc. how the coordinate system of a map works? Can someone explain that to me, please.

Tnx!

P.S. is there a link explaining script methods and their parameters (and meaning of the values) that could be used

edited on Feb. 20, 2007 10:39 am by KeiserSoze
Share |
COLMAC
General Member
Since: Sep 15, 2006
Posts: 914
Last: Jan 27, 2012
[view latest posts]
Level 7
Category: CoD2 Scripting
Posted: Tuesday, Feb. 20, 2007 04:14 pm
as far as the sun you can open your map with note pad at the top is your sun or world spawn if its world spawn you can replace the tex values from stock world spawn settings that will add sun, shadows you can change sun color values as well here and height and direction of your sun ,,there maybe an easyer way but thats how i did it fog is in gsc script
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD2 Scripting
Posted: Tuesday, Feb. 20, 2007 04:28 pm
No you can't.. the actual lighting is added during the compile process... the colour of the sunlight, sun direction (and thus shadows) will only affter models if I'm not mistaken.. which I've been known to be...

as for the fog... there is a CoD tutorial explaining the basics of the .gsc file called "GSC File Creation Options". it explains the parameters in the cullfog.
Share |
KeiserSoze
General Member
Since: Feb 20, 2007
Posts: 11
Last: Aug 6, 2008
[view latest posts]
Level 1
Category: CoD2 Scripting
Posted: Tuesday, Feb. 20, 2007 04:49 pm
thx, guys...

So in other words have to unzip iwd file, use Radiant and change some things :)
Compile a new map and that's it.

I'm interested, are the sky light, sky colors, clouds, also part of that map package or they are rendered by game engine?

Can I say in GSC file that certain map will use heavy rain clouds, or that's also part of Radiant map project?

Share |
Capt.Com
General Member
Since: Nov 14, 2004
Posts: 879
Last: Oct 6, 2007
[view latest posts]
Level 7
Category: CoD2 Scripting
Posted: Tuesday, Feb. 20, 2007 04:54 pm
KeiserSoze writes...
Quote:
thx, guys...

So in other words have to unzip iwd file, use Radiant and change some things :)
Compile a new map and that's it.


I'm interested, are the sky light, sky colors, clouds, also part of that map package or they are rendered by game engine?

Can I say in GSC file that certain map will use heavy rain clouds, or that's also part of Radiant map project?



Do you mean you want to edit maps that are not yours?
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD2 Scripting
Posted: Tuesday, Feb. 20, 2007 05:17 pm
1) No.. the .iwd files contain already compiled maps.. Radiant can't open those.

2) yes, yes, yes.

3) yes, in the .gsc file

As Capt.Com asked.. I hope you're not thinking about editing other people's maps or .gsc files. Don't do that without permission of the maker of the map.
Share |
KeiserSoze
General Member
Since: Feb 20, 2007
Posts: 11
Last: Aug 6, 2008
[view latest posts]
Level 1
Category: CoD2 Scripting
Posted: Tuesday, Feb. 20, 2007 05:20 pm
I'm not trying to publish or change somthing that's not mine work if you are refering to that... i'm just trying to learn something here...

I'm truely sorry if that also is not correct from me[ohwell]

But the thing is that I downloaded map that was not working initialy. Than after couple of hours I spent to fixing the problems with scripts i got it to work. Now I'm very interested into that scripting but first I would like to know what can i do with scripts.
By now i wasn't able to find good links that would explain all things I wish to now :(

Acctualy this portal is the one with most usable resources I have found.

And thank you guys for helping me one way or another.
Trying to figure out the whole proccess... maybe from the wrong side, but that's the side I understand the most...programing :)
Share |
Restricted Access Topic is Locked
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 Scripting

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

»