Tactics
Smarter unit AI: all units focus ranged enemies first, short-range units never kite, ranged units fire-then-retreat, spread targeting, spacing, early fire, map clamp, friendly-fire avoidance, no coward penalty, 5x turn speed.Tactics
Makes TABS units fight smarter. Every feature is independent and configurable.
Features
- Focus ranged units — Ranged units have their targeting priority multiplied by 1.33, so every attacker on the field (melee, ranged, vanilla targeting included) prefers enemy ranged units first.
- Spread targeting — Melee units prefer enemies that fewer allies are already attacking.
- Spacing & obstacle avoidance — While approaching, units keep a small gap and sidestep around blockers; once engaged they close ranks and fight.
- Extended fire range — Ranged units open fire at 1.5x range but only stand still inside normal range.
- Tactical kiting — Ranged units (weapon range >= 10m, no melee sidearm) fire first, then retreat only while their weapon reloads and an enemy is within range:
- The flee trigger never exceeds the attack range, so units no longer run from enemies they cannot shoot
- Turn in place, then run to a validated safe spot (0.5x range behind them, ground-checked — no cliff dives)
- Turn back, wait 1s, hold the firing stance for 1.5s (covers attack windup), then re-judge
- Horses, raptors, chariots and their riders are completely unaffected
- Map bounds — Destinations are clamped inside the map circle (0.5m margin).
- Friendly-fire avoidance — Ranged units hold fire and strafe to a clear position when a friendly blocks the firing line.
- Spread rebalance — Added spread = 3 x (10 / weapon range) in quadrature: long-range units stay accurate, short-range throwers get a proper penalty.
- No coward penalty — The vanilla mechanic that makes shooters inaccurate with longer cooldown when enemies close in is removed.
- 5x turn speed — Units rotate five times faster (mounts and riders keep vanilla turning).
Install
- Install BepInExPack_TABS
- Install this mod with a mod manager, or drop the dll into
BepInEx/plugins/ - Launch the game
Config
After first launch: BepInEx/config/local.smarterai.cfg — every feature and number is tunable.
Changelog
2.1.0
- Initial release
- All units prioritize enemy ranged units (4x target priority)
- Ranged units fire before retreating; flee trigger capped at attack range
- Short-range units (weapon range < 10m) never kite
