addonsVersion 1.0.0: First release.
README.txtVersion 1.0.0: First release.
Bunnyhop Script Detector 1.0.0 (olds.ro)
========================================
Watches the timing of every hop: the frames between landing and the next
jump press. A person pressing space or scrolling sometimes hits the landing
frame or the one after it; a script hits it every time. olds_bd_streak such
"perfect" hops in a row raise a suspicion: admins with ADMIN_BAN get a chat
line with the player's name and suspicion count, it is logged, and with
olds_bd_action 1 the player is kicked with a reason.
Requirements
- AMX Mod X 1.10.0.5490 or newer (fakemeta)
Install
Compile scripting/olds_bhopdetect.sma and copy olds_bhopdetect.amxx to
addons/amxmodx/plugins/.
Settings (addons/amxmodx/configs/plugins/olds_bhopdetect.cfg, created on first run)
olds_bd_streak 12 perfect hops in a row for a suspicion (4-100)
olds_bd_action 0 0 = alert admins and log; 1 = also kick
olds_bd_cooldown 60 seconds before the same player raises another alert
(suspicions in between are still counted and logged)
Admin
olds_bd_status hops timed, perfect hops, current streak,
suspicions and alerts per player (ADMIN_BAN)
How a hop is timed (FM_PlayerPreThink)
- Landing = the first frame with FL_ONGROUND after being in the air.
- The next frame with IN_JUMP pressed (not held from before) ends the
timing: 0 or 1 frame after landing is a perfect hop, more resets the
streak.
- On a ladder (MOVETYPE_FLY) or in water the streak is reset and nothing
is counted. Standing more than 10 frames, or leaving the ground without a
press, also ends the chain.
Frames are the player's own commands, so the rule does not depend on the
server tick rate. Very high client fps makes 0-1 frame presses rarer for
people, not more common, so false alarms stay unlikely; raise
olds_bd_streak on servers with many scroll-wheel hoppers.
No downloads: detection is server-side and alerts are stock chat text.