YaLTeR / OpenAG

An open-source reimplementation of Adrenaline Gamer's client library.
https://j.mp/OpenAG
Other
131 stars 42 forks source link

Spectator First Person offset issue #165

Open gustavomassa opened 2 years ago

gustavomassa commented 2 years ago

Hello

I'm having some kind of spectator first-person mode offset on the -Y-axis, looks like the player is always ducked, you can see on the video when he uses the gauss, where the crosshair is compared to where it hits

https://user-images.githubusercontent.com/16235598/163699727-f6483b1e-6b47-48a9-88ba-62d6d4c0ad79.mp4

chinese-soup commented 2 years ago

toggle the cl_viewheight_mode property to 0/1 (depending on what it currently is)

gustavomassa commented 2 years ago

@chinese-soup it was set to 1, setting to 0 fixes the issue. Can we detect when it's in an older HLSDK server, if not just ignore it?

gustavomassa commented 2 years ago

Is there a way to detect when the HLSDK is the latest version and this fix should be applied? Adding this version check here would fix the issue https://github.com/YaLTeR/OpenAG/blob/679f146ff7a9f15d574b4e37ce3f5622f635faee/cl_dll/view.cpp#L1549