Engine
Engine copied to clipboard
Bug: `momentary_rot_button` does not function usably
Describe the bug
momentary_rot_button is supposed to rotate to an arbitrary position and then be able to move a func_movelinear to a position relative to the rotated button. This movement logic works, but the button does not function correctly. it stops rotating very shortly after being pressed, even when holding down the use key.
Here is a video comparing Half-Life 2 and P2CE behaviour. This is also apparently the case in Portal 2, but I have not tested that yet.
https://github.com/user-attachments/assets/623a7e5e-dbff-4982-a247-ba092cf7bbc7
To Reproduce
- Open provided map
- use on the cube directly in front of you
- observe bug
Issue Map
rotbuttontest.zip Map was made in HL2 for ease of comparison
Expected Behavior
When holding down use on the button, it should continue to rotate for 720 degrees.
Operating System
Tested on Windows 11