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

[Portal 2] sv_portal_placement_never_fail 1 and buddha are not protected by sv_cheats 1 #425

Open
RocketLauncher21 opened this issue Feb 15, 2024 · 2 comments

Comments

@RocketLauncher21
Copy link

I can enable sv_portal_placement_never_fail 1 without having sv_cheats 1. I have tested this on Windows 11 with the latest version of Portal 2. My friend also encountered this bug (also having the latest version and Windows 11 virtualized on a VM through macOS)
image
image
I did not try many cheat-protected cvars and commands but I have noticed that some like "noclip", "god", and others do not work, while "buddha" also ran without cheats.
My friend also tried this in coop mode, but that didn't work and behaved like normal. My system information is this:
GPU: NVIDIA GeForce GTX 1660
CPU: Intel Core i5-9400F
RAM: 16GB
Here is my full console log:
p2_log.txt
I did not see any issues on here regarding this, so I decided to report it. I am not sure if someone else already noticed this before me, though.

@RocketLauncher21
Copy link
Author

I also put my log in a gist here: https://gist.github.com/RocketLauncher21/c506997dcb18bd592769206a635e13ef

@kisak-valve kisak-valve transferred this issue from ValveSoftware/Source-1-Games Feb 15, 2024
@vrad-exe
Copy link

vrad-exe commented Mar 9, 2024

This is kind of intended behavior. Source only enforces the "cheat" flag for commands in multiplayer games, plus challenge mode in Portal 2. There are some commands like noclip that are still cheat protected in singleplayer, but that's because those commands explicitly check the value of sv_cheats in their code instead of relying on the normal system.

Changing this is possible, but would break a lot of custom maps and even some spots in the campaign for little benefit. If you want to stop people from cheating at achievements or whatever, this won't really help, there are a number of ways people can get around commands being cheat protected anyway.

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

No branches or pull requests

3 participants