Weather

I want to learn how to do some automated weather for a map. Things such as wind control, lighting control (for clouds and daylight), fog control (for clouds again), rain control, and lightning.

I did that in a map of mine.

http://www.facepunch.com/showthread.php?t=740890&highlight=gm_medieval_warfare

Feel free to decompile it.

It has a rain cycle, with thunder and lightning

Good luck!. When it starts to rain, the fog density increases. I am too lazy to write what entities i used and their inputs/outputs.