A simple Lua macro script for Logitech Gaming Software (LGS) or G Hub that helps control vertical recoil in FPS games.
- Recoil Compensation: Simulates small downward and lateral mouse movements while firing.
- Activation Conditions:
- Caps Lock must be ON
- Right mouse button (Mouse Button 3) held (ADS)
- Left mouse button (Mouse Button 1) held (fire)
- Logitech Gaming Software (LGS) or Logitech G Hub
- A compatible Logitech mouse
While Caps Lock is enabled:
- Holding right-click (ADS) + left-click (fire) triggers the script.
- The script repeatedly moves the mouse down and slightly side-to-side to mimic recoil control.
This script is intended for educational purposes only. Use at your own risk. Using macros like this may violate the terms of service of some games and could result in account penalties or bans.
- Open Logitech Gaming Software or G Hub.
- Select your mouse and go to the scripting section.
- Paste the contents of
script.lua. - Save and assign the script to a profile.
- Enable Caps Lock in-game to activate.