I would like to modify the fog on gm_atomic so that everything becomes obstructed by fog at 680 units away from the camera. Entities beyond 1024 units should not exist on the client, since they are not visible.
This way, when the player ventures out into the desert, and can’t see any other players, the director will spawn NPC zombies just outside the players view and they will converge on the player. Since the player will always be alone when this zombie spawn happens, no other players need to know about it, and therefore the zombies should not appear in other peoples’ PVS.
Should I use gm_cvar2 and gm_pvs to set a fog override and then manually remove zombies from the PVS if they are not within the players’ view?
Can I modify the fog values in env_fog_controller and sky_camera with EntityKeyValue and then will the PVS stuff be setup automatically?
Is there another way? I have never been able to get the fog modification stuff working that was included from the gm_renderx module. If someone could provide an example, that would also be appreciated.
If possible, I also need to be able to change the fog values during the map, on the fly. In some areas of the map, such as inside, I don’t want fog. Inside the base, the fog should start ‘just outside’, and beyond the base it should be very up close.