Page 1 of 1
Brightness
Posted: Sat Jun 28, 2003 4:28 am
by Alcoholic
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.
Posted: Sat Jun 28, 2003 6:26 am
by jv_map
Yeah just check the r_gamma value.
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
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).
Posted: Sat Jun 28, 2003 10:30 am
by w0lv3
it would be better programming if making it brighter didnt make dark areas visible