# Macros for Counter-Strike 2

> Counter-Strike 2 macros for A4Tech Bloody, X7 (Oscar) and Logitech (G HUB) mice. Updates and technical support included.

URL: https://promacro.ru/en/cs2-macros/
Updated: 2026-11-29

Whatever macros you’ve used before, you’ll notice the precision of our `PRO` macros for Counter-Strike 2. We use a version of the **proscripts 1.3** algorithm tailored to CS2 to keep recoil compensation **as accurate as possible** throughout the spray, **from the first shot to the last**.

## FAQ
<section class="faq--bare" aria-labelledby="faq" itemscope itemtype="https://schema.org/FAQPage">
  <details itemprop="mainEntity" itemscope itemtype="https://schema.org/Question">
    <summary data-faq-topic="pack-formats"><span itemprop="name">What features do the different pack formats offer?</span></summary>
    <div class="faq-answer" itemprop="acceptedAnswer" itemscope itemtype="https://schema.org/Answer">
      <p itemprop="text">Every Logitech pack lets you assign any weapon profile to a programmable G key on a Logitech keyboard that supports the Logitech Lua API. The MAX pack also includes a <strong>clicker</strong> that works well with pistols such as the Tec-9.</p>
      <p itemprop="text">A4Tech packs include the classic <code>PRO</code> and <code>LKM</code> macros as well as the newer <code>AVL</code> variants. These reduce horizontal recoil, the harder part of the spray to control, while leaving vertical recoil to you so your spray looks natural.</p>
      <p itemprop="text"><strong>We don’t offer CS2 macros for Razer mice.</strong> Macros in this format are often blocked or run unreliably.</p>
    </div>
  
  <details itemprop="mainEntity" itemscope itemtype="https://schema.org/Question">
    <summary data-faq-topic="mouse-choice"><span itemprop="name">Which mouse works best with CS2 macros?</span></summary>
    <div class="faq-answer" itemprop="acceptedAnswer" itemscope itemtype="https://schema.org/Answer">
      <p itemprop="text">If you want to switch weapons with a shortcut or a single G key, the <a href="#logitech">Logitech G HUB script</a> supports both. With <a href="#a4tech">A4Tech Bloody and X7</a>, each weapon has its own file that you assign to a mouse button.</p>
    </div>
  
  <details itemprop="mainEntity" itemscope itemtype="https://schema.org/Question">
    <summary data-faq-topic="macro-features"><span itemprop="name">What’s special about the CS2 macros?</span></summary>
    <div class="faq-answer" itemprop="acceptedAnswer" itemscope itemtype="https://schema.org/Answer">
      <p itemprop="text">In <code>AVL</code> mode, the macro compensates for horizontal recoil while you control vertical recoil yourself. On A4Tech, select an <code>AVL</code> file. On Logitech, use the <code>AVL_SPRAY</code> setting. The <code>LKM</code> version for A4Tech lets you use a spare button to activate the macro on the left mouse button. This is useful on X7 mice where you can’t assign a macro directly to that button.</p>
    </div>
  
  <details itemprop="mainEntity" itemscope itemtype="https://schema.org/Question">
    <summary data-faq-topic="faceit"><span itemprop="name">Which macros work on FACEIT?</span></summary>
    <div class="faq-answer" itemprop="acceptedAnswer" itemscope itemtype="https://schema.org/Answer">
      <p itemprop="text">Only A4Tech-format macros can work on FACEIT. Other mice and macro formats won’t work there.</p>
    </div>
  
</section>

