Brightness

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Brightness

Post 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.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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).
Image
w0lv3
Lance Corporal
Posts: 23
Joined: Fri Jun 27, 2003 12:53 pm
Location: Australia

Post by w0lv3 »

it would be better programming if making it brighter didnt make dark areas visible
Post Reply