• Manipulation Fog Distance?
    3 replies, posted
I'm completely stuck on how to do this, I've checked all of the fog output descriptions on the Valve Dev wiki and I cannot find any tutorials. I need to change the fog distance periodically in my map, I can do this part, but I can't figure out how transition is smoothly. The end distance on the fog is going to change from 8000 to 3000 every hour, so during this time, I want the distance to change smoothly, without the player noticing. Any help or possible solutions are welcome.
Lots and lots of timed outputs from your control entity with small incremental changes. It's not going to be smooth, but it will work.
[code][B]Logic_timer[/B] [I]Keyvalues-[/I] Refire Interval: 1 [I]Outputs-[/I] OnTimer | fogDistanceController | Test [/code] [code][B]Logic_branch[/B] [I]Keyvalues-[/I] Name: fogDistanceController Initial value: 1 [I]Outputs-[/I] OnTrue | fogDistanceCounter | Add | 3 OnFalse | fogDistanceCounter | Subtract | 3 [/code] [code][B]Math_counter[/B] [I]Keyvalues-[/I] Name: fogDistanceCounter Initial Value: 3000 Minimum Legal Value: 3000 Maximum Legal Value: 8400 [I]Outputs-[/I] OnHitMax | fogDistanceController | Toggle OnHitMin | fogDistanceController | Toggle OutValue | <env_fog_controller> | SetEndDist [/code]
Terrenteller is the Jezus of Source mapping.
Sorry, you need to Log In to post a reply to this thread.