Page 1 of 1
how to make fog?
Posted: Wed Sep 01, 2004 6:28 pm
by sKsMudvayne
hey i was wondering any of you could tell me how to make fog in my map.....i tried checking in the tut but couldnt find it unless i missed it ....well anyways i was wondering how to make fog in my map.....and not to much fog just a little

Posted: Wed Sep 01, 2004 7:55 pm
by .:Ne0:.
I believe that the best way to make fog is to script it.
For example:
Code: Select all
main:
setcvar "g_scoreboardpic" "none"
level waitTill prespawn
exec global/DMprecache.scr
level.script = maps/dm/yourmap.scr
level.farplane = 3000.000000
$world farplane level.farplane
$world farplane_color (.7 .7 .7)
level waittill spawn
end
This is the actual piece that generates the fog:
Code: Select all
level.farplane = 3000.000000
$world farplane level.farplane
$world farplane_color (.7 .7 .7)
The density of the fog:
600 is very heavy fog while 8000 is allmost nothing
The color of the fog
for colors, in radiant, press "k"
I dont know much about scripting, but i think that this is the best way (and please, if my script is wrong then correct me!

)
Ne0
Posted: Wed Sep 01, 2004 8:48 pm
by m4rine
cant u set it in worldspawn in radiant?
farplane
blahblah
Posted: Wed Sep 01, 2004 9:20 pm
by FIVEBOY
The fog is called "farplane" and you set the distance and color in worldspawn.
1. Select one of your skybox brushes.
2. Hit key N.
3. In the "Key:" box type farplane.
4. In the "Value:" box type in the longest distance (in units) found on your map. Example: 8000.
5. Hit enter.
6. Now type farplane_color in the key box.
7. In the value box type three numbers for the color. Example: 0.33 0.33 0.33 .
8. Hit enter and key N again on the keyboard.
9. Save your map
Posted: Wed Sep 01, 2004 10:16 pm
by sKsMudvayne