Page 1 of 2

daytime to nighttime

Posted: Fri Apr 04, 2008 9:25 pm
by Tazz
hey guiys just wondering how i can remove or darken some light to make DV a nighttime map instead of daylight.....i tried the $world_farplane color and the farplane but all i got was more fog and diff colored fog never darkened for me.....maybe is it farplane_light or something?....ive looked thru the ambient and some other map files couldnt find anythign though but i saw it on a server a while back....thx in advance



laterz


Tazz

Posted: Fri Apr 04, 2008 11:33 pm
by Rookie One.pl

Code: Select all

$player stufftext "set r_fastsky 1"
And then set your farplane. Mind you that you have to do this stuffexting periodically as new players that join the server after it's applied will see the sky as normal.

Posted: Sat Apr 05, 2008 5:32 pm
by Tazz
ok ill try this but i thought they would be a way to make it permanent until the script was changed

Posted: Sat Apr 05, 2008 10:04 pm
by Rookie One.pl
Just put it in a loop.

Posted: Sat Apr 05, 2008 10:45 pm
by neillomax
thought it was $world farplane 10000

or $worldfarplane 10000

and $worldfarplane color 0 0 0

or

$world farplanecolor 0 0 0

something along those lines

Posted: Sat Apr 05, 2008 10:55 pm
by Rookie One.pl
Of course you need to set the farplane, but without stufftexting r_fastsky 1 to all clients it will just create fog, as opposed to clearing the sky with a color that we want.

Posted: Sun Apr 06, 2008 12:12 am
by neillomax
How are you going to get fog with a 10,000 farplane and color black ( 0 0 0 ) ?

Posted: Sun Apr 06, 2008 9:08 am
by Rookie One.pl
You'll get black fog at 10,000. Really. The sky will be drawn just normal.

Try it yourself.

Posted: Mon Apr 07, 2008 2:06 am
by Tazz
i tried all the ways yall were sayign and with a 10,000 farplane i got nothing but a little it darker looking map...tinted not darker but when i change the farplane to like 700 then made the 0 0 0 color i got the desired effect...although the sky is still light it is heavily shaded and u cant see but about 45ft in front of u which it looks like night so thanks guys....also to let u know it doesnt matter if u stufftext or not i get the same result with or without the stufftext...nothing different


Code: Select all

$player stufftext "set r_fastsky 1"
	$world farplane 700
	$world farplane_color (0 0 0)

Posted: Mon Apr 07, 2008 2:26 pm
by Rookie One.pl
Get a copy of my Survival Horror mod, it's got black sky and a thunderstorm and it's been proven to work.

Try putting r_fastsky 1 in your console and see if it works.

Posted: Tue Apr 08, 2008 12:04 am
by Tazz
ok i just figured this out playing with the setcvar cmd....this works and i didnt have to type it in console when i entered either to see it....heres my code for what i hope to be the permanent fix

Code: Select all

setcvar "r_fastsky" "1"
	$world farplane 3500
	$world farplane_color (0 0 0)

check this out and see if it works for ya too.....thanx again for the help with this

Posted: Tue Apr 08, 2008 2:36 pm
by Rookie One.pl
This will only work for you and only if you host the game locally.

You need to stufftext set r_fastsky 1 to all clients that join the game, it really is the only way to make it work. The easiest way to achieve this effect is to have an infinite loop that stuffs the text to all clients at an interval of, say, 30 seconds. So the proper way is:

Code: Select all

thread nightsky

nightsky:
   $world farplane 3500
   $world farplane_color (0 0 0)
   while(1) {
      $player stufftext "set r_fastsky 1"
      wait 30
   }
end

Posted: Sun May 18, 2008 1:22 am
by Tazz
we are hosting this map now and its working fine for everyone without stufftexting anything.....i dont know how if u say it wont work but its running great...thanx again guys

Posted: Sun May 18, 2008 3:18 am
by Gold
not sure bout mohaa but i would guess it would be the same as spearhead.When setting
setcvar "r_fastsky" "1" in one map ,when ya get to the next map if its a daytime map it makes the sky look weird.I guess its due to the fact it puts it in ya unamed soldier.cfg...and it doesnt clear unless ya set "r_fastsky" "0" before going to next map or quit the game.

Posted: Sun May 18, 2008 11:51 am
by Rookie One.pl
The setcvar script command sets the cvar on the server. The server does not make any use of r_* cvars at all, since they're associated with the renderer. Therefore using it to set r_fastsky to 1 is totally ineffective on dedicated servers, and on locally hosted ones only the player who's hosting will get the effect.

There's just no way it could work without stufftexting to all clients. If it works for you, you probably have r_fastsky set to 1 in your config.