AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Very Basic High Ping Kicker (Updated 7/15/10) (https://forums.alliedmods.net/showthread.php?t=86525)

msleeper 02-26-2009 21:14

Very Basic High Ping Kicker (Updated 7/15/10)
 
3 Attachment(s)
Very Basic High Ping Kicker

This is a very simple high ping kicker that kicks players based on their ping as reported by SourceMod. The ping is checked at a constant interval (default of 20 seconds) and if their ping exceeds the max ping given, they are internally given a warning. If a player exceeds the maximum number of warnings, they are kicked from the server. That's it.

The plugin does take admin level into account, players with the RESERVED (default) or ROOT flags are immune to ping balancing. The flag that grants immunity can be changed via cvar. You can also specify a grace period before a player will be warned to compensate for first connect ping when a player first joins, and also a minimum number of players in the server before it starts kicking them. It also waits 90 seconds after a map change before doing any ping checking, again to allow all players to fully join and pings to normalize.

I have been dissatisfied with other high ping kick plugins because they were either too complex and relied on server and client rate settings which I did not want or need, or they did not work properly or did not offer enough customization for my needs. This plugin uses the SourceMod ping function, which reports the same value as the "status" command for ping.

Note: This plugin may be inaccurate in some instances, be warned! If you are looking for an extremely accurate plugin, check out this High Ping Kicker by Liam.



This plugin should work on any Source game, however it has only been tested on these games:
  • Team Fortress 2
  • Left 4 Dead
  • Left 4 Dead 2
  • Eternal Silence
  • Counter-Strike: Source
  • Age of Chivalry
  • Day of Defeat: Source (Unconfirmed)
  • Zombie Panic! Source (Unconfirmed)
  • Dystopia (Unconfirmed)
  • Stargate: The Last Stand (Unconfirmed)
  • The Hidden: Source (Unconfirmed)
  • Battlegrounds 2 (Unconfirmed)
If you have a game or mod that you are using this for, please let me know so I can add it to the list! Thank you.

Installation
Installation is incredibly easy, install the plugin in your /addons/sourcemod/plugins/ directory and refresh your plugin list, or change map.

Configuration
A config file will automatically be generated in /cfg/sourcemod/ when the plugin is first ran.

sm_vbping_mintime - Minimum amount of time a player needs to be connected before checking his ping
sm_vbping_maxping - Maximum ping a player can have before warning them
sm_vbping_checkrate - Rate in seconds at which all players' pings are checked
sm_vbping_maxwarnings - Maximum number of internal warnings a player can have before kicking them
sm_vbping_minplayers - Minimum number of players needed in the server before ping checking will begin
sm_vbping_kickmsg - Kick reason to players
sm_vbping_logactions - Log warning and kicking by the plugin
sm_vbping_showpublickick - Enable/disable public kick message. 0 = Disabled, 1 = Enabled
sm_vbping_kickmsgpublic - Public kick message. {NAME} converts to the player's name.
sm_vbping_showwarnings - Enable/disable warning messages. 0 = Disabled, 1 = Enabled
sm_vbping_warningmsg - Ping warning message. {WARN} and {MAXWARN} converts to the warning count and max warnings respectively.
sm_vbping_immunityflag - SourceMod admin flag used to grant immunity to all ping checking/kicking

The command sm_vbping_debug will print debug information for players about how many warnings if any they have, and if they are immune.

PStar 02-26-2009 21:25

Re: Very Basic High Ping Kicker
 
N1!

CrimsonGT 02-26-2009 21:41

Re: Very Basic High Ping Kicker
 
Any major difference from http://forums.alliedmods.net/showthread.php?p=701420 ?

msleeper 02-26-2009 21:51

Re: Very Basic High Ping Kicker
 
Quote:

Originally Posted by CrimsonGT (Post 769955)

Yeah. His plugin:

Quote:

It takes the players cmdrate and the servers tickrate into account when doing this.
My plugin:

Quote:

This is a very simple high ping kicker that kicks players based on their ping as reported by SourceMod.
I do not worry about client/server rate settings, my plugin uses only the GetClientLatency() function.

Liam 02-27-2009 13:21

Re: Very Basic High Ping Kicker
 
Then the ping reported is incorrect.

msleeper 02-27-2009 13:57

Re: Very Basic High Ping Kicker
 
It is almost identical to the ping reported from the status command, which is what I use when I am in HLSW and kick people for high ping. There is a small margin of error (usually 5-10) that I actually think I know what is causing it which I'll update the plugin if I am right.

Over the few weeks I ran this plugin, I compared a person's ping in status with the ping reported by GetClientLatency and it was never severely inconsistant.

msleeper 02-27-2009 16:48

Re: Very Basic High Ping Kicker
 
Updated the plugin to 1.1, the debug command now gives the current ping as reported by the plugin and the margin of error has been lowered further.

KhyrOO 03-01-2009 02:04

Re: Very Basic High Ping Kicker
 
Thanks for this plugin! Like PStar said N1! :D

msleeper 03-01-2009 03:47

Re: Very Basic High Ping Kicker
 
If anyone is using this with any success in games that are not listed above, let me know and I will add them. As I said in theory it should work in any Source game but I of course haven't been able to test it in everything.

PStar 03-01-2009 07:09

Re: Very Basic High Ping Kicker
 
It loads on CSS but i didn' t see it working.
I'll post back later if i see it working.


All times are GMT -4. The time now is 21:13.

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