OpenXRay / xray-16

Improved version of the X-Ray Engine, the game engine used in the world-famous S.T.A.L.K.E.R. game series by GSC Game World. Join OpenXRay! ;)
https://discord.gg/sjRMQwv
Other
2.9k stars 455 forks source link

Demo record, cam_2, cam_3 not functioning correctly #1691

Open yohjimane opened 3 weeks ago

yohjimane commented 3 weeks ago

Describe the bug Caused by regression in this commit: 84f09c511d8d21535b47d3fe2e011abab9417d34

Can be fixed by adding this line back: https://github.com/OpenXRay/xray-16/commit/84f09c511d8d21535b47d3fe2e011abab9417d34#diff-8c9a94aa05d6fc560256f64b35bdde19e45da565a0d3998750c9f2f15d504bfdL399

When activating demo_record command, input keys don't work correctly until pressing period key.

When activating cam_2 / cam_3 keybinds, camera stays in static position while actor can still move around.

To Reproduce Steps to reproduce the behavior:

  1. Activate demo_record, cam_2 or cam_3
  2. Observe camera functionality doesn't work the same as before this commit: 84f09c511d8d21535b47d3fe2e011abab9417d34

Expected behavior When using demo_record, you should be able to move the camera around using wasd, spacebar keys and left/right mouse buttons.

When using cam_2/cam_3, camera should follow the actor and be affected by mouse movement.