Page 1 of 2

Kicking on 'Ping-Masking' & Admin intiated cvar query

Posted: Sun Aug 23, 2009 5:30 pm
by asherkin
I have seen an increasing number of people doing this recently. It involves adding a non-integer to the cl_cmdrate cvar, therefore corrupting the server's ping calculation and showing the client as having very low ping.

Announcing that a player is doing this, and removing all non-numeric characters from this cvar may be more preferable to a kick, due to the shear number of people doing it.

On a related note, it would be really useful if KAC exposed the function it uses to query clients cvars through an admin command. So that administrators could query a specific client for the value of an individual cvar.

--Asher
P.S: I'm writing this post at 6 AM as well, If you don't quite understand anything, just ask.

Re: Kicking on 'Ping-Masking' & Admin intiated cvar query

Posted: Mon Aug 24, 2009 11:54 am
by Kigen
Well, unfortunately, at this time that would require a re-write of KAC related code since it is impossible to do dynamically allocated strings with what I currently have and would require me to move everything into SourceMod's ADT_Arrays.

As far as your ping-maskers since KAC only permits valid numbers in any convar it queries if they set it to non-numeric values KAC will boot them for "having a corrupted value" and they will be informed by KAC to restart their client.

Re: Kicking on 'Ping-Masking' & Admin intiated cvar query

Posted: Wed Nov 18, 2009 6:07 pm
by 181
I haven't ever seen KAC kick someone for having the "cl_cmdrate" set to mask their ping.


I don't think this is a big issue though either.

Masking your ping I'm pretty sure doesn't really effect game play at all when it comes to the server knowing your actual ping.

The server decides what the min is for ping(rates).



You could use a python script with "eventscripts" to do this easily though.

Code: Select all

sv_mincmdrate
    This sets the minimum value for cl_cmdrate. 0 == unlimited.
Default Value: 0

Code: Select all

This is all steam has to say about the command:
cl_cmdrate	30		"Max number of command packets sent to server per second"
 

Re: Kicking on 'Ping-Masking' & Admin intiated cvar query

Posted: Wed Nov 18, 2009 6:16 pm
by Kigen
Me no likey eventscripts. Anyhow, you can do this now with KAC 1.2 Open Beta.

Re: Kicking on 'Ping-Masking' & Admin intiated cvar query

Posted: Wed Nov 18, 2009 6:19 pm
by 181
How?

By default it doesn't do anything.


I run a masked "cl_cmdrate" almost all the time.

Re: Kicking on 'Ping-Masking' & Admin intiated cvar query

Posted: Wed Nov 18, 2009 11:25 pm
by Kigen
kac_addcvar

Re: Kicking on 'Ping-Masking' & Admin intiated cvar query

Posted: Sun Dec 13, 2009 6:24 pm
by lhffan
kac_addcvar cl_cmdrate


^ like that?

Re: Kicking on 'Ping-Masking' & Admin intiated cvar query

Posted: Sat Oct 16, 2010 2:20 am
by lhffan
How do i prevent ping masking with kac ?

Re: Kicking on 'Ping-Masking' & Admin intiated cvar query

Posted: Sat Oct 16, 2010 8:30 am
by coach
I wanted more control as far as rates & what clients had on my comp servers so added these to my server.cfg:

kac_addcvar cl_interp less kick 0.1 // This gives the client a max of 100 lerp
kac_addcvar cl_cmdrate greater kick 66 // This sets cmdrate to a minimum of 66
kac_addcvar cl_updaterate greater kick 66 // This sets updrate to a minimum of 66
kac_addcvar rate greater kick 20000 // This sets drate to a minimum of 20000

It kicks clients until they set their rates correctly.

Re: Kicking on 'Ping-Masking' & Admin intiated cvar query

Posted: Sun Oct 17, 2010 7:16 pm
by nightrider