This plugin modifies the scoreboard to display the real ping of clients.
It should be the same as the ping command and the netgraph would show.
These are usually higher than the original scoreboard ones - it might make players leave thinking they have a bad connection. Notify them accordingly if you start using this plugin.
This plugin supports all games that use a "*_player_manager" for scoreboards.
Tested with CSS and TF2.
This requires SDKHooks and smlib.
Enable/Disable via sm_trealping_enable cvar.
To fine tune what will be shown in the scoreboard set sm_trealping_mode to one of the following:
- 0 - GetClientLatency() More accurate than GetAvgLatency but jittering.
- 1 - GetClientAvgLatency()
- 2 - Netgraph This is using Client_GetFakePing() from smlib with goldsource set to false.
- 3 - Scoreboard This is using Client_GetFakePing() from smlib with goldsource set to true.
More about Client_GetFakePing()
Returns the ping of a client like it is displayed in the scoreboard.
The weird calculation formula is taken from Valve's SDK hl2sdkgameserverutil.cpp: UTIL_GetPlayerConnectionInfo().
The Scoreboard uses the goldSource corrected Ping, the net_graph doesn't.
berni, for smlib.
McFlurry & Bacardi, for multimod hints.
Attached Files tRealPing.smx (13.0 KB) Get Plugin or Get Source (tRealPing.sp - 2.8 KB)
Wyświetl pełny artykuł