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

Members Online

»
0 Active | 5 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: sun glare
TheArmy
General Member
Since: Jun 24, 2006
Posts: 599
Last: Dec 25, 2009
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Wednesday, Nov. 8, 2006 09:05 pm
I am using the same skybox and values that the map matmata uses but there are two problems. The hieght of the sun is different in my map and there is no sun glare when you look at the sun. I heard that you could make a .sun file but i dont know how and i dont know if thats true. Please help.
Share |
fullaholes
General Member
Since: Oct 20, 2004
Posts: 118
Last: Nov 21, 2009
[view latest posts]
Level 4
Category: CoD2 Scripting
Posted: Wednesday, Nov. 8, 2006 09:25 pm
Create a new folder in the same place you keep all your other folders called "sun" (lower case no quotes) and inside the folder create a new .txt file called "your_map_name.txt" and paste this text into the .txt file...

r_sunsprite_shader "sun_silotown_assault"
r_sunsprite_size "28.8433"
r_sunflare_shader "sun_flare_toujane"
r_sunflare_min_size "237.8"
r_sunflare_min_angle "84.6081"
r_sunflare_max_size "1309.4"
r_sunflare_max_angle "5.77639"
r_sunflare_max_alpha "0.36121"
r_sunflare_fadein "0.2604"
r_sunflare_fadeout "0.2992"
r_sunblind_min_angle "33.9543"
r_sunblind_max_angle "9.9647"
r_sunblind_max_darken "0.20934"
r_sunblind_fadein "0.5"
r_sunblind_fadeout "1"
r_sunglare_min_angle "10.6101"
r_sunglare_max_angle "48.2526"
r_sunglare_max_lighten "0.21569"
r_sunglare_fadein "2.263"
r_sunglare_fadeout "3"
r_sun_fx_position "-41 212 0"

Finally rename the file to "your_map_name.sun" and recompress the folders with winzip or winrar to make a new .iwd file [casanova]

/fullaholes...
Share |
TheArmy
General Member
Since: Jun 24, 2006
Posts: 599
Last: Dec 25, 2009
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Wednesday, Nov. 8, 2006 11:02 pm
i made the new iwd file but it did not work. the sun file has the extension .sun but it is still a txt file (i dont know if thats ok). The folder sun is located in my maps/mp folder for my map. Maybe i have to change the hieght of the sun im not sure any suggestions?


edited on Nov. 8, 2006 06:03 pm by jgreen827
Share |
sharkeh
General Member
Since: Sep 24, 2006
Posts: 20
Last: Dec 1, 2006
[view latest posts]
Level 1
Category: CoD2 Scripting
Posted: Wednesday, Nov. 8, 2006 11:06 pm
For the sun and glare to show up you must have DX9 enabled.
Share |
fullaholes
General Member
Since: Oct 20, 2004
Posts: 118
Last: Nov 21, 2009
[view latest posts]
Level 4
Category: CoD2 Scripting
Posted: Wednesday, Nov. 8, 2006 11:30 pm
You have the "sun" folder in the wrong place. It doesn't need to be in your maps/mp folder, it needs to be outside of your maps folder like your mp or soundaliases folder. [drink]

/fullaholes...

EDIT: And like sharkeh has mentioned, you need DX9 turned on in-game to see the effect..



edited on Nov. 8, 2006 06:32 pm by fullaholes
Share |
TheArmy
General Member
Since: Jun 24, 2006
Posts: 599
Last: Dec 25, 2009
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Thursday, Nov. 9, 2006 12:01 am
how do you enable dx9
Share |
batistablr
Preferred PLUS Member
Since: Jul 13, 2005
Posts: 2066
Last: Dec 23, 2015
[view latest posts]
Level 8
Forum Moderator
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Thursday, Nov. 9, 2006 12:30 am
To enable DX9 in game you go to your graphics menu.





[exclamation]
Go ahead... You Play I Mod : MODSonline.com
Support Modsonline by becoming a PREFERRED MEMBER today
Have you heard the MODSonair Podcast?: www.modsonair.com
MODSonair is a weekly podcast bringing you the news from a modders perspective. Tune in every Sunday at 12pm EST to listen LIVE.
Share |
TheArmy
General Member
Since: Jun 24, 2006
Posts: 599
Last: Dec 25, 2009
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Thursday, Nov. 9, 2006 12:32 am
you mean the graphics menu in the game or on the computer?
Share |
={W}=DEVIL
General Member
Since: Aug 23, 2004
Posts: 1670
Last: Dec 14, 2007
[view latest posts]
Level 8
Category: CoD2 Scripting
Posted: Thursday, Nov. 9, 2006 12:38 am
if you are turning it on in the game, it would be in the game graphics menu. Go to options> graphics> render preference.


btw guys... its called a main folder. soundaliases, mp, maps, sun, textures, etc. are in ur main folder. Same place you put your iwd files. Its called the main folder because....its the main folder.
Share |
TheArmy
General Member
Since: Jun 24, 2006
Posts: 599
Last: Dec 25, 2009
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Thursday, Nov. 9, 2006 12:54 am
well heres the deal. im still not getting that lovely glare effect that i long for (lol). the sun folder is in the same drectory as my maps, mp, sounaliases, images, materials, and sound folder. These folders are located in main/mp_mirage folder. My maps name is mirage. I know that I can see the glare because when i play other maps like matmata i see it, but anyway DX9 is now enabled. It was before but that didnt stop me from seeing the glare in other maps. Now I can only think of two things that may be wrong.\

1. My sun file has the extension .sun but it is still a txt file unlike a gsc file for example which becomes a gsc file when you save it .gsc. So that could be one thing.

2. Another possibility is that im using the skybox that mp_matmata uses which i think is libyatown. In this skybox the sun setting and is by default behind a mountain. Perhaps to see a glare the sun hieght needs to be changed so that the sun is visable. If you think this may be the problem please tell me how to change the hieght. I know in the map matmata the sun hieght is higher even though I copied the keys and values directly from this site for matmata.

Please let me know if you have any ideas. Really want to get this to work thank you all so much for your help so far.
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

»