Toggle Day/Night b1?

makes daynight cycle..?

  1. ISPuddy

    ISPuddy L2: Junior Member

    Messages:
    91
    Positive Ratings:
    90
    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
     
  2. Berry

    aa Berry if you read this you're a nerd

    Messages:
    999
    Positive Ratings:
    1,508
    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).
     
  3. Tuaam

    Tuaam L6: Sharp Member

    Messages:
    331
    Positive Ratings:
    190
    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.
     
  4. BigfootBeto

    aa BigfootBeto Too obsessed with perfection

    Messages:
    378
    Positive Ratings:
    574
  5. ISPuddy

    ISPuddy L2: Junior Member

    Messages:
    91
    Positive Ratings:
    90
    you can't create 2+ light_enviorments :engiemeh:
     
    • Respectfully Disagree Respectfully Disagree x 1
    Last edited: Dec 15, 2016
  6. Tim1402

    Tim1402 L1: Registered

    Messages:
    31
    Positive Ratings:
    10
    I will try out if there is still a way to do that.
     
  7. Berry

    aa Berry if you read this you're a nerd

    Messages:
    999
    Positive Ratings:
    1,508
    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
     
    • Agree Agree x 3
  8. Tim1402

    Tim1402 L1: Registered

    Messages:
    31
    Positive Ratings:
    10
    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)