Engine icon indicating copy to clipboard operation
Engine copied to clipboard

Bug: `momentary_rot_button` does not function usably

Open Equalizer5118 opened this issue 1 year ago • 0 comments

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

  1. Open provided map
  2. use on the cube directly in front of you
  3. 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

Equalizer5118 avatar Aug 13 '24 18:08 Equalizer5118