View Single Post
steambob
Member
Join Date: Sep 2007
Old 04-28-2008 , 03:42   Re: High Ping Kicker
Reply With Quote #13

I think that
GetClientLatency(client, NetFlow_Outgoing) * 750

can produce numbers which differ quite significantly from the pings from the scoreboard .

I've tried few other ways and the best solution I've found was just using a similar formula as EKS's High Ping Kicker for Metamod (http://forums.alliedmods.net/showthread.php?t=47374) uses. Something like this:
Code:
currentLatency = GetClientAvgLatency(client, NetFlow_Outgoing) - 0.5 / GetClientAvgPackets(client, NetFlow_Incoming) - 1.5/tickrate;
currentLatency = currentLatency * 1000.0;
where tickrate is the server tick rate

This produces a number which is within few milliseconds the same as in scoreboard (tested in HL2DM, though only for one tickrate).

May be this can be integrated, so the admins should not track too many different values for pings, but rather use the one from the scoreboard.

Last edited by steambob; 04-28-2008 at 03:44.
steambob is offline