-
Notifications
You must be signed in to change notification settings - Fork 638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enter key hardcoded to Join Team VGUI Menu when spectating #2316
Comments
Hello @kisak-valve, with "Half-Life Deathmatch" I meant regular Half-Life, sorry about the confusion, editing the OP now. While it may affect other games like DMC I haven't tested it. |
Can you show a screenshot of this? I'm unable to reproduce this and the I have enter tied to reload and it has never done this before. |
@SamVanheer I can reproduce this under the
I tried with Counter-Strike Condition Zero ( |
Tested on both Linux and Windows (using Proton 4.3-2) versions of Half-Life. No beta branch needed. As @JoelTroch stated, the entire menu lacks localization strings. As an additional note, if you attempt to exit spectator mode this game the console will say the jointeam command doesn't exists. Seems like this can't be reproduced on games like Counter-Strike because the team systsm along with the VGUIs are completely implemented. |
Looks like it's this code: halflife/cl_dll/vgui_TeamFortressViewport.cpp Lines 2207 to 2212 in 5d76170
This is VGUI1 code, the VGUI2 version used by Counter-Strike doesn't have this:
I suspect this was intended to be used for in-game spectators only, meaning if you're in the server and able to join teams to begin with. Adding this conditional check around it should fix the problem:
This will enable the feature if you're not connected through HLTV. That still doesn't solve the problem with the enter key being hardcoded to open this menu, but at least HLTV will work properly in this case. |
Please, do not remove this, MiniAG and plugins that make this VGUI menu works depends on this for change team. Example of how to make it work in AMXX |
Is it used in HLTV or only when spectating in-game? |
In both, but in HLTV doesn't make sense to change team because you are not playing. Is true that this menu isn't working out of the box, but you can make it work through AMXX or some mods like MiniAG implement them, so don't remove it for normal gameplay, just for HLTV. |
I'm also facing the same issue with the latest version of Half-Life 1. When in a local listen server or a multiplayer server and the server has enabled spectators The command |
This happens in Half-Life and some mods like Vampire Slayer so I assume it's an engine problem, please correct me if I'm wrong.
Pressing the Enter key will display the
jointeam
VGUI dialog even if there's something else bound to it.This can be very bothersome if you bind a command like
messagemode
to this key.Steps to reproduce
spectate
in console to join the spectatorsAdditional notes
Since Enter isSeems like this menu is barely implemented at all, at least in HLDM, since attempting to join any team to exit the spectator mode the game will not recognize the+use
by default, this dialog should display when sending this command when spectating, rather than being hardcoded.jointeam
commandThe text was updated successfully, but these errors were encountered: