11 hours ago11 hr Administrator Limits the fire rate of semi-automatic pistols to the legitimate maximum to stop macro and script abuse. Anti Rapid Pistol Fire 1.0.0 (olds.ro) Semi-automatic pistols cannot fire faster than a set interval, which stops fire macros and scripts from going past it. Shots that come too early are dropped; after a number of them the player is warned and logged, or kicked. Pistols: USP, Glock-18 (semi-automatic mode only; its burst mode keeps the game's own timing), P228, Desert Eagle, Five-SeveN, Dual Elites.A shot less than olds_ap_interval (0.15 s) after the previous shot of the same weapon is dropped. If the button is still held, it fires as soon as the interval has passed.Only real shots count: holding the fire button fires a pistol once, and that is not rapid fire. Several early attempts before one shot count as one dropped shot.Each weapon has its own timer, so switching weapons never drops a shot.10 ms are allowed for the server's frame timing, so a player who clicks exactly at the limit is never punished.Every olds_ap_warn (5) dropped shots the player gets a chat warning and a line goes to the AMX Mod X log. With olds_ap_kick 1 the player is kicked at the first warning instead.The count of dropped shots lasts until the player leaves the server. Requirements ReHLDS, ReGameDLL_CS, Metamod-r, ReAPIAMX Mod X 1.10.0.5490 or newer, with the hamsandwich module (enabled by default) Install Compile scripting/olds_antirapid.sma and copy olds_antirapid.amxx to addons/amxmodx/plugins/. The compiler needs ReAPI's include files (reapi.inc and the reapi_*.inc files from the ReAPI release, in addons/amxmodx/scripting/include/) next to the stock AMX Mod X includes.Copy data/lang/olds_antirapid.txt to addons/amxmodx/data/lang/.Copy configs/plugins/olds_antirapid.cfg to addons/amxmodx/configs/plugins/ and change the values you want. (If the file is missing, the plugin writes one with the defaults the first time it starts.)Add olds_antirapid.amxx to addons/amxmodx/configs/plugins.ini. Settings (addons/amxmodx/configs/plugins/olds_antirapid.cfg) olds_ap_interval 0.15 shortest time between two pistol shots (seconds) olds_ap_warn 5 dropped shots before a warning; warned and logged again every this many olds_ap_kick 0 1 = kick the player at the first warning instead Commands None. Texts Chat warning: "[Anti-Rapid-Fire] Your pistol fires faster than allowed: 5 shots were dropped. Turn off any fire macro or script." Kick reason: "Pistol fire macro or script (shots faster than allowed)". Both are in data/lang/olds_antirapid.txt and can be translated there. Log line (addons/amxmodx/logs): "Name<userid><SteamID>" fired the weapon_deagle faster than 0.15 s: 5 shots dropped. Tested on ReHLDS 3.15.0.896, ReGameDLL_CS 5.30.0.814, Metamod-r 1.3.0.149, AMX Mod X 1.10.0-git5490, ReAPI 5.29.0.358. Credits and licence Written from scratch by alexit (olds.ro workshop) for workshop card LIB-0079. Licence: GNU General Public License v3.0 or later (GPL-3.0-or-later). InstallDownload the ZIP above and copy its folders into cstrike/. Compile the .sma in addons/amxmodx/scripting with the AMX Mod X 1.10 compiler, put the .amxx in addons/amxmodx/plugins, and add it to plugins.ini. Files: addons/amxmodx/scripting/olds_antirapid.sma, test/lib0079_probe.sma Idea: olds.ro workshop library · Plugin: alexit · Tested automatically (compiled on AMX Mod X 1.8.2, 1.9 and 1.10, played on a CS 1.6 test server)License: GPL-3.0-or-later. Written for the olds.ro plugin workshop (LIB-0079). Anti Rapid Pistol Firev1.0Counter-Strike 1.6PluginNot tested yetAMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads5.1 KBUpdated 11 hours agoSign in to downloadolds_antirapid.smaPawn (AMX Mod X) · 196 lines4 files/* * Anti Rapid Pistol Fire (olds.ro workshop card LIB-0079) * * Semi-automatic pistols cannot fire faster than a set interval, which stops * fire macros and scripts from going past it. Shots that come too early are * dropped; after a number of them the player is warned (and logged), and * can be kicked.Show all 196 linesChangelogVersions (1)Install into: cstrike/Open the full page →
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.