FWGS / xash3d-fwgs

Xash3D FWGS engine
1.56k stars 235 forks source link

"centerview" issues #1339

Open Flintastic opened 1 year ago

Flintastic commented 1 year ago

Inputting centerview ("Look straight ahead") does nothing.

Attempting to use centerview with the hlsdk-portable libraries prints the message "Unknown command: centerview".

a1batross commented 1 year ago

It's probably a bug of hlsdk-portable.

It actually reminds me that back in 2015 we were removing the pitch drift functionality because it conflicted with our unified input. Hey @mittorn do you remember anything about this?

Flintastic commented 1 year ago

Just to be clear, centerview does not work with the original libraries or any of the mods I've tried.

Vladislav4KZ commented 1 year ago

Just to be clear, centerview does not work with the original libraries or any of the mods I've tried.

Works for me on the latest build of engine

Xash3D FWGS 49/0.20 (win32-i386 build 2951)

Windows 10 Pro x64 22H2

Half-Life content was taken from the version

Protocol version 48
Exe version 1.1.2.2 (valve)
Exe build: 19:53:27 Aug  3 2020 (8684)

Also the centerview command works for me even in any mod

Try the force_centerview command, it's the same as centerview only it instantly straightens the player's view, unlike the centerview command in which you can see the view shift on several frames

Flintastic commented 1 year ago

After a bit more testing I found that centerview only works with mlook disabled. This is the original behavior in GoldSrc as well. Was not aware.

I found another issue though. Inputting centerview forces the joystick view pitch to center even after it is no longer being inputted. It stops doing this when using the keyboard to adjust the pitch, but resumes when centerview is used again.