AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   tRealPing v0.0.2 (2012-04-01) (https://forums.alliedmods.net/showthread.php?t=181617)

Thrawn2 03-31-2012 10:55

tRealPing v0.0.2 (2012-04-01)
 
2 Attachment(s)
Description
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.

Game Support
This plugin supports all games that use a "*_player_manager" for scoreboards.
Tested with CSS and TF2.

Requirements
This requires SDKHooks and smlib.

Configuration
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()


Credits to:
berni, for smlib.
McFlurry & Bacardi, for multimod hints.

McFlurry 03-31-2012 14:54

Re: [TF2] tRealPing v0.0.1 (2012-03-31)
 
Add support for other games. I confirmed these twothree below, the left entry is the send prop that has m_iPing, and the right is the entity player manager.
CSSPlayerResource - cs_player_manager // css
CDDDPlayerResource - ddd_player_manager //dino d day
CTerrorPlayerResource - terror_player_manager // l4d and l4d2

Bacardi 04-01-2012 01:40

Re: [TF2] tRealPing v0.0.1 (2012-03-31)
 
why not use CPlayerResource::m_iPing ?? Maybe support most game mods.
But still need right *_player_manager

Filter bots out..
Code:

[SM] Native "GetClientLatency" reported: Client 2 is a bot

Thrawn2 04-01-2012 09:36

Re: tRealPing v0.0.2 (2012-04-01)
 
Thx for the ideas.

Updated to 0.0.2:
Multi-game support. This now looks for an entity with classname *_player_manager and gets the ping offset from CPlayerResource.
Also added a display mode selection.

turtsmcgurts 04-01-2012 23:57

Re: tRealPing v0.0.2 (2012-04-01)
 
Looks good, i'd run it if I had a public server :3

We both also prefix our plugins with a lower case "t" <_<

blue zebra 04-02-2012 01:49

Re: tRealPing v0.0.2 (2012-04-01)
 
Thrawn2!
You are a wizard. :D
I pray for this plugin for years.
Now the latency 1 losers from 3000 km.-s, go to the hell.
I was try this plugin (rate 1, cl_cmdrate 1, cl_updaterate 1) and woks well (the scoreboard show my real latency) for me, but only with:
sm_trealping_mode 0.
sm_trealping_mode 2 is gullible. 0 not. :D
I use the bot-ping plugin too. No conflict there.
Big thanks for your work. THANKS!

Ps.: Game: CSS

GoD-Tony 04-02-2012 09:04

Re: tRealPing v0.0.2 (2012-04-01)
 
Interesting idea. Although I think this would be better suited for the SendProxy extension. Then you'll only send your custom values rather than trying to update a prop that has already been sent.

Thrawn2 04-02-2012 17:14

tRealPing v0.0.3-preview (2012-04-02)
 
2 Attachment(s)
Another good idea. Thanks GoD-Tony.
I've already implemented the changes. Waiting for SendProxy to allow #undef REQUIRE_EXTENSIONS.

Here's a preview with SendProxy support - don't compile this with the default sendproxy include as it is missing some parts making the plugin unusable for people not having that extension installed.
This prefers SendProxy over SDKHooks if you have installed both - otherwise it will use the one available.

blue zebra 04-05-2012 00:36

Re: tRealPing v0.0.2 (2012-04-01)
 
Maybe this plugin a little bit lagy? Lower sample rate?

Thrawn2 04-05-2012 12:15

Re: tRealPing v0.0.2 (2012-04-01)
 
Quote:

Originally Posted by blue zebra (Post 1682199)
Maybe this plugin a little bit lagy? Lower sample rate?

not for me.
more details pls: extension? sm_trealping_mode?


All times are GMT -4. The time now is 01:16.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.