StrataSource / Portal-2-Community-Edition

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

Portal 2 Bug: Portalgun have no fire delay if swap weapon #1425

Open MyGamepedia opened 1 year ago

MyGamepedia commented 1 year ago

Describe the bug

Portalgun have no fire delay if swap weapon (also in Portal), thanks this we can do stuff like this (can cause monitor flickering). Also it's cause problems when you use emplacement guns.

https://github.com/StrataSource/Portal-2-Community-Edition/assets/103366204/1c59fee6-64db-47fb-bfb6-76cdcadbf2bf

At first I found it when I created thanks Hammer logic TOW from Black Mesa for my own mod (ignore the visual issues lol).

https://github.com/StrataSource/Portal-2-Community-Edition/assets/103366204/14562ae6-d4d9-4190-ba88-9419721a5c5d

Expected that portalgun can fire only after draw animation end. It's not really bug, but its should not be like this.

To Reproduce

1.1. Open any map. 1.2. Enter in console sv_cheats 1; impulse 101; give weapon_physcannon; bind mwheelup "+attack; phys_swap; phys_swap"; bind mwheeldown "+attack; phys_swap; phys_swap". 1.3. Use mouse wheel. 1.4. Pay attention that portalgun is now miniportalgun!!! 2.1. Open map d1_canals_07. 2.2. Enter in console sv_cheats 1; impulse 101. 2.3. Find the emplacement gun. 2.4. Use the emplacement gun. 2.5. Hold your fire button. 2.6. Unuse the emplacement gun. 2.7. Pay attention that portalgun fire immediately with no delay before draw animation will end.

Operating System

Any.