sinyx Posted April 1, 2007 I was wondering on how you would do it? I'm gonna have a graveyard and I want it to have mist. Any thoughts on how to do this? 0 Share this post Link to post
Vader Posted April 1, 2007 Only way I know of how to do it is in (G)Zdoom via ACS! example:script 1 open { sector_setfade(sectortag, r, g, b); } The r, g, b values can be a number from 0-255! 0 Share this post Link to post
sinyx Posted April 1, 2007 Ok but lets say this guy I know who maps, not even a guy I know its a guy one of my friends knows, has no clue about ACS or any form of scripting. How would I explain this to a person who has no idea of how to work the script? I mean cuz this guy is a total noob. 0 Share this post Link to post
Vader Posted April 1, 2007 It's quite simple, although I only can explain it for DoomBuilder users. Note that I assume 'this guy you know' is using Zdoom, so he would have to make sure to choose the zdoom(doom in hexen) configuration when starting the map (DB asks you about this when you make a new map or open an existing one!). After building the graveyard area like you mentioned in the first post, he'd have to give all the sectors he would like to have the fog in the same sector tag (1 for instance). Now he's ready to make his script; choose "scripts-> edit BEHAVIOR lump" in the menu on top of the screen. If there aren't any scripts already a window opens where you can click "make script"... do that! You get a blank screen where you now can put your scripts in! Make sure to write the following line on top of everything else:#include "zcommon.acs" Now the fog-script can be made like this:#include "zcommon.acs" script 1 open { sector_setfade(1, 128, 128, 128); } "script 1" really explains itself I think, the "open" after that means that the script is executed once the level loads up. The sector_setfade function in this example sets a grey (same values for red, green and blue mix to grey/white) fog in all sectors tagged with '1' Now the only thing left to do is compiling the script, for that simply click the compile button in the upper right of the script editing window. That's it! For more detailed information about ACS scripting you can also look into the zdoom Wiki (Documentation) to learn a few things! 0 Share this post Link to post
sinyx Posted April 1, 2007 still nothing. I followed the code to the letter and it compiled but it wouldn't make fog. Any thoughts? 0 Share this post Link to post
farhaven Posted April 1, 2007 could you post the wad for better analysis? that would help a lot. 0 Share this post Link to post
Dutch Doomer Posted April 1, 2007 http://tango.dmclub.org/dd/files/fogdemo.zip how hard is it to make fog, study this for an bit. http://www.zdoom.org/zdkb/zdoom3.html you might find this usefull as well so you could make any color fog you want. http://www.zdoom.org/zdkb/zdoom13.html tutorial about making fog. 0 Share this post Link to post
sinyx Posted April 1, 2007 promise not to laugh? I had the sectors set too bright so the fog had nothing to work on. >.< 0 Share this post Link to post
Csonicgo Posted April 2, 2007 sinyx said:I was wondering on how you would do it? I'm gonna have a graveyard and I want it to have mist. Any thoughts on how to do this? This is an old effect that can be done in zdoom 1.22 and up very easily. you can change the colours of the fog with that, OR, you can manually edit the Pallete, which isn't that hard if you use The right program for it. 0 Share this post Link to post
fraggle Posted April 2, 2007 You can do this with Boom, using custom colormaps and translucent linedefs. 0 Share this post Link to post
Csonicgo Posted April 2, 2007 Oh right! Boom does it too! That'd be the best choice, imo. 0 Share this post Link to post
Mordeth Posted April 2, 2007 Csonicgo said: Oh right! Boom does it too! That'd be the best choice, imo. Except that fog-affected sectors look normal when viewed from non-fog sectors, and everything looks foggy when viewed from inside a fog-affected sector. With ZDoom you can have fog for certain sectors that looks correct wherever the player is. 0 Share this post Link to post
kristus Posted April 2, 2007 Looks like I were beaten to the punch. But I remember SoM exploiting something in the Boom colormap code to make something with fog. I remember that it looked very good when I tried it out in Legacy. 0 Share this post Link to post
Mordeth Posted April 3, 2007 kristus said: But I remember SoM exploiting something in the Boom colormap code to make something with fog. I remember that it looked very good when I tried it out in Legacy. Wasn't that a custom COLORMAP that changes the default "fade" to someting more foggy? There's a utility on the FTP site called TED that can do that for you. Also: see this thread. 0 Share this post Link to post
Graf Zahl Posted April 3, 2007 Yes, there is. But it has one problem: The fake contrast on vertical and horizontal walls and fullbright sprites makes it look quite ugly. 0 Share this post Link to post