Source-1-Games icon indicating copy to clipboard operation
Source-1-Games copied to clipboard

[HL2] [SteamPipe Beta] Some Cheats Aren't Being Blocked on sv_cheats 0

Open jrusboldt opened this issue 13 years ago • 5 comments

I apologize if this issue has already been reported, but searching didn't show me any related issues. This issue may be present in more than just HL2 in the SteamPipe beta, but it's the one I happened to see it on right now though. My guess is that this affects all games running on the same engine branch as HL2.

There seems to be an issue in the latest HL2 SteamPipe Beta that allows some cheats to be used, even if the game is set to sv_cheats 0. From what I can see, this seems to only be the case with variable cheats (commands that need to be set to a value).

Some examples of these cheats that work are the following: physcannon_mega_enabled sv_infinite_aux_power sv_gravity And I believe phys_timescale works

I'm not 100% sure if these are marked as cheats by the normal, non-SteamPipe game, but if they aren't, they really should be.

jrusboldt avatar Jun 19 '13 23:06 jrusboldt

sv_gravity I do not believe is. give at least in steampipe is not blocked as a cheat.

A test case involving physcannon_mega_enabled, that seems to reveal how sv_cheats functions: In the console, execute physcannon_mega_enabled 1, the gravity gun becomes supercharged. Now execute sv_cheats 1, nothing should happen upon resume. Now execute sv_cheats 0, the gravity gun will revert to its normal state.

JenniferPylko avatar Jun 20 '13 15:06 JenniferPylko

Just tested HL2:DM, the following commands require sv_cheats 1 and won't work without it: physcannon_mega_enabled 1 sv_infinite_aux_power 1 sv_gravity (bit of a moot issue, can only be set server side anyway)

phys_timescale appears to work without sv_cheats, but it doesn't seem to do anything. Hope it helps.

It appears to just affect the HL2 version of the Source Engine, not the MP version used by TF2, DOD:S and HL2:DM.

Pricetx avatar Jun 21 '13 08:06 Pricetx

So not a bug then, sv_cheats is only strongly enforced for multiplayer games, some commands are still allowed in SP games (though not most).

alfred-valve avatar Jun 21 '13 15:06 alfred-valve

@alfred-valve Doesn't that basically break achievements since people can cheat their way to get them?

jrusboldt avatar Jun 21 '13 16:06 jrusboldt

No, most/important convars are still sv_cheat locked, so it isn't trivial. That said achievements for single player games are client side, so trust only goes so far....

alfred-valve avatar Jun 21 '13 16:06 alfred-valve