ValveSoftware / portal2

Issues for the Linux port of Portal 2
140 stars 11 forks source link

Clicking OK on challenge mode cheat dialog shows pause menu instead of leaderboards #434

Open vrad-exe opened 1 month ago

vrad-exe commented 1 month ago

If you use sv_cheats on a challenge mode map, it shows a dialog indicating that you cheated and your score wasn't saved. Closing this dialog is supposed to open the leaderboards, but since a recent update, it now opens the pause menu instead due to FCVAR_CLIENTCMD_CAN_EXECUTE preventing the leaderboard open command from running. This needs to be changed to use ClientCmd_Unrestricted() so the flag is bypassed.

NathanL1370 commented 4 weeks ago

Can confirm, completing a challenge map with cheats on sends me to the pause menu instead of the leaderboards. I would also like to add that this bug means you can continue playing the map even after you hit the ending flag.