StrataSource / Portal-2-Community-Edition

Task tracker for Portal 2: Community Edition
https://www.portal2communityedition.com
150 stars 3 forks source link

Bug: +USE can't be held down on entities #1712

Open Equalizer5118 opened 1 month ago

Equalizer5118 commented 1 month ago

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

pivotman319-owo commented 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"

ozxybox commented 2 weeks ago

Note: Issues #888 and #310 report on the same issue and contain relevant info