Open fnkcj opened 1 year ago
I used a different method to implement the DOF, using SetDepthOfField.
With this method, the DOF can simply be disabled clientside with /r_dof_enable 0
because it doesn't use the /r_dof_tweak 1
-command.
Server-side switch for this is not required, but I suppose it would be nice to have as option in the graphics menu, just like Fog and Effects.
Blur however is still not adjustable client-side.
DOF and blur dvars can be used in a map to enhance visuals, but they are quite fps heavy. They are also cheat-protected, meaning clients can't toggle them off by just changing the dvar on a server, unless the map has a script to enable that. Having a toggle on the server-side would make more sense to me. Like having a simple toggle on the graphics menu of the mod. Also a command to go with it.
!dof on/off
whereon
lets map to apply whatever value and off sets:r_dof_enable 0
!blur on/off
whereon
lets map to apply whatever value and off sets:r_blur 0
By default both values are set to on.