> For the complete documentation index, see [llms.txt](https://an-thanhphann2004.gitbook.io/csgo112/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://an-thanhphann2004.gitbook.io/csgo112/features/recoil-macros.md).

# Recoil Macros

CSGO RCS (recoil control system) made in AHK

This section of the script was made by akihiko#3123.&#x20;

Since the RCS part is made by akihiko and  not made by me, there will be a significant difference in the bind system. You can modify other functions to fit this style of keybinds if you like.

The bind system for RCS is located from line 6 to line 18 of the script.

```
;Key binds
key_AK:="F4"
key_M4A1:="F5"
key_M4A4:="F6"
key_Famas:="F7"
key_Galil:="F8"
key_UMP:="F9"
key_AUG:="F2"
key_SG:="F12"
key_RCoff:="F11"
key_Terminate:="F10"
key_shoot:="LButton"
key_zoom:="RButton"
```

All the keys in brackets (line 2 to line 9) represent the key to activate the recoil control on certain guns. While the key\_shoot is pressed, the mouse will auto play the opposite recoil pattern of the weapon.&#x20;

**The recoil can not be toggled off by pressing the weapon key again.** It has to be turned off by pressing key\_RCoff. It can be overlapped when pressed a different RCS key on a different gun however. The recoil has to be manually changed / disabled. **The pattern will still play if you have it on and use a different gun**&#x20;

Change the binds from line 2 to line 11 based on your preference. Two variables&#x20;

key\_shoot and key\_zoom has to be changed to match your in-game settings to shoot and zoom.

Once pressed, the script will play a dedicated sound from the "sounds" folder and initiate the RCS of the dedicated weapon. The sound is used to avoid confusion and accidentally mixing up the recoil patterns. For example.

```
if GetKeyState(key_AK)
{
SoundPlay, %A_ScriptDir%\1.mp3
ak:=true
m4a1:=false
m4a4:=false
famas:=false
galil:=false
ump:=false
aug:=false
sg:=false
humanizer:=3.8
waitdivider:=4.7
}
```

When key\_AK is pressed. The script will play 1.mp3.&#x20;

**The sound can be changed to your liking.**
