Raised This Month: $12 Target: $400
 3% 

tRealPing v0.0.2 (2012-04-01)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Thrawn2
Veteran Member
Join Date: Apr 2009
Plugin ID:
2865
Plugin Version:
0.0.2
Plugin Category:
Statistical
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    5 
    Plugin Description:
    Display the same pings in scoreboard as the ping command would show.
    Old 03-31-2012 , 10:55   tRealPing v0.0.2 (2012-04-01)
    Reply With Quote #1

    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.
    Attached Files
    File Type: smx tRealPing.smx (13.0 KB, 972 views)
    File Type: sp Get Plugin or Get Source (tRealPing.sp - 906 views - 2.8 KB)
    __________________
    einmal mit profis arbeiten. einmal.

    Last edited by Thrawn2; 04-01-2012 at 09:33. Reason: Updated to 0.0.2, multi-mod support, mode selection
    Thrawn2 is offline
    McFlurry
    Veteran Member
    Join Date: Mar 2010
    Location: RemoveEdict(0);
    Old 03-31-2012 , 14:54   Re: [TF2] tRealPing v0.0.1 (2012-03-31)
    Reply With Quote #2

    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
    __________________

    Last edited by McFlurry; 03-31-2012 at 14:57. Reason: Can't forget L4D Series.
    McFlurry is offline
    Send a message via Skype™ to McFlurry
    Bacardi
    Veteran Member
    Join Date: Jan 2010
    Location: mom's basement
    Old 04-01-2012 , 01:40   Re: [TF2] tRealPing v0.0.1 (2012-03-31)
    Reply With Quote #3

    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
    __________________
    Do not Private Message @me

    Last edited by Bacardi; 04-01-2012 at 01:42.
    Bacardi is offline
    Thrawn2
    Veteran Member
    Join Date: Apr 2009
    Old 04-01-2012 , 09:36   Re: tRealPing v0.0.2 (2012-04-01)
    Reply With Quote #4

    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.
    __________________
    einmal mit profis arbeiten. einmal.
    Thrawn2 is offline
    turtsmcgurts
    SourceMod Donor
    Join Date: Jul 2011
    Old 04-01-2012 , 23:57   Re: tRealPing v0.0.2 (2012-04-01)
    Reply With Quote #5

    Looks good, i'd run it if I had a public server

    We both also prefix our plugins with a lower case "t" <_<
    turtsmcgurts is offline
    blue zebra
    BANNED
    Join Date: Jun 2010
    Old 04-02-2012 , 01:49   Re: tRealPing v0.0.2 (2012-04-01)
    Reply With Quote #6

    Thrawn2!
    You are a wizard.
    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.
    I use the bot-ping plugin too. No conflict there.
    Big thanks for your work. THANKS!

    Ps.: Game: CSS

    Last edited by blue zebra; 04-02-2012 at 01:58.
    blue zebra is offline
    GoD-Tony
    Veteran Member
    Join Date: Jul 2005
    Old 04-02-2012 , 09:04   Re: tRealPing v0.0.2 (2012-04-01)
    Reply With Quote #7

    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.
    __________________

    Last edited by GoD-Tony; 04-02-2012 at 09:11.
    GoD-Tony is offline
    Thrawn2
    Veteran Member
    Join Date: Apr 2009
    Old 04-02-2012 , 17:14   tRealPing v0.0.3-preview (2012-04-02)
    Reply With Quote #8

    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.
    Attached Files
    File Type: smx tRealPing.smx (13.9 KB, 510 views)
    File Type: sp Get Plugin or Get Source (tRealPing.sp - 519 views - 3.6 KB)
    __________________
    einmal mit profis arbeiten. einmal.
    Thrawn2 is offline
    blue zebra
    BANNED
    Join Date: Jun 2010
    Old 04-05-2012 , 00:36   Re: tRealPing v0.0.2 (2012-04-01)
    Reply With Quote #9

    Maybe this plugin a little bit lagy? Lower sample rate?
    blue zebra is offline
    Thrawn2
    Veteran Member
    Join Date: Apr 2009
    Old 04-05-2012 , 12:15   Re: tRealPing v0.0.2 (2012-04-01)
    Reply With Quote #10

    Quote:
    Originally Posted by blue zebra View Post
    Maybe this plugin a little bit lagy? Lower sample rate?
    not for me.
    more details pls: extension? sm_trealping_mode?
    __________________
    einmal mit profis arbeiten. einmal.
    Thrawn2 is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 08:56.


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