Forum

> > CS2D > Scripts > Anti-Cheat , For cs2d
Forums overviewCS2D overview Scripts overviewLog in to reply

English Anti-Cheat , For cs2d

13 replies
To the start Previous 1 Next To the start

old Anti-Cheat , For cs2d

XMyRby
User Off Offline

Quote
Hi guys, I have such a problem here, I'm creating my own server project, now it's off, but when the servers are launched, the cheaters often come on them, well, for example, I did an approximately anti-speedhack part. If ("speedmod" id "≥150 ) then
There is a blocking of the USGN and IP, but I need to add Anti-Aim, Anti-Wallhack, well, and a couple of things that anyone can help to ask.

old Re: Anti-Cheat , For cs2d

Avo
User Off Offline

Quote
I believe that speedhacking has nothing to do with speedmod, so checking player's speedmod is actually wrong.

old Re: Anti-Cheat , For cs2d

Cebra
User Off Offline

Quote
if you want a "antispeedhack", you can test every second how far a user moved in the last second. if it is <= x, then everything is fine, otherwise kick/ban/punish the user

old Re: Anti-Cheat , For cs2d

_Yank
User Off Offline

Quote
@user Cebra: what would've happen to lagged players then?
And, from what I remember, there's speed hacks out there that actually change the players speed mod value. One way to track this hack was to freeze them user and see if he keeps moving.

old Re: Anti-Cheat , For cs2d

DC
Admin Off Offline

Quote
Checking the speedmod value with a Lua script is entirely pointless and doesn't detect anything except for legit server-triggered speedmod usage.
Even if users modify their own speedmod value with a hack they would only do so locally on their machine. This is not synced to the server because it's no legit operation (clients can't change their speedmod themselves in a legitimate way. They can only ask the server to change it for them).

Lua scripts however only run on the server only so they don't get the "cheated" values from clients. Well... unless the client syncs its own values with the server (like its position). But speedmod itself is not synced from client to server but only from server to client as just explained.

CS2D has various built-in options against speedhacking like cs2d cmd mp_trace or cs2d cmd mp_antispeeder. It's important to note however that both won't work properly for players/servers with high latency/bad connection quality.

old Respondent

XMyRby
User Off Offline

Quote
Well, generally the speed test also works, but unfortunately not always.
user Avo has written
I believe that speedhacking has nothing to do with speedmod, so checking player's speedmod is actually wrong.

old Re: Anti-Cheat , For cs2d

xsiN
User Off Offline

Quote
Excuse me but I've caught speedhackers in the past using basic admin scripts that slowed them down -20 and -100
If they kept walking they'd be speed hacking. (Exclude the 'the script might be broken' option because this wasn't the case)

Care to explain that?

old yes

XMyRby
User Off Offline

Quote
@user xsiN:
I have admin script.on my servers.

old Re: Anti-Cheat , For cs2d

DC
Admin Off Offline

Quote
@user xsiN: They were talking about checking the value of speedmod to detect cheaters. At least that's what I understood.
1
2
3
if (player(id,"speedmod")>0) then
	print("lol omg I think "..player(id,"name").." is a cheater but of course that's nonsense!")
end
Actively changing speedmod to check if someone might be hacking is a different story. That can work.

old Re: Anti-Cheat , For cs2d

xsiN
User Off Offline

Quote
Oh. I understand it now
checking the speedmod to attempt to detect hackers is non-sense indeed, not to mention that laggers would be (most of the time) accused of speed hacking while they were lagging.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview