UGX-Mods

Call of Duty 5: World at War => Help Desk => Mapping => Topic started by: DeletedUser on November 07, 2014, 08:57:45 pm

Title: Implementing Fog?
Post by: DeletedUser on November 07, 2014, 08:57:45 pm
How would I go about implementing fog? I know there is a ton of tutorials, I just don't really understand them. I got the "easy fx placer" working but there is no "fog" fx in the available fx's. Is there a download to add to the fx's or do I have to do something else entirely? Thanks in advance.
Title: Re: Implementing Fog?
Post by: TheScotchGuy on November 08, 2014, 08:32:30 am
There is a function you can use

This goes under zombiemode::main() in mapname.gsc

Code Snippet
Plaintext
setVolFog(200, 1500, 350, 100, 0.4, 0.425, 0.44, 0.0);

setVolFog(<startDist>, <halfwayDist>, <halfwayHeight>, <baseHeight>, <red>, <green>, <blue>, <transition time>)
^^ this is how u use this function to change the color, where the fog starts and ends.