Open Equalizer5118 opened 1 month ago
this behavior has been in place since the original portal2 release; valve rewrote the code for +use since most objects in the portal2 game (buttons, cubes, et al.) are basically "press once" and not "hold for as much as needed/keep +USEing"
Note: Issues #888 and #310 report on the same issue and contain relevant info
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
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