Open FreeSlave opened 12 months ago
Note: camera works if I comment out this line in the engine: https://github.com/FWGS/xash3d-fwgs/blob/cb1063c3059f8d400a567009cb54a096bec7b210/engine/platform/sdl/in_sdl.c#L69 It still doesn't explain why the original client.so works without changes and our implementation doesn't.
Upd: I tried client.so from halflife-updated and camera movement works fine on Xash3D-FWGS with it.
Could it be connected to the fact that SDL2 is loaded at runtime in our implementation?
I found that removing IN_ClientLookEvent
fixes the camera issue.
But there's another issue: player plays step sounds when he turns around while standing still.
Change
IsXashFWGS
in cl_dll/cdll_int.cpp to always return false, in order to make sure that GoldSource style input is used for camera movement.pfnSDL_GetRelativeMouseState
returns 0 for both x and y when I move mouse.Note that this is a problem with this sdk.
client.so
from Steam Half-Life doesn't have this problem.