Promoveaza serverul
1 lines 1.1 KiB Markdown Source Rendered Raw Permalink History
<p><strong>CSB Bhop Script Detection</strong> separates a good hopper from a scripter by looking at <em>when</em> the jump happens, not how far it goes. In <code>PlayerPreThink</code> it watches the <code>FL_ONGROUND</code> flag and the <code>+jump</code> button: a bunnyhop script re-presses jump on the very first ground frame every single time, which a human simply cannot do. A long run of these frame-perfect jumps is logged and optionally punished.</p><h2>How it works</h2><ul><li>Tracks the ground/air transition each frame and counts frames spent on the ground.</li><li>Only the rising edge of <code>+jump</code> is counted, so holding jump isn't misread.</li><li>A jump on ground-frame 0 or 1 is "perfect"; a normal jump resets the streak.</li><li><code>csb_bhop_perfect</code> consecutive perfect jumps triggers a log line and, if <code>csb_bhop_action 1</code>, a kick.</li></ul><h2>Installation</h2><ol><li>Enable the <code>fakemeta</code> module in <code>modules.ini</code>.</li><li>Compile <code>csb_bhop_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>