Skip to content

TriggerBot

Jesewe edited this page Jun 5, 2026 · 1 revision

The TriggerBot fires automatically when your crosshair is over a valid enemy. It reads entity team and health directly from CS2's memory and applies weapon-aware delays to simulate realistic reaction time.

How It Works

While the trigger key is held (or toggled on), VioletWing checks the game's fire logic data on every loop tick (~1 ms). If an enemy is under the crosshair — alive, on the opposing team, not dormant — the bot fires a left click after a randomized delay drawn from your weapon class's configured range.

Weapon type is detected automatically from memory, so delay profiles switch as you pick up different guns.

Activation Modes

Hold mode (default) — The bot fires only while you hold the trigger key. Release it and it stops immediately.

Toggle mode — Press the trigger key once to activate, press again to deactivate. A beep confirms the state:

  • High tone (1000 Hz) — active
  • Low tone (500 Hz) — inactive

Trigger Keys

Configure in the Trigger tab or set Trigger.TriggerKey in config.json. Supported values:

  • x — X key (default)
  • c — C key
  • mouse4 — Mouse side button 1
  • mouse5 — Mouse side button 2
  • mouse3 — Middle mouse button

Weapon Delay Profiles

Each weapon class has its own delay profile. All values are in seconds.

Pistols — ShotDelay 0.02–0.04 s, PostShotDelay 0.02 s

Rifles — ShotDelay 0.01–0.03 s, PostShotDelay 0.02 s

Snipers — ShotDelay 0.05–0.10 s, PostShotDelay 0.50 s

SMGs — ShotDelay 0.01–0.02 s, PostShotDelay 0.05 s

Heavy — ShotDelay 0.03–0.05 s, PostShotDelay 0.20 s

ShotDelayMin / ShotDelayMax — The bot waits a random duration in this range before clicking. Randomization prevents a perfectly mechanical pattern.

PostShotDelay — After firing, the bot pauses this long before checking again. Particularly important for snipers to prevent rapid double-clicks.

Attack on Teammates

By default, TriggerBot skips teammates. Enable Attack on Teammates to remove this restriction — useful in deathmatch servers with friendly fire on.

Configuration Reference

"Trigger": {
  "TriggerKey": "x",
  "ToggleMode": false,
  "AttackOnTeammates": false,
  "WeaponSettings": {
    "Pistols":  { "ShotDelayMin": 0.02, "ShotDelayMax": 0.04, "PostShotDelay": 0.02 },
    "Rifles":   { "ShotDelayMin": 0.01, "ShotDelayMax": 0.03, "PostShotDelay": 0.02 },
    "Snipers":  { "ShotDelayMin": 0.05, "ShotDelayMax": 0.10, "PostShotDelay": 0.50 },
    "SMGs":     { "ShotDelayMin": 0.01, "ShotDelayMax": 0.02, "PostShotDelay": 0.05 },
    "Heavy":    { "ShotDelayMin": 0.03, "ShotDelayMax": 0.05, "PostShotDelay": 0.20 }
  }
}

Clone this wiki locally