Forum

> > CS2D > Scripts > Anti-Cheat , For cs2d
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Anti-Cheat , For cs2d

13 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Anti-Cheat , For cs2d

XMyRby
User Off Offline

Zitieren
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.

alt Re: Anti-Cheat , For cs2d

Avo
User Off Offline

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

alt Re: Anti-Cheat , For cs2d

Cebra
User Off Offline

Zitieren
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

alt Re: Anti-Cheat , For cs2d

_Yank
User Off Offline

Zitieren
@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.

alt Re: Anti-Cheat , For cs2d

DC
Admin Off Offline

Zitieren
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.

alt Respondent

XMyRby
User Off Offline

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

alt Re: Anti-Cheat , For cs2d

xsiN
User Off Offline

Zitieren
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?

alt yes

XMyRby
User Off Offline

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

alt Re: Anti-Cheat , For cs2d

DC
Admin Off Offline

Zitieren
@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.

alt Re: Anti-Cheat , For cs2d

xsiN
User Off Offline

Zitieren
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.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht