Dynamically changing fog

Tacoman_

L1: Registered
Nov 19, 2014
31
53
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?
 

Moonrat

nothing left
aa
Jul 30, 2014
932
585
In 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.....
 

Tacoman_

L1: Registered
Nov 19, 2014
31
53
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.

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.

-snip-
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.....

You didn't read my original post
 

Tacoman_

L1: Registered
Nov 19, 2014
31
53
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
 

ics

http://ics-base.net
aa
Jun 17, 2010
841
543