Isolated Fog

Avatar
sofaking42
12 Posts
Posted Oct 17, 2011
I know about creating fog for an entire map with the fog instance, but how would I go about doing it for just one room? I'm trying to have a bottomless pit for just one room and I don't want the fog effect for the entire map.

Thanks

Advertisement
Registered users don’t see ads! Register now!
Avatar
spongylover123
944 Posts
Posted Oct 17, 2011
Replied 1 hour later
Env_fogcontroller or something like that
Avatar
Skotty
671 Posts
Posted Oct 18, 2011
Replied 13 hours later

spongylover123 wrote:
Env_fogcontroller or something like that

You are right.

You can give an output to the player to give him a special fog controller.
For example:

OnTrigger
!activator
setfogcontroller
fog1

The last line is the name of the fog controller you want to give the player.

If you watch the instance coop\coop_lighting_ents.vmf you can find also 2 more !players.
!player -> normal player, singleplayer.
!player_orange -> orange player
!player_blue -> blue player
So you could also give the blue player another fog than the orange player.
For example:

OnTrigger
!player_orange
setfogcontroller
fog_orange

If this gets triggered, the orange player will have another fog than the blue player.

Avatar
Pitkakorvaa
200 Posts
Posted Oct 18, 2011
Replied 6 hours later
If you meant this. With instance

Blue fog in Room A
Grey fog(or none) in Room B

Just create triggers between chambers and set outputs wich activates other colored fog.

And if you have huge room, you can't put fog for one side, it must be whole level at once, but it can be disabled, enabled or changed.

Avatar
synthemesc
13 Posts
Posted Oct 19, 2011
Replied 22 hours later
Does func_fogvolume work in portal 2? It was quite handly when mapping for the l4d series.
Advertisement
Registered users don’t see ads! Register now!
Avatar
sofaking42
12 Posts
Posted Oct 21, 2011
Replied 2 days later
Thanks for all the help!