Anti C-Bug

Anti C-Bug

I made this small script for people like me, who accidentally use "C-bug", especially the "1-tap" variant, because they are too used to it.


Description

This tiny auto-hotkey script will basically prevent you from:
- pressing C while you are shooting
- pressing C shortly after you stopped shooting

Which will effectively block C-bug altogether, and crouching while you are already shooting.
The downside is that you will have to stop shooting for 300ms before being able to crouch (you can keep aiming though).

Download

Google Drive

Source

;
; Anti C-Bug by Sasino97
; Prevents you from accidentally using
; C-Bug in servers that disallow it
;

#SingleInstance Force
#IfWinActive, ahk_class Grand theft auto San Andreas

clickTime := 0

~*LButton Up::
    clickTime := A_TickCount
return

#if GetKeyState("LButton") or A_TickCount - clickTime < 300
*c::
return


Warning

The script assumes that your "crouch" key is C (the default). You will have to edit it if it's not.

#FreeCuba