Dynamically changing fog

Discussion in 'Mapping Questions & Discussion' started by Tacoman_, Oct 9, 2015.

  1. Tacoman_

    Tacoman_ L1: Registered

    Messages:
    31
    Positive Ratings:
    41
    I am aware of using a trigger_multiple to change the fog_controller that is active on a player. But for my purposes I am trying to change the fog when a point is capped (change it for all players).
    Is there a way of doing this without the having to trigger my whole map?
     
  2. Fr0Z3nR

    aa Fr0Z3nR Creator of blackholes & memes. Destroyer of forums

    Messages:
    6,391
    Positive Ratings:
    4,901
    I think you can just enable and disable fog controllers.

    EDIT: Clarification. You can enable and disable the fog controllers themselves, without !activator, and it'll effect everyone.
     
  3. Moonrat

    aa Moonrat The end of an era

    Messages:
    877
    Positive Ratings:
    502
    In [​IMG] mods/games using Source 2007 and Source 2013 you can create client-side fog changing functionality in a multiplayer game using trigger_multiple. Have at least 2 env_fog_controllers with different fog settings and one checked with the Master flag(which will be the default fog). Use OnStartTouch > !activator > SetFogController > [name of env_fog_controller entity]. The input will appear as red, but it still works. Use OnEndTouch() to change the fog back. Interpolate Time affects the transition of the fog color and fog distance parameters between controllers, however Far Z Clip Plane as well as Fog Max Density change instantaneously(which can appear jarring). Confirmed in Counter-Strike: Source.

    That is from the wiki. I read it back in June, and always wanted to make a map with dynamic fog. I still haven't done it, but I would love to at some point. Like, fog that changes depending if you are inside or outside. I never got to it though.....
     
  4. Tacoman_

    Tacoman_ L1: Registered

    Messages:
    31
    Positive Ratings:
    41
    I am trying to do that, haven't had any luck; but knowing me its probably an issue on my side instead of a source engine issue.

    You didn't read my original post
     
  5. Tacoman_

    Tacoman_ L1: Registered

    Messages:
    31
    Positive Ratings:
    41
    Update: I figure out that I dont need to have 2 seperate fog controllers. I can just change the max distance on 1 controller, only issue is that changes really fast. Going to keep playing around with the fog though
     
  6. ics

    aa ics http://ics-base.net

    Messages:
    654
    Positive Ratings:
    410