> For the complete documentation index, see [llms.txt](https://docs.akiraghost.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.akiraghost.com/product-guides/akira-jni/features/combat/backtrack.md). Agents can also search and read this documentation through its [MCP server](https://docs.akiraghost.com/~gitbook/mcp).

# Backtrack

Hits enemies at their recent past positions by buffering their movement history, turning network latency into a combat advantage.

The *Backtrack* module holds a short history of where enemies have been and lets your attacks land on those older positions. From other players' perspectives, hits connect in situations where you appear to be slightly out of reach. A three-tier UI — Easy, Smart, and Advanced — lets you choose between presets, minimal knobs, or full control.

## Backtrack Tier

Selects the UI complexity level; switching tiers shows and hides different setting groups below. Defaults to **Smart**.

* **Easy** — shows a single preset picker. All other knobs are hidden and handled automatically.
* **Smart** — shows a minimal set of settings. Akira automatically picks between Freeze and Lag-Comp Exploit based on combat state.
* **Advanced** — exposes all settings for full manual control.

### Humanization Strength

How much irregular timing is folded into Backtrack's decisions, from `0` to `100%` (default `50%`). Higher values make the pattern less mechanically uniform.

### Backtrack Easy Preset

In Easy tier, selects a pre-configured profile (default **Default**). Each preset adjusts delay, flush limits, and hit caps internally.

* **Conservative** — short buffer, low hit cap. The most cautious profile.
* **Default** — balanced for typical PvP.
* **Aggressive** — longer buffer, higher hit cap. Maximum advantage.

## Targeting and timing

These settings decide which enemies get backtracked and how far into the past your hits reach.

* **Velocity Priority** — scores nearby enemies by how fast they are moving, giving priority to targets whose velocity puts them outside your reach without buffering. Available in all tiers, on by default.
* **Backtrack Delay** — **Lag-Comp Exploit** mode: how many milliseconds of position history to buffer, from `50` to `300 ms` (default `200 ms`). Smart and Advanced tiers.
* **Backtrack Max Packets** — the maximum number of old position snapshots kept in memory, from `1` to `20` (default `20`). Advanced tier.
* **Smart Target Threshold** — when the number of simultaneous enemies exceeds this value, Smart switches from Freeze to Lag-Comp Exploit, from `1` to `6 targets` (default `2`). Smart and Advanced tiers.
* **Smart Attack Freq Threshold** — if your sustained attack rate exceeds this frequency, Smart promotes from Freeze to Lag-Comp Exploit, from `0.5` to `10.0 attacks/sec` (default `2.0`). Smart and Advanced tiers.
* **Max Rewound Hits** — disables Backtrack after this many back-to-back hits land against an enemy's buffered position (where the buffered position differed from their real position by more than half a block), from `1` to `15 hits` (default `5`). The streak resets on a normal hit, a target change, or a server correction. Easy preset overrides: Conservative `3`, Default `5`, Aggressive `8`. Smart and Advanced tiers.

### Smart Flush Triggers

In Smart and Advanced tiers, selects which dynamic conditions immediately release the buffered positions back to real time. Additional flush triggers that are always active regardless of this setting are not listed here. By default only **Advancing velocity** is checked.

* **Advancing velocity** — an enemy is closing on you faster than a comfortable threshold
* **Local player hurt** — you take damage

## Advanced controls

Exposed only in Advanced tier.

* **Backtrack Mode** — the backtracking strategy (default **Lag-Comp Exploit**; Smart tier picks one automatically). **Freeze** holds the targeted enemy's incoming position updates when you attack, so your hit registers where they were; single target, best for 1v1. **Lag-Comp Exploit** holds incoming enemy position packets so your client sees the enemy in the past, and inflates your reported ping to match so the server's lag compensation accepts your hit against that old position; rolling, smart-trigger only, multi-target.
* **Freeze Duration** — **Freeze** mode only: how long the target's incoming position updates are held before they are released, from `50` to `5000 ms` (default `500 ms`). Long freezes are very visible: the enemy stands still and then snaps. (In **Lag-Comp Exploit** mode, **Backtrack Delay** is shown here instead.)
* **Cooldown** — after Backtrack deactivates, how many seconds must pass before it can engage again, from `0.0` to `5.0 sec` (default `0.0`).
* **Target Distance** — the block band within which Backtrack engages, from `0.5` to `10.0 blocks` (default `1.0 - 4.0`).
* **Disable On Hit** — immediately releases buffered positions and deactivates Backtrack when you take damage. On by default.

## Visual indicators

**Show Server Pos** renders a box at the server's last-known position of the target (on by default). In **Freeze** mode it appears only while you're actively backtracking a hit; in **Lag-Comp Exploit** mode it draws at the delayed enemy position for every nearby tracked enemy. When it is on:

* **Server Pos Color** — the color of the box outline (default red). It supports a multi-stop gradient along the box.
* **Box Line Width** — how thick the box lines are drawn, from `1.0` to `5.0` (default `2.0`).
* **Filled Box** — draws a semi-transparent fill inside the box in addition to the outline (off by default). When on, **Filled Box Color** sets its color (default red), including a gradient.
* **Box Rotation** — rotates the box to match the enemy's body rotation. Off by default.

**Show Timer** gives Backtrack a row in the Timers HUD element showing how long until it can engage again, with a color picker for the row.

{% hint style="success" %}
**Recommended:** Smart tier is the best starting point. It automatically chooses between single-target and rolling approaches based on how many enemies you are fighting, without requiring you to tune the internal parameters yourself.
{% endhint %}
