Cruelty Squad

Cruelty Squad

评价数不足
How to hold to aim
由 Bluebeak 制作
This is a guide going over how to use Autohotkey to make aiming a hold rather than a toggle.
   
奖励
收藏
已收藏
取消收藏
Introduction
Cruelty Squad has a lot of toggle based controls. This is fine in my opinion for crouching, but I'm not the biggest fan of this for aiming.

Thankfully I've created an Auto Hotkey script that lets me do this. It's a v1 script so I would recommend installing Autohotkey v1.1 to get it to work.
Step 1: Install Autohotkey
Step 1. Install Autohotkey. It's located here[www.autohotkey.com]. I would recommend installing v1.1 as it's the version of the script I made. I've found it's more reliable than v2 is.
Step 2: Copy this script
Next, open notepad and copy down this script. Save it as CrueltySquad.ahk
; AutoHotkey v1 script
; Turns toggle ADS (bound to RButton) into hold-to-ADS
; Works only when crueltysquad.exe is active
; Fixes "stuck ADS" when pressing both mouse buttons together
; MButton = panic reset (forces ADS off)

#IfWinActive ahk_exe crueltysquad.exe

RButton::
; On press: toggle ADS on
Click down right
Sleep, 30
Click up right

; Wait for release, but also allow other mouse buttons to be pressed
While GetKeyState("RButton", "P")
Sleep, 10

; On release: toggle ADS off
Click down right
Sleep, 30
Click up right
return

; Panic reset: force ADS off
MButton::
Click down right
Sleep, 30
Click up right
return

#IfWinActive
  • Note that this script does have 1 bug. If you have a weapon that automatically turns off your aiming like the Stern AWS 3000, it will cause aiming to be stuck on. The fix I've found is to program a kill switch to middle mouse which resets it back to normal. So if it ever gets stuck just press Middle Mouse and it returns to normal.
  • Note that I bound aim to my Right Mouse button. So if you want it to be another key just change every instance of "RButton" to one of the other keys on the keyboard.
A full list of keys can be found here[www.autohotkey.com].

To run the script. After Autohotkey is installed simply right click it and press "run script".











It should now appear in your taskbar.
Step 3: Make it run automatically
This script did work for me, but you need to re-run the script every time you restart your computer. You can make scripts run automatically when you run Windows. To do that Right Click it again and select "Compile Script (GUI)".

































After this go with all of the default options and select convert. It will now spit out an exe that can be run the same as the .ahk file.

To make it run automatically on startup. Go to the run command and type in
shell::startup

















This will open up a folder. Any program you copy into this folder will run automatically on startup. Copy your Autohotkey exe into it. You're done.

Conclusion
Hopefully Cruelty Squad's developer adds this as a proper option in an update. But for now this is a simple fix. It should also presumably work with other controls as well like crouching.