Prodvigat server
csb-spinbot-detect / README.md
1 lines 1.1 KiB Markdown Source Rendered Raw Permalink History
<p><strong>CSB Spinbot Detection</strong> catches the anti-aim and spinbot cheats that snap a player's view around every frame to dodge aim. Each frame it reads <code>pev_v_angle</code> and checks two things a human can't fake: a yaw that turns more per frame than any real mouse movement, and a pitch pushed outside the engine's legal <code>-89..89</code> clamp. Both are counted with a strike system so a single odd frame never triggers a false positive.</p><h2>How it works</h2><ul><li>Yaw delta between frames is normalised to the shortest signed turn before comparison.</li><li>A frame over <code>csb_spin_maxyaw</code> degrees, or with an illegal pitch, adds a strike; clean frames remove one.</li><li>Reaching <code>csb_spin_strikes</code> logs the player and, with <code>csb_spin_action 1</code>, kicks them.</li></ul><h2>Installation</h2><ol><li>Enable the <code>fakemeta</code> module in <code>modules.ini</code>.</li><li>Compile <code>csb_spinbot_detect.sma</code>, copy it to <code>addons/amxmodx/plugins/</code> and add it to <code>plugins.ini</code>.</li><li>Change the map.</li></ol>