Skip to content
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

Main menu can no longer execute most commands #433

Open
vrad-exe opened this issue May 9, 2024 · 0 comments
Open

Main menu can no longer execute most commands #433

vrad-exe opened this issue May 9, 2024 · 0 comments

Comments

@vrad-exe
Copy link

vrad-exe commented May 9, 2024

Portal 2's main menu includes a hidden feature where mods can prefix a menu command with the # character to have it executed as a console command instead. This was used by some mods in order to have menu buttons which load straight into maps or similar. Unfortunately, this appears to have been done in code using ClientCmd() instead of ClientCmd_Unrestricted(), meaning as of a recent update this feature is now almost useless as Portal 2 now enforces the FCVAR_CLIENTCMD_CAN_EXECUTE convar flag.

Given that these commands have to come directly from UI layouts stored in the user's local install, there's no reason they should be restricted, so this should be changed to use ClientCmd_Unrestricted() in order to restore its original functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant