Forum

> > CS2D > Scripts > Speedhack Preventing
Forums overviewCS2D overview Scripts overviewLog in to reply

English Speedhack Preventing

6 replies
To the start Previous 1 Next To the start

old Speedhack Preventing

sCy
User Off Offline

Quote
As, I looked into false anti-hack script, and started to wonder: How to prevent speedhack?
So, I got this idea of checking the distance how much the player has traveled at certain time frame, like 5 seconds. If the distance is "acceptable", it shouldnt ban, but if its too much, it should ban it. Is that possible?

old Re: Speedhack Preventing

sCy
User Off Offline

Quote
I mean, there would be about 10% to 20% difference between the max distance and ban limit. As such, like you would walk 100 tiles in 100 seconds, it would ban if you go more than 110-120 tiles in that time. What, probably would suffice for the ping.

EDIT: Its just a reference.
edited 1×, last 12.06.12 08:39:11 pm

old Re: Speedhack Preventing

DC
Admin Off Offline

Quote
@user sCy: The built in speedhack protection cs2d cmd mp_antispeeder does exactly this. You see that it kicks many innocent people even though it has a more refined technique with fair threshold values (and also doesn't detect people which stay under those threshold values). Many server owners disable it for that reason.

An even more flexible and complicated protection is cs2d cmd mp_trace which actually checks not just the distance but also the path and every aspect of it. It doesn't ban players which are too fast but resets there positions. This is also pretty annoying for people with bad pings though. It is disabled by default.

old Re: Speedhack Preventing

sCy
User Off Offline

Quote
But, with using both of these, and using something like lag compensation with position storing, speedmod modifier (serverside only!) and ping modifiers, would probably make an accurace method?

old Re: Speedhack Preventing

DC
Admin Off Offline

Quote
Packet loss can not be predicted properly and lag can only be "compensated" to a certain degree. So narrowing the threshold values would still lead to false positives now and then even with the best algorithms. You can't make it perfect without hurting people with bad connections.

CS2D's netcode is designed in a way that movement feels always smooth for clients no matter how hard they actually lag and I don't want to change this. You can set cs2d cmd mp_trace to the highest accuracy to change this though. This will entirely f*ck up every attempt of speedhacking - and also everyone with a connection which isn't perfect...
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview