protonscr

[HL1/CS] Add proper anti-speedhack code, or fix existing one

steamclosed Feature RequestreviewedMOVED: Half-Life 1MOVED: Counter‐Strike
ValveSoftware/steam-for-linux#1188 · opened 2013-02-02 by AnAkkk · updated 2019-07-18 · 3 comments · github
AAnAkkk 2013-02-02 github

HL1/CS already has some sort of anti-speedhack code, but it doesn't work correctly. All it does is making the speedhacker lag once a while.

As you can see, this was added a very long time ago:

Half-Life Linux Primary Server 3.1.1.0.b Beta Update Changelog

* Added new cvar "clockwindow". This cvar is temporary.
It's designed to combat the speed cheats being used in-game.
The default value for this cvar is "0.5".
We're very interested in how low you can get this value and not have your players "feel" any
different while they're playing. Broadband clients shouldn't be affected by this cvar.
Adjusting "clockwindow" should have a greater affect on modem clients.
As you lower the value (0.3, 0.1, 0.01, etc.), modem clients' games should feel jittery.
Adjusting "clockwindow" does not affect the server.
Only clients will notice problems when the value starts to get too low.
Please play with this cvar and report your results directly to Eric Smith.

Maybe the default value could be changed to really block speedhacks, or a real speedhack block could be added. There are already some plugins that do it correctly.
Speedhacking works by sending more command packets than necessary, so it just needs detecting how much packets/sec a client is sending, and blocking him if he sends too much.

CConnorMcLeod 2013-02-02 github

I don't think VAC is updated with goldsrc cheats, so i don't think a speedhack blocker feature gonna be taken in account.
And anyway, speedhack is easy to detect by other player, and not the most "destroying game" cheat, by far.

Let's see...

AAnAkkk 2013-02-02 github

This has nothing to do with VAC. Such old engine exploits such as speedhacking should have been blocked a long time ago with proper game server code. It shouldn't be possible for the player to move faster.

Nothing extracted yet.