Brightness
Moderator: Moderators
Brightness
Is there a command you can call from the script, or even a server command, to limit a user's brightness? I want to do this so they dont up their brightness superhigh and cheat in this dark map im making.
Yeah just check the r_gamma value.
Something like this:
I don't think it's a good idea though to force a user's gamma options. Certain monitors need a high gamma to make things visible, especially when under poor light conditions (i.e. sun shining in the room).
Something like this:
Code: Select all
gammathread:
while(1)
{
local.gamma = float(getcvar(r_gamma))
if(local.gamma > 2)
setcvar r_gamma 2.0
wait 1
}
end
