Author Topic: Anti C-Bug  (Read 780 times)

0 Members and 1 Guest are viewing this topic.

Offline Sasino97

  • *
  • Posts: 250
  • Country: us
  • Respect: +44/-6
  • Gender: Male
    • View Profile
  • MCNR name: [B]Sasino
  • Discord name: Sasino#7205
  • Crew: BloodZ & SASP
Anti C-Bug
« on: September 11, 2020, 04:42:34 am »
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

Code: [Select]
;
; 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.
« Last Edit: September 11, 2020, 09:21:09 pm by Sasino97 »

#FreeCuba