## CS2 macro demo
[Video: Macros for Counter-Strike 2 — video](https://www.youtube.com/watch?v=sc0uLE5SJrA)

## List of weapons
<ul class="icon-list icon-list--inline pack-weapons">
  <li data-pack="mini" title="Available from MINI PACK">AK47</li>
  <li data-pack="mini" title="Available from MINI PACK">M4A4</li>
  <li data-pack="mini" title="Available from MINI PACK">GALIL</li>
  <li data-pack="mini" title="Available from MINI PACK">FAMAS</li>
  <li data-pack="standard" title="Available from STANDARD PACK">M4A1-S</li>
  <li data-pack="standard" title="Available from STANDARD PACK">MAC-10</li>
  <li data-pack="standard" title="Available from STANDARD PACK">MP9</li>
  <li data-pack="max" title="Available from MAX PACK">AUG</li>
  <li data-pack="max" title="Available from MAX PACK">SG553</li>
  <li data-pack="max" title="Available from MAX PACK">MP7</li>
  <li data-pack="max" title="Available from MAX PACK">PP-19 BIZON</li>
  <li data-pack="max" title="Available from MAX PACK">MP5-SD</li>
  <li data-pack="max" title="Available from MAX PACK">P90</li>
  <li data-pack="max" title="Available from MAX PACK">UMP-45</li>
</ul>
<p class="pack-legend">
  <span><i data-pack="mini" aria-hidden="true"></i>MINI · 4</span>
  <span><i data-pack="mini" aria-hidden="true"></i><i data-pack="standard" aria-hidden="true"></i>STANDARD · 7</span>
  <span><i data-pack="mini" aria-hidden="true"></i><i data-pack="standard" aria-hidden="true"></i><i data-pack="max" aria-hidden="true"></i>MAX · 14
    <span class="pack-legend-help">
      <button type="button" aria-label="What do the numbers next to the pack names mean?" aria-describedby="pack-legend-tip" aria-controls="pack-legend-tip" aria-expanded="false"><span aria-hidden="true">?</span></button>
      <span id="pack-legend-tip" role="tooltip" hidden>Weapons included in the MINI, STANDARD and MAX packs.</span>
    </span>
  </span>
</p>

## CS2 settings for macros
The game settings in CS2 for synchronizing macros with the spray are minimal:

- mouse sensitivity: **2.00**,
- direct mouse connection (default setting),
- mouse acceleration disabled (default setting).

![CS2 settings: Mouse Sensitivity set to 2.00 and Zoom Sensitivity Multiplier set to 1.00](https://promacro.ru/en/_astro/cs2-mouse-sensitivity.B_cr1xBq_Z13wadW.webp)

All other settings that affect mouse sensitivity **should be set to default**, including **m\_yaw** and **m\_pitch**. The screen resolution can be any, just like the DPI on the mouse.

<div class="cs2-console">

```text
> m_yaw
[Console] m_yaw = 0.022000
```

```text
> m_pitch
[Console] m_pitch = 0.022000
```

</div>

## Macro file formats
### For A4Tech Bloody and X7 mice
Macros are available in `.amc` and `.bmc` formats. Available variants: [`PRO`](https://promacro.ru/en/knowledge-base/macro-formats/#pro), [`AVL`](https://promacro.ru/en/knowledge-base/macro-formats/#avl), [`LKM`](https://promacro.ru/en/knowledge-base/macro-formats/#lmb).

### For Logitech (G HUB) mice
Each pack comes as a single [`Lua program`](https://promacro.ru/en/knowledge-base/macro-formats/#lua). To switch weapon profiles, hold the keyboard keys for the profile and press the corresponding mouse button.

![Keyboard and mouse button combinations for selecting weapons in the CS2 MAX pack for Logitech](https://promacro.ru/en/images/cs2-logitech-key-bindings.webp)

When you activate a weapon profile, a notification appears in the [G HUB console](https://promacro.ru/en/knowledge-base/terms/#g-hub-console). For example, hold down right Alt and press mouse button 5 to activate the AK-47 profile.

![The G HUB console confirms that AK47 mode is active and reminds you to turn on Caps Lock.](https://promacro.ru/en/images/cs2-g-hub-ak47-notification.webp)

[Caps Lock](https://promacro.ru/en/knowledge-base/terms/#capslock) turns all macro functions on or off. Keep Caps Lock on for the macros to work.

#### Available settings by pack
**All packs** — [`LANGUAGE`](https://promacro.ru/en/knowledge-base/lua-variables/#language), [`OFF_ON_CTRL_MODE`](https://promacro.ru/en/knowledge-base/lua-variables/#off-on-ctrl-mode), [`INVERSION`](https://promacro.ru/en/knowledge-base/lua-variables/#inversion), [`ONE_TAP_MODE`](https://promacro.ru/en/knowledge-base/lua-variables/#one-tap-mode), [`HELP_MODE`](https://promacro.ru/en/knowledge-base/lua-variables/#help-mode), [`AVL_SPRAY`](https://promacro.ru/en/knowledge-base/lua-variables/#avl-spray), [`RANDOM_XY_MODE`](https://promacro.ru/en/knowledge-base/lua-variables/#random-xy-mode), [`RANDOM_DELAY_MODE`](https://promacro.ru/en/knowledge-base/lua-variables/#random-delay-mode), [`RANDOM_XY_VALUE`](https://promacro.ru/en/knowledge-base/lua-variables/#random-xy-value), [`MACROS_COMPENSATION`](https://promacro.ru/en/knowledge-base/lua-variables/#macros-compensation), [`COMPENSATION_ONLY_CTRL`](https://promacro.ru/en/knowledge-base/lua-variables/#compensation-only-ctrl), [`R_SPEED`](https://promacro.ru/en/knowledge-base/lua-variables/#r-speed), [`OFF_ON_MACROS_KEY`](https://promacro.ru/en/knowledge-base/lua-variables/#off-on-macros-key), [`MOUSE_BUTTON_FIVE`](https://promacro.ru/en/knowledge-base/lua-variables/#mouse-button-five), [`MOUSE_BUTTON_FOUR`](https://promacro.ru/en/knowledge-base/lua-variables/#mouse-button-four), [`AK47_G_BUTTON`](https://promacro.ru/en/knowledge-base/lua-variables/#weaponname-g-button), [`M4A4_G_BUTTON`](https://promacro.ru/en/knowledge-base/lua-variables/#weaponname-g-button), [`GALIL_G_BUTTON`](https://promacro.ru/en/knowledge-base/lua-variables/#weaponname-g-button), [`FAMAS_G_BUTTON`](https://promacro.ru/en/knowledge-base/lua-variables/#weaponname-g-button).

**Added in STANDARD and MAX** — [`MOUSE_BUTTON_THREE`](https://promacro.ru/en/knowledge-base/lua-variables/#mouse-button-three), [`M4A1_S_G_BUTTON`](https://promacro.ru/en/knowledge-base/lua-variables/#weaponname-g-button), [`MAC_10_G_BUTTON`](https://promacro.ru/en/knowledge-base/lua-variables/#weaponname-g-button), [`MP9_G_BUTTON`](https://promacro.ru/en/knowledge-base/lua-variables/#weaponname-g-button).

**Only in MAX** — [`CLICKER_ACTIVATION_BUTTON`](https://promacro.ru/en/knowledge-base/lua-variables/#clicker-activation-button), [`SG553_G_BUTTON`](https://promacro.ru/en/knowledge-base/lua-variables/#weaponname-g-button), [`AUG_G_BUTTON`](https://promacro.ru/en/knowledge-base/lua-variables/#weaponname-g-button), [`AWP_SSG_G_BUTTON`](https://promacro.ru/en/knowledge-base/lua-variables/#weaponname-g-button), [`MP7_G_BUTTON`](https://promacro.ru/en/knowledge-base/lua-variables/#weaponname-g-button), [`BIZON_G_BUTTON`](https://promacro.ru/en/knowledge-base/lua-variables/#weaponname-g-button), [`MP5SD_G_BUTTON`](https://promacro.ru/en/knowledge-base/lua-variables/#weaponname-g-button), [`P90_G_BUTTON`](https://promacro.ru/en/knowledge-base/lua-variables/#weaponname-g-button), [`UMP45_G_BUTTON`](https://promacro.ru/en/knowledge-base/lua-variables/#weaponname-g-button), [`CLICKER_G_BUTTON`](https://promacro.ru/en/knowledge-base/lua-variables/#clicker-g-button).

<aside class="note note--warning" aria-label="Important"><strong>Important</strong> G HUB Lua scripting supports only some Logitech keyboards with programmable G keys. Before buying a keyboard for this feature, ask Logitech Support to confirm that the specific model <strong>works with the Logitech Lua API</strong>.</aside>

## DPI and overall mouse sensitivity
If the in-game sensitivity feels too high or too low, adjust your mouse DPI. The macros will still work the same way. Use our [DPI and eDPI calculator](https://promacro.ru/en/instructions/dpi-calculator/) to find the DPI you need.

## Free CS2 macros
Trying out macros for the first time? Free macros for CS2 are collected on a separate page: **[download the free MP7 macros for CS2](https://promacro.ru/en/free-macros/#cs2)**.
