This is an engine bug fix plugin - removes ability of doubleducking.
Tested in Counter-Strike 1.6 with amxmodx 1.8.1. But should work with all Half-Life mods and some older amxx versions. There were some plugins like this before, but they all were just setting client speed to 0, to remove only silent-run bug. But doubleduck can be used in some more cases, so I decided to create this one, what permanently blocks this bug.
If you are using not Counter-Strike mod please change cs awp world view model to your mod world view model. Model isn't visible, but is really needed so client-side engine trace line could detect anti-doubleduck entity. You can change model at source-code line 79.
* Using this plugin may cause problems in non up-to-date half-life dedicated servers. Make sure you have the newest version of hlds
what is provided steam
(newest versions: windows
* If client has custom "models/w_awp.mdl" (by default) - player can be not able to move or even crash
* If you are trying to get rid of crouch-hopping also known as silent-run or russian-walk, I strongly recommend to use anti silent-run plugin instead
: Client-side doubleduck block uses almost twice less CPU power.
: There was one frame delay during what player was fully ducked while trying to doubleduck.
: Plugin uses a bit less resources.
: config in source code to disable client-side doubleduck block (when disabled uses less resources).
: plugin uses a bit less resources.
: client-side bug moving up. (Suggesting to use sv_stepsize 17 instead of standard 18, but there are not much blocks where you are going up = 18 units.)
: if user is lagy and in a run - client-side doubleduck block isn't working properly.
: if user just landed and doubleducked client-side doubleduck isn't working all the time (pends from ping).
: client-side doubleduck block not working properly in random map areas.
: if user just unducked and made a doubleduck - client-side doubleduck block isn't working all the time (pends from ping).
: client-side doubleduck block.
: made 1-based array (lower cpu usage).
: modified check when user is pre-doubleducking - now uses only 1 variable (lower cpu usage).
- First release.