ValveSoftware / halflife

Half-Life 1 engine based games
Other
3.73k stars 628 forks source link

[GoldSrc] sensitivity cvar can crash the game #2776

Open Rainnegan opened 5 years ago

Rainnegan commented 5 years ago

If you set sensitivity to a high value "100000000000000000000000000000000000000" (from this value and up, the game will crash). (Some admins are abusing it to close the game with players with cl_filterstuffcmds "0").

The solution maybe clamp the value to a max of "1000" maybe.

afwn90cj93201nixr2e1re commented 5 years ago

Lol. @mikela-valve add limitations.

ghost commented 5 years ago

max "sensitivity" "20" min "sensitivity" "0.200000"

perforatorRU commented 5 years ago

If you set the sensitivity less than 0.2, then the sensitivity is buggy

ghost commented 5 years ago

Example: min Screenshot_1 max Screenshot_2 0.2 = 0.200000 Screenshot_3

perforatorRU commented 5 years ago

Why is the minimum value of 0.2? And if I use DPI more than 2000, what should I do?