Forum

> > CS2D > Scripts > Antispeed hack measures
Forums overviewCS2D overview Scripts overviewLog in to reply

English Antispeed hack measures

48 replies
Page
To the start Previous 1 2 3 Next To the start

old Antispeed hack measures

Apache uwu
User Off Offline

Quote
Add this code anywhere and it should enforce the constant speed.

1
2
3
4
5
6
7
addhook("always","_always")

function _always()
	for _,id in pairs(player(0,"tableliving")) do
		parse("speedmod "..id.." 0")
	end
end

I just need some information:
     1. Does this work?
     2. If this does work, can this be added to cs2d as another security measure?

old Re: Antispeed hack measures

Obviously Exactly Myself
User Off Offline

Quote
user Apache uwu has written
Not a hacker, I'm assuming you aren't either, but have you tested this?

Even you ask DC, it's a hack, you can't prevent a hack, you can only prevent hackers by banning them.

BTW, mp_antispeeder kicks innocent players.

old Re: Antispeed hack measures

Flacko
User Off Offline

Quote
No, I haven't tested it.
But AFAIK speedhacks send move-packets to the server more often that a regular client does while speedmod is a server side variable that increases (or decreases) the distance moved by the player when a move-packet arrives.

old Re: Antispeed hack measures

Apache uwu
User Off Offline

Quote
No, packet rates/intervals are not altered, instead they abuse cs2d's threshold on movement, moving 1/3 or even 1/2 tile faster than usual.

I recall back in 0.1.8.0 --> when I was moderating over EviL servers, using @speedmod would slow down a speedhacker

old Re: Antispeed hack measures

Obviously Exactly Myself
User Off Offline

Quote
user Apache uwu has written
No, packet rates/intervals are not altered, instead they abuse cs2d's threshold on movement, moving 1/3 or even 1/2 tile faster than usual.

I recall back in 0.1.8.0 --> when I was moderating over EviL servers, using @speedmod would slow down a speedhacker


Make the hacker's speedmod to -100 to return their speed?

old Re: Antispeed hack measures

Tobey
User Off Offline

Quote
user Flacko has written
No it doesn't work. Speedhacks are not related to speedmod.


You may laugh, they are (or atleast the most known hack out there). Actually, you change your movementspeed clientwise, if it's not set by the server. Changing back hackers movementspeed with speedmod will just result in turning the hack off and on again, and it works. So this is simply no protection.

So you can queue your per frame speedmod setting against the one from the server. Dunno what will happen, I might try out when I'm on my PC.

old Re: Antispeed hack measures

sheeL
User Off Offline

Quote
1
2
3
4
5
6
7
8
addhook("movetile","antihack")
addhook("startround","a")
function antihack(id)
if (player(id,"speed")>3) then
parse ("speedmod "..id.." 0")
msg (player(id,"name").. " Used Speed Hacker ! @C") end
end function a()
msg(id,"Welcome") end

old Re: Antispeed hack measures

Anders4000
User Off Offline

Quote
@user sheeL: Waw, let me rewrite that code.
Remember using tabbing.
1
2
3
4
5
6
7
8
9
10
11
12
13
addhook("movetile","antihack")
addhook("startround","a")

function antihack(id)
	if (player(id,"speed")>3) then
		parse("speedmod "..id.." 0")
		msg(player(id,"name").." Used Speed Hacker! @C")
	end
end

function a()
	msg(id,"Welcome")
end

old Re: Antispeed hack measures

EngiN33R
Moderator Off Offline

Quote
user Anders4000 has written
@user sheeL: Waw, let me rewrite that code.
Remember using tabbing.
1
2
3
4
5
6
7
8
9
10
11
12
13
addhook("movetile","antihack")
addhook("startround","a")

function antihack(id)
	if (player(id,"speed")>3) then
		parse("speedmod "..id.." 0")
		msg(player(id,"name").." Used Speed Hacker! @C")
	end
end

function a()
	msg(id,"Welcome")
end


No such parameter as
1
player(id,"speed")
exists for the player function. It will be
1
player(id,"speedmod")

old Re: Antispeed hack measures

Anders4000
User Off Offline

Quote
user Blunt has written
@user Anders4000: you script is bugged i have test it
of my new game server with RCon speedmod <ID>


Yea i know, there's nothing called player(id,"speed") (:
should be like this:
1
2
3
4
5
6
7
8
9
10
11
12
13
addhook("movetile","antihack")
addhook("startround","a")

function antihack(id)
	if (player(id,"speedmod")>3) then
		parse("speedmod "..id.." 0")
		msg(player(id,"name").." Used Speed Hacker! @C")
	end
end

function a()
	msg(id,"Welcome")
end

This is user sheeL's code though (:

Also, this will not work with Hero mods and such, as it will kick specific speed classes.

EDIT: And i see people writing about hacks using speedmod or not to boost player speed. It hacks doesn't use speedmod then this script wouldn't work.

old Re: Antispeed hack measures

Apache uwu
User Off Offline

Quote
They set their "speedmod" client side, player(id,"speedmod") will not be affected. However setting speedmod with the console command will revert their speed.
To the start Previous 1 2 3 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview