This is quite a simple bot (based on Lakitu7 QVM), which accounts the damages dealt to the team, and takes into consideration several weapon types, proximity of aliens and the type of damaged object. On the basis of that it gives 2 warnings and finally kicks the player for the kick-time specified.
This has been proven to be very effective on Amsterdam Unlimited, and has been tested for quite a while before the release.
(also called as AK, or auto-kick)
Cvars :
g_toggleAK; -- toggles AK, 0 - off 1 - on
g_AKFirstWarningThresholdFF; -- sets the Friendly Fire warning (first)
g_AKFirstWarningThresholdRC; -- sets the Reactor damage warning (first)
g_AKSecondWarningThresholdFF;
g_AKSecondWarningThresholdRC;
g_AKKickThresholdFF; -- at this moment the player is being kicked
g_AKKickThresholdRC; -- //
g_AKFFregen; -- buildables will regenerate the damage received (human-only)
g_AKFFregenRate; -- rate at which they will do it
g_AKNoFFkill; -- you cannot kill building by friendly damage only (human-only)
Lakitu7 5.1 ++ AK patch :
http://soultcer.net/trem/AK/--Anti-Decon-Bot--0.1.patchsame, already compiled :
http://soultcer.net/trem/AK/game.qvmDescription :
Anti-Decon, or Auto-kick as it is usually called is a server-side bot, which calculates the friendly damages dealt by the players, and judging from that either warns them, or kicks them.
Feature set :
2 warnings system, after the second warning the player cannot damage friendlies until his FF damage counter drops to 0.
The FF damage counter decays over time. If the last damaged target was an enemy, the decay is faster. AK counters are not being reset by re-joining.
Administrators that have vote-kick protection are protected from AK, but still receive 1st warning (only).
!listplayers display damage both for RC/OM and overall friendly damage. (only admins with full listplayers flag)
If there is an enemy near, the FF damage recorded is reduced (if base is rushed half of the human team will not be kicked)
Buildables can regenerate friendly damage dealt to them. (optional)
Buildables cannot be killed by friendly damage completely. (non-protected only, optional)
Thanks to:
Lakitu7 for the help provided
Soultcer and Memorex for the bug reports and suggestions
all the players of Amsterdam Unlimited for intensive testing
all the deconners who volunteered themselves to be kicked by AK.