Toggle Day/Night

Toggle Day/Night b1?

ISPuddy

L2: Junior Member
Jul 31, 2015
94
145
Day/Night Relay - makes daynight cycle..?

How this w0rk?



change fog
change tonemap
change color correction (2fort and ghost fort)
toggle zhe light_environment
toggle night and moon brush

The Files:

p_DayNight_TurnOFF_LIGHTENV.zip
- pprefab_daynight1.vmf
- test_daynight1.bsp

The Good:
  • NO NEED TO PLACE OVER 9000 LIGHTS

The BAD:
  • prop_static shadows will cast night light only

  • If make big map with hyper detailin' your vvis compile is goin' to die
 

Berry

resident homo
aa
Dec 27, 2012
1,056
1,898
I'm judging by the name of the first file that you haven't done it like this, but light_environment will take inputs that regular light entities would; so you can use TurnOn and TurnOff (they may be called something else if my memory fails me). This means you can have a day light_env and a night light_env, turn off the day one and turn on the night one (or vice versa).
 

Tuaam

L6: Sharp Member
Jun 26, 2015
376
248
I'm judging by the name of the first file that you haven't done it like this, but light_environment will take inputs that regular light entities would; so you can use TurnOn and TurnOff (they may be called something else if my memory fails me). This means you can have a day light_env and a night light_env, turn off the day one and turn on the night one (or vice versa).
Maybe have a collection of light_enviorments for various times of day, and then have a moving sun / env_sprite in the skybox that moves based off of a script.
 

BigfootBeto

Party Time 2.0!
aa
Jun 8, 2016
496
847

ISPuddy

L2: Junior Member
Jul 31, 2015
94
145
I'm judging by the name of the first file that you haven't done it like this, but light_environment will take inputs that regular light entities would; so you can use TurnOn and TurnOff (they may be called something else if my memory fails me). This means you can have a day light_env and a night light_env, turn off the day one and turn on the night one (or vice versa).
you can't create 2+ light_enviorments :engiemeh:
 
Last edited:

Berry

resident homo
aa
Dec 27, 2012
1,056
1,898
you can't create 2+ light_enviorments :engiemeh:

You definitely can because I have done previously, you can just set all but one to start disabled and it'll look like there's just one. It might need some FGD modifications though
 

TitanT

L1: Registered
Feb 22, 2016
34
13
I will try out if there is still a way to do that.

It worked for me ones but when I started the map again it totally glitched out for some reason. I had to switch the names of the day and night light for it to work again. (I really don't know how that happend)