Fog Maker

Add Another Mod

 

Mod File number (downloads) -

MD5

Type -

Map

Server / Client -

Server Side

Mod Sub Cat -

Weather

Mod Version -

Total Views -

Mod screen shot -

Fog Maker

Mod PK3

PK3 MD5

Mod External Info -

Game Type -

MOHAA

 

 

Mod Creator -

Gotcha

 

 

 

 

Mod Status -

Fully working no errors

 

Team -

 

Theme -

Rating

Extra Credits -

 

Iinstall / info

Gotcha's Fog Maker script

To use just drop it in your main and exec in your map script or dmprecache

"exec global/FogMaker.scr"

Explanation:
I made this script so I can just sit back and watch it roll until I find the perfect fog for the level I'm working on, or set custom fog on the go until I get to something I wanted. It automatically cycles through infinite colors, one every 10 seconds. It displays the settings of the fog on the hud so you can easily set it in your script and see what you're looking at. Also added the ability to log it via cvar so it'll just pop into your logfile so you can copy and paste it into your map script, or fog/night script. It prints as seen below.

With RFS loop | Without RFS loop
//------------------------------------- | //-------------------------------------
//--------Fog Settings-------------- | //--------Fog Settings--------------
$world farplane_color ( 1 1 1 ) | $world farplane_color ( 1 1 1 )
$world farplane 3500 | $world farplane 3500
while(1) { | //r_fastsky was OFF, no need for stufftext loop.
local.player = parm.other | //---------End Fog Settings--------
if(local.player != NIL && local.player != NULL) { | //-------------------------------------
local.player stufftext "r_fastsky 1" |
wait 3 |
} |
waitframe |
} |
//---------End Fog Settings-------- |
//------------------------------------- |
|

Cvars: This script also has other cvars to tweak your fog exactly as you want it, and displays your custom settings on the hud as well as print them.

1.) fogdist "xxxxx" - This sets the farplane, default is set at 3500

2.) rfs "x" - 0 or 1, off by default, this turns r_fastsky on and off

3.) fog "x x x" - This is used to set a custom color, if you see a color you like you can see the numbers on the hud and tweak the RGB values via entering them in here and making your changes, you must set this cvar back to "" in order to resume the auto changing fog you also must use quotations when you enter your fog color.

4.) log "x" - Off by default, just type log 1 in console, this will iprintln the current settings so you can see them in the log if you wish.

5.) stop "x" - 0 or 1, off by default, this will stop the fog when it's auto scrolling, so if you find a color you like you can stop on it and walk around.

6.) night "x" - 0 or 1, off by default, added this last second as an easier way to set color to 0 0 0 for night

Video