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

Lame Connection Punisher: Source


Post New Thread Reply   
 
Thread Tools Display Modes
Author
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Plugin ID:
1546
Plugin Version:
0.1.3
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    This plugin improves your server's gameplay experience by automatically rejecting clients with 'bad' conections.
    Old 03-22-2010 , 19:59   Lame Connection Punisher: Source
    Reply With Quote #1

    - Description -
    This plugin improves your server's gameplay experience by automatically rejecting clients with "bad" conections, so that you'll never have to deal with players skipping around the map or being hard to hit anymore.

    It can also detect clients running any background applications that may be affecting their connection, such as P2P programs using up too many bandwidth.

    - How does it work -
    It checks for player's ping fluctuations and packet loss rates, since these seem to be the most trustable factors in determining if there are any issues, in my experience.

    - What makes it different -
    Other solutions, such as Hing Ping Kickers, usually can't tell apart players with good or bad connections accurately. They may not detect a bad connection if the player's ping is too low, and likewise, they may end up kicking a player who's ping exceeds the limit but has a nice connection nonetheless, thus making you loose potential players.

    - CVARs -
    • lcp_flux_limit <100> - Ping fluctuation limit (in ms.)
    • lcp_flux_tests <12> - Max flux tests before punishment process starts.
    • lcp_loss_limit <10> - Loss limit (% of packets).
    • lcp_loss_tests <12> - Max loss tests before punishment process starts.
    • lcp_delay_time <20> - Delay time (in seconds) before the punishment process starts. Change if needed.
    • lcp_check_freq <5> - How often the plugin checks flux & loss (in seconds).
    • lcp_punishment <0/1/2> - Punish method: 0 = Kick / 1 = Ban by SteamID / 2 = Ban by IP.
    • lcp_ban_time <5> - Ban time in minutes (use 0 to permanently ban).
    - Credits -
    Liam - For his HPK Lite plugin which code I used to get player's ping more accurately.
    MeRcyLeZZ - For his original plugin idea in which I based this plugin. It was coded in Pawn and you can find it here.

    - Changelog -
    Code:
    - Version: 0.1.3 (June 23, 2010)
    * Added a delay timer to prevent more invalid kicks.
    * Changed my name in the plugin from shupirosawa to Drux, which is my actual nick.
    
    - Version: 0.1.2 (April 7, 2010)
    * Fixed an issue related with kicking players with a high ping flux.
    * Made some optimizations on the code.
    * Plugin is now licensed under GNU GPL.
    
    - Version: 0.1.1 (March 23, 2010)
    * Fixed annoying bug related with resources downloading.
    
    - Version: 0.1.0 (March 22, 2010)
    * First public release.
    - Download -
    Attached Files
    File Type: sp Get Plugin or Get Source (lame_connection_punisher.sp - 1331 views - 9.3 KB)
    __________________
    "There is no knowledge, that is not power"

    Last edited by fezh; 06-23-2010 at 21:08.
    fezh is offline
    ulx
    SourceMod Donor
    Join Date: Sep 2006
    Old 03-23-2010 , 06:16   Re: Lame Connection Punisher: Source
    Reply With Quote #2

    nice AMX import - thanks for that!

    I'm just checking it out on our CS:S public server and will let you know if I experience any bugs.
    __________________
    ulx is offline
    ulx
    SourceMod Donor
    Join Date: Sep 2006
    Old 03-23-2010 , 06:48   Re: Lame Connection Punisher: Source
    Reply With Quote #3

    it seems to kick people due to bad connections when they just download a new map during connect ... am I corrent? if so, this MUST get fixed as we're running almost custom-maps only
    __________________
    ulx is offline
    shustas
    SourceMod Donor
    Join Date: May 2007
    Location: London
    Old 03-23-2010 , 07:17   Re: Lame Connection Punisher: Source
    Reply With Quote #4

    Hoho, sounds just like what I was looking long time. But... How accurate is it? Ping fluctuation you mean ping goes up and down? And there should be a delay after map change to start a check.
    __________________
    shustas is offline
    ulx
    SourceMod Donor
    Join Date: Sep 2006
    Old 03-23-2010 , 08:11   Re: Lame Connection Punisher: Source
    Reply With Quote #5

    Quote:
    Originally Posted by ulx View Post
    it seems to kick people due to bad connections when they just download a new map during connect ... am I corrent? if so, this MUST get fixed as we're running almost custom-maps only
    double-checked and it kicks even @ map-downloads ... maybe you could start checking players after they spawn instaed of map-start.

    unfortunately, I had to disable this fantastic tool due to that.
    __________________
    ulx is offline
    cybersquare420
    Veteran Member
    Join Date: Nov 2008
    Old 03-23-2010 , 10:39   Re: Lame Connection Punisher: Source
    Reply With Quote #6

    very nice!!! i will watch this closely for a fix to the map download bug... this is a marvelous idea... it seems to me that you may still want a ping limit cvar... i dont care how steady your ping, if your running 999 ping you look like a slide show... just my 2 cents
    __________________
    cybersquare420 is offline
    fezh
    Veteran Member
    Join Date: Dec 2008
    Location: BANNED
    Old 03-23-2010 , 13:50   Re: Lame Connection Punisher: Source
    Reply With Quote #7

    Quote:
    Originally Posted by ulx View Post
    double-checked and it kicks even @ map-downloads ... maybe you could start checking players after they spawn instaed of map-start.

    unfortunately, I had to disable this fantastic tool due to that.
    That sounds weird for me because I'm cheking if the user is connected when he's able to play (more exactly in OnClientPutInServer). Anyway I've uploaded a new version; I didn't test it but I think it should work as spected.
    __________________
    "There is no knowledge, that is not power"
    fezh is offline
    bobbobagan
    SourceMod Donor
    Join Date: May 2007
    Location: New Zealand
    Old 03-23-2010 , 14:10   Re: Lame Connection Punisher: Source
    Reply With Quote #8

    Quote:
    Originally Posted by fezh View Post
    - Description -

    It can also detect clients running any background applications that may be affecting their connection, such as P2P programs using up too many bandwidth.
    Does this plugin actually do this? Or did you just copy exactly from the AMX post.
    __________________
    bobbobagan is offline
    Send a message via Skype™ to bobbobagan
    fezh
    Veteran Member
    Join Date: Dec 2008
    Location: BANNED
    Old 03-23-2010 , 17:30   Re: Lame Connection Punisher: Source
    Reply With Quote #9

    It has the same functionality, so yes.
    __________________
    "There is no knowledge, that is not power"
    fezh is offline
    LTR.2
    Veteran Member
    Join Date: Aug 2009
    Old 03-23-2010 , 18:37   Re: Lame Connection Punisher: Source
    Reply With Quote #10

    Quote:
    Location: Argentina, BSAS
    FTW.

    great plugin, gonna try it ;)
    LTR.2 is offline
    Reply



    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 03:54.


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