Page 1 of 1

I want no fog in the buildings...

Posted: Mon Jul 22, 2002 8:22 pm
by wacko
I found a tutorial about adding fog over at Nemesis', but now the indoor areas look as if someone is burnig nappies...
Is there a tut or s.o who explains how I can make fog outside and leave the inside areas without?!

Posted: Tue Jul 23, 2002 6:37 am
by NathanielPT
Hey Wacko! Since you've been helpin' me so much I though maybe I should help you. What do you think? Okay, I've done this before. I have a level where the fog comes on when you enter the ventalation shafts and dissapears when you leave. I had to place two triggers where ever you entered and left the vents, so in your case all your doors leading from inside a house to the outside. Give the trigger on the outside of the house a key/value pair of setthread/fogon and the inside trigger setthread/fogoff. Now in your script file you will need two thread, fogon and fogoff. Fogon sets the farplan/fog distance to whatever you want it to be when you are outside. Fogoff sets the distance really high, so that you never see it. Now if you want the transition to not be so sudden you need to ramp the fog up and down. Open up "m2l2c.scr" it is one of the original level's script files. Scroll down to the very bottem, and there will be a thread called fogramp you can copy and paste that into your script file and use that to ramp the fog up and down. Although may want to play with it a little to get the speed right and everything. I hope this helps.

Posted: Tue Jul 23, 2002 10:28 pm
by wacko
This method works perfectly just the way I was afraid of:
Entering a building (i.e. walking through the two triggers) switches off the fog and leaving the building switches it on again!
Unfortunately my buildings have several windows! You know what's coming next:
When I look into the building, it is full of fog (fog is not switched off, I'm outside)
When I look out of the building, there's no fog (fog is not switched on, I'm still inside).
I would need something like the func_rain. Fog outside, No fog inside, no matter where the player is...
Any ideas?

fog

Posted: Wed Jul 24, 2002 2:36 am
by tltrude
If it's not a singleplayer map, everyone outside will see the fog vanish too!!

I wonder if an area brush would fix it? I have no Idea how to use one though. I have seen "#area" being assigned to AI, but there is no area brush to go with it.

I thought there was a fog clip brush, but I can't find it now.

Posted: Wed Jul 24, 2002 10:07 am
by wacko
...which might result in some bad jokes about your enemies in deathmatch: "Ah, the sun is coming out, XY must have entered a house..."

This makes the trigger-way useless for DM-maps :-((

Posted: Wed Jul 24, 2002 12:48 pm
by NathanielPT
Hmm, yes I can see that the trigger way has it's problem's. Unfortunately that is all I can think of. The only other game I've mapped for was "Elite Force" and it used brushes to contain fog. Who knows what the answere is, its got me stumped. If I find out anything I be sure to post it here.