AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Lame Connection Punisher: Source (https://forums.alliedmods.net/showthread.php?t=122090)

fezh 03-22-2010 19:59

Lame Connection Punisher: Source
 
1 Attachment(s)
- 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 -

ulx 03-23-2010 06:16

Re: Lame Connection Punisher: Source
 
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 03-23-2010 06:48

Re: Lame Connection Punisher: Source
 
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 :)

shustas 03-23-2010 07:17

Re: Lame Connection Punisher: Source
 
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.

ulx 03-23-2010 08:11

Re: Lame Connection Punisher: Source
 
Quote:

Originally Posted by ulx (Post 1126283)
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.

cybersquare420 03-23-2010 10:39

Re: Lame Connection Punisher: Source
 
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... :D just my 2 cents

fezh 03-23-2010 13:50

Re: Lame Connection Punisher: Source
 
Quote:

Originally Posted by ulx (Post 1126324)
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.

bobbobagan 03-23-2010 14:10

Re: Lame Connection Punisher: Source
 
Quote:

Originally Posted by fezh (Post 1125981)
- 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.

fezh 03-23-2010 17:30

Re: Lame Connection Punisher: Source
 
It has the same functionality, so yes.

LTR.2 03-23-2010 18:37

Re: Lame Connection Punisher: Source
 
Quote:

Location: Argentina, BSAS
FTW.

great plugin, gonna try it ;)


All times are GMT -4. The time now is 04:23.

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