StrataSource / Portal-2-Community-Edition

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

Bug: prop_button (pedestal button)'s internal logic is reliant on the animations of the set model #1663

Open Wheattttt opened 3 months ago

Wheattttt commented 3 months ago

Describe the bug

when making a prop_button, setting the model to one that has incorrect (or no) animations will cause varying levels of broken-ness depending on how much in common it has with p2's stock pedestal button model. For example: A model with zero animations whatsoever will completely fail to output any signal on both press and release, will not start a timer on press, and will allow you to re-press it infinitely many times. Portal 1's pedestal button will send an output on press, but if timer ticking is disabled, it will not send a button reset output, and by extension ignores the timer length and the option to prevent fast resets.

Issue Map

buttontest.zip

This map contains three buttons. each of them have their model set to models/props/metal_box.mdl All three buttons are hooked up to their own antline, and a prop_testchamber_door. Each one has a timer length of one second. From left to right: The first button has Play timer sound? and Prevent fast reset? disabled. The second button has Play timer sound? enabled, and Prevent fast reset? disabled. The third button has both Play timer sound? and Prevent fast reset? enabled.

(No fourth button, because as far as I could tell, Prevent fast reset doesn't have any effect on a button without the timer sound enabled.)

To Reproduce

  1. Open map
  2. Press all these buttons
  3. none of them work!

Operating System

No response