Page 1 of 1
More Realistic Stormy Weather
Posted: Sat Jun 07, 2003 3:48 pm
by Reish Vedaur
I was wondering something... when I have my map raining and what-not, the lightning that shows up is blue. Why is that, and how can I get it to be either white or very light-pink? (about like this; I know that's faint, but it's there)
Posted: Sun Jun 08, 2003 8:50 am
by mohaa_rox
i think u have to edit the weather.scr and change the color of the lightning.
Posted: Sun Jun 08, 2003 2:17 pm
by jv_map
Or it may just be your monitor...
Posted: Sun Jun 08, 2003 4:13 pm
by Reish Vedaur
It's definitely not my monitor; the color is correct in all the other maps included with MOHAA/SH.
Posted: Sun Jun 08, 2003 5:21 pm
by Angex
I had the same problem, and made a post about this a while back. Un-fortunatly I never solved it !!!
As far as I'm aware, although it looks blue on your computer it'll be fine on everyone else's. I noted this when playing a user-made map, I sore the lighting as blue, but other people had no trouble.
Posted: Sun Jun 08, 2003 9:45 pm
by Reish Vedaur
That makes no sense... only certain people playing user-made maps have the problem, but under no other circumstances?
Posted: Mon Jun 09, 2003 10:30 am
by Angex
Reish Vedaur wrote:That makes no sense...
You don't have to tell me that !
Posted: Mon Jun 09, 2003 1:21 pm
by panTera
just a wild guess;
could it be that the lightning colour defaults to blue? Are you useing farplane fog and if so what values did you use?
this part comes from the m5l1a.scr:
level.farplane = 3500
level.farplanecolor = (0.333 0.333 0.359)
exec global/weather.scr
Posted: Mon Jun 09, 2003 1:55 pm
by Reish Vedaur
Hrm... I'm not using farplane... Are you suggesting I try it? Cuz it'd be fairly hard, considering the size of my maps (one of them is just a mid-sized muddy field with walls around it).
Posted: Mon Jun 09, 2003 9:58 pm
by bdbodger
This is the part of the weather.scr that does the flash
flash:
setcvar "r_fastsky" "1"
$world farplane_color (0.9 0.9 0.9)
for (local.i=1;local.i<level.weatherFs+1;local.i++)
level.weatherF[local.i] show
end
unflash:
setcvar "r_fastsky" "0"
$world farplane_color level.farplane_color
for (local.i=1;local.i<level.weatherFs+1;local.i++)
level.weatherF[local.i] hide
end
it changes farplane_color to (0.9 0.9 0.9) then back could it be that if you have no farplane_color it causes a problem? ( 1 1 1 ) is white so (.9 .9 .9 ) must be almost white maybe play around with different farplane_color values if it is a rainy day try a gray farplane_color like said above
level.farplane_color = (0.333 0.333 0.359)
Posted: Mon Jun 09, 2003 10:26 pm
by Reish Vedaur
Alright, most excellent.
Now one last, quick, fairly silly question: Where would I put the modified weather.scr in my .pk3?
Posted: Tue Jun 10, 2003 11:21 am
by bdbodger
don't modify the weather.scr just set a farplane_color in your script . As a matter of fact if you don't set a farplane_color then farplane_color is nil or 0 0 0 so you say the sky is blue could it be for the couple of sec between the flash and the resetting of the farplane_color what you are seeing is black because the farplane_color was not set in your map script ?
$world farplane_color level.farplane_color
if level.farplane_color is not set then it is 0 or black
Posted: Tue Jun 10, 2003 4:38 pm
by Reish Vedaur
...
Oh...
heh.. duh... <hits himself>
Okay, to test your theory I got on my highest FPS map, "Big Plain Field," and watched the sky very, very closely. No black. Just blue. About like this, as if that matters.
At any rate, then I changed the farplane_color to .333 .333 .359 (it wasn't set beforehand, obviously), and the lightning still looked the same.
Then I used farplane_color / 1.0 1.0 1.0 and still nothing changed.
.. I realllllllllly hope I'm not doing something ridiculously stupid.
Although I did just realize, changing the farplane_color for the map shouldn't do anything since the weather.scr replaces it, not adds to it.