halflife icon indicating copy to clipboard operation
halflife copied to clipboard

Implement -useforcedmparms like CSGO

Open djdallmann opened this issue 3 years ago • 3 comments

In general players don't want the game to modify Windows MouseThreshold1,MouseThreshold2,MouseSpeed unless asked to.

  • Windows default is enhanced pointer precision ON which is probably why halflife uses it as a default (MouseSpeed=1) but at the same time it doesn't respect the default MouseThreshold values.
halflife/cl_dll/inputw32.cpp
static int	originalmouseparms[3], newmouseparms[3] = {0, 0, 1};

The logic to fix this would for be for halflife to get the current values and only modify them if -useforcedmparms is specified. SystemParametersInfo (SPI_GETMOUSE, 0, originalmouseparms, 0);

Main issue is that this creates an inconsistent experience, no acceleration on desktop but you enter the game and it's automatically enabled. It also seems like Windows is processing both regular input and raw input (m_rawinput 1) which changes the input a bit. No current proof of this but you can easily tell there's a change while moving/shooting when m_rawinput 1 and EPP is on behind the scenes, imo.

djdallmann avatar Feb 26 '22 20:02 djdallmann

It also seems like Windows is processing both regular input and raw input (m_rawinput 1) which changes the input a bit.

This is also an issue in csgo

Steven20102 avatar Mar 05 '22 20:03 Steven20102

It also seems like Windows is processing both regular input and raw input (m_rawinput 1) which changes the input a bit.

This is also an issue in csgo

Yep, I have an issue for that here as well.

https://github.com/ValveSoftware/halflife/issues/2087

djdallmann avatar Mar 05 '22 21:03 djdallmann

https://github.com/ValveSoftware/Source-1-Games/issues/3864#issue-1160447472

I also add this thread if you interessted

Steven20102 avatar Mar 05 '22 21:03 Steven20102

bro i lurked the full forum here and the issues are going back to 2013. I dont think they will fix it. Only way to play normal cs is download non steam version, -noforcemparms -noforcemaccel and use rinput cause somehow without rinput you will get random accel.

Steven20102 avatar Mar 11 '23 22:03 Steven20102