CSB Aimbot Detection v1.0.0
CSB Aimbot Detection watches for the two things aim assistance does that humans cannot. Every frame it samples each alive player's view angle (pev_v_angle via fakemeta) and measures how far it moved in that single frame. When a kill lands on a frame where the view snapped more than csb_aim_snapangle degrees, a snap counter goes up; enough of those and the player is flagged. A second, independent signal is a sustained headshot ratio above csb_aim_hsratio percent over at least csb_aim_minkills kills. Suspects are logged with the exact evidence and online admins are alerted.
This is a heuristic aid, not an auto-banner. It never kicks or bans on its own — false positives happen with flick-heavy legit players, so a human should always review the log evidence before acting.
Features
- Per-frame view-angle sampling with correct 180-degree wrap handling.
- Impossible-snap counter tied to the killing frame.
- Inhuman headshot-ratio signal with a minimum-sample guard.
- Evidence written to the AMXX log; admins (
ADMIN_KICK) alerted in chat. - Each player is flagged at most once to avoid alert spam.
Installation
- Compile
csb_aimbot_detect.smaand copy it toaddons/amxmodx/plugins/. - Add it to
plugins.iniand change the map.
Treat every flag as a lead to review, not a verdict. Tune the thresholds to your player base before trusting them.
1. Put csb_aimbot_detect.amxx in addons/amxmodx/plugins/ 2. Add it to addons/amxmodx/configs/plugins.ini 3. Change map
| CVAR | Default | Description |
|---|---|---|
csb_aim_enabled | 1 | Enable aimbot heuristics. |
csb_aim_snapangle | 40.0 | Single-frame view change (degrees) counted as a snap. |
csb_aim_snaphits | 4 | Snap-kills before a player is flagged. |
csb_aim_hsratio | 90 | Headshot ratio percent that flags a player. |
csb_aim_minkills | 15 | Minimum kills before the ratio check applies. |









