ValveSoftware / halflife

Half-Life 1 engine based games
Other
3.67k stars 619 forks source link

[Settings suggestion] Mouse acceleration #87

Open MPNumB opened 11 years ago

MPNumB commented 11 years ago

It would be really nice if mouse acceleration would be in options menu.

I found a way to enable it the way it is in windows XP, it is:

m_customaccel "1"
m_customaccel_exponent "1"
m_customaccel_max "0"
m_customaccel_scale "0.02"
// lower your sensitivity by 2 (if it was 3.0, set it to 1.5)

After last update, the new settings for mouse acceleration for windows XP without m_rawinput are (closest thing what I found):

m_rawinput "0"
m_customaccel "1"
m_customaccel_exponent "1"
m_customaccel_max "0"
m_customaccel_scale "0.015"
// lower your sensitivity by 2 (if it was 3.0, set it to 1.5)

But with raw input the closes thing what I managed to get is:

m_rawinput "1"
m_customaccel "1"
m_customaccel_exponent "1.05"
m_customaccel_max "0"
m_customaccel_scale "0.015"
// check your windows sensitivity, and imagine it going from -400% (lowest) to -100% or 100% (middle) to 400% (highest),
// now use this formula to change your sensitivity:
// if your value is -100% or 100%, use this:
//new_sensetivity = (sensitivity / 2)
// if you'r % value is negative, use this:
//new_sensitivity = (sensitivity / 2) / (percents / -100)
// if it's above 100%, use this:
//new_sensitivity = (sensitivity / 2) * (percents / 100)

or

m_rawinput "1"
m_customaccel "1"
m_customaccel_exponent "1.05"
m_customaccel_max "0"
m_customaccel_scale "0.02"
// check your windows sensitivity, and imagine it going from -400% (lowest) to -100% or 100% (middle) to 400% (highest),
// now use this formula to change your sensitivity:
// if your value is -100% or 100%, use this:
//new_sensetivity = (sensitivity / 2)
// if you'r % value is negative, use this:
//new_sensitivity = (sensitivity / 2) / (percents / -100)
// if it's above 100%, use this:
//new_sensitivity = (sensitivity / 2) * (percents / 100)

But something still doesn't feel quite right... I have no idea now what is more accurate..

AndreiRomania commented 11 years ago

noforcemaccel – reverts to desktop mouse acceleration settings. For the most part (when it comes to gaming and precision accuracy) mouse acceleration is a fickle feature. The noforcemaccel command will make sure Half-Life does not try and manage mouse accel when it is disabled in your windows options. When to use? When mouse acceleration is disabled on your desktop and you want the same results for your in game experience.

noforcemparms – reverts to desktop mouse button settings. What does that mean? Usually when you start up Half-Life (or in this case Counter-Strike) your mouse configuration will switch to application mode, allowing the assignment of keys already assigned to your desktop (like mouse3). This variable turns that feature OFF. There is really no benefit to this command, and in actuality it is quite buggy at times. When to use? When you are experiencing difficulty with button assignments. A part from troubleshooting this command has no practical use, despite popular belief.

noforcemspd – uses desktop mouse speed settings. Noforcemspd forces Half-life to use whatever speed settings you have applied to your desktop via mouse properties. Whatever the value, Half-Life will use it as guidance. When to use? When you want your out of game speed to set the bar for your in game sensitivity. Think of sensitivity as a speed (de)amplifier.

AndreiRomania commented 11 years ago

and it is all "0" not "1"

MPNumB commented 11 years ago

I was talking for people who want to use mouse acceleration. Despite popular belief, there are alot of people who are using mouse acceleration.

I personally have been using XP mouse acceleration it since 2004. And one of the reasons why I don't switch to windows 7, is cause it has a different mouse acceleration ratio, when compared to XP.

That's why I am recommending this option, cause by default mouse acceleration is OFF, and there will be people who will want it back, but will not be able to do anything without knowing the commands.

vjatseslav commented 11 years ago

m_customaccel 1 m_customaccel_exponent ≥ 40 causes game crash when mouse is touched.

alfred-valve commented 11 years ago

Setting m_customaccel_exponent to 40 is a bad idea, it is the exponent applied to the mouse movement, you will very quickly saturate the set of numbers a float can represent. What you want is a value between 0.1 and 3 I suspect.

alfred-valve commented 11 years ago

Did you mean to set m_customaccel_scale to 40 instead perhaps?

vjatseslav commented 11 years ago

No, I know that setting m_customaccel_exponent to 40 is a bad idea but still it can be set. And in this case game hangs up. Requested for hardcoded limitation of this variable.

AndreiRomania commented 11 years ago

add m_rawinput pls

MPNumB commented 11 years ago

After this last update, new mouse acceleration settings for windows XP are (closest thing what I found):

m_rawinput "0"
m_customaccel "1"
m_customaccel_exponent "1"
m_customaccel_max "0"
m_customaccel_scale "0.015"
// lower your sensitivity by 2 (if it was 3.0, set it to 1.5)

but they feel kind of wrong when trying to change your angle only a bit... Plus with m_rawinput 1 it becomes totally messed up. With m_rawinput 1, the closest thing what I found is:

m_rawinput "1"
m_customaccel "1"
m_customaccel_exponent "1.05"
m_customaccel_max "0"
m_customaccel_scale "0.015"
// check your windows sensitivity, and imagine it going from -400% (lowest) to -100% or 100% (middle) to 400% (highest),
// now use this formula to change your sensitivity:
// if your value is -100% or 100%, use this:
//new_sensetivity = (sensitivity / 2)
// if you'r % value is negative, use this:
//new_sensitivity = (sensitivity / 2) / (percents / -100)
// if it's above 100%, use this:
//new_sensitivity = (sensitivity / 2) * (percents / 100)
danjessen commented 11 years ago

Can this be used to eliminate mouse acceleration ? Because for some reason mouse acceleration is still enabled in the game. even with the options: -noforcemaccel -noforcemparms -noforcemspd -nofbo. I'm getting some odd positive mouse acceleration.

I've tried running the game with m_rawinput 1 and m_rawinput 0 there is no difference. I'm running the game in 800x600 on a 24" 16x10 monitor with -noforcemaccel -noforcemparms -noforcemspd -nofbo. Mouse speed 2.35 and i am still getting some positive mouse acceleration. "enhance thingy" in windows 7 is disabled. It seams impossible to remove acceleration completely.

This is in Day of Defeat btw ... but that shouldn't make any difference. It's a mod like CS.