StrataSource / Portal-2-Community-Edition

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

Bug: 'invnext' and 'invprev' commands not functioning #981

Open FuzzyLeo opened 2 years ago

FuzzyLeo commented 2 years ago

Describe the bug

When i tried binding invnext and invprev to buttons then pressed those buttons while i have multiple weapons nothing happened, when it should have switched between those weapons

Issue Map

Any

To Reproduce

  1. open any map
  2. bind buttons to 'invnext' and 'invprev'
  3. give yourself weapons
  4. try to switch between them using the bound keys

Operating System

No response

FuzzyLeo commented 2 years ago

upon further inspection no command related to weapon switching functions properly apart from 'use [weapon]'

vrad-exe commented 2 years ago

Yeah, it's because currently weapon switching is entirely tied to the HEV suit, which isn't implemented in Portal 2. (I'm honestly surprised these commands still exist to begin with, I wonder if they even have any code?) Soon weapon switching will be moved into Panorama, so at that point these commands will basically just send events to the UI, if they aren't replaced entirely.

FuzzyLeo commented 2 years ago

ah i see, from reading old chat messages in the discord it gave me the impression weapon switching using these commands used to work

vrad-exe commented 2 years ago

It never has as far as I'm aware, I don't know why we would have removed that