# Easy Red 2: Battle Hardened

> A tactical AI realism overhaul for Easy Red 2 powered by H.A.R.M.—giving 140+ bots human sight cones, footstep acoustics, morale shock, and self-preservation without aimbots.

- URL: https://sudravirodhin.com/projects/easy-red-2-battle-hardened/
- Category: game-mods
- Status: Mod
- Stack: C#, BepInEx 6, Unity IL2CPP, Photon PUN2
- Tags: game-ai, easy-red-2, modding
- Repository: https://github.com/sudravirodhin/easy-red-2-ai

## Realism Without Laser-Bots

Most FPS AI mods crank reaction speeds and accuracy until bots feel like 360-degree radar turrets. **Battle Hardened** starts from the opposite premise: **if bots obey the same sensory limits humans do, tactics naturally emerge.**

In vanilla *Easy Red 2*, once a single squadmate fires, awareness leaps to 300 meters and bots skip field-of-view checks entirely—even inside buttoned-up tanks. Think of it like giving every soldier in a platoon a shared psychic satellite feed.

## How H.A.R.M. Fixes It

**H.A.R.M. (*Heuristic Action & Risk Model*)** replaces scattered movement overrides with one unified three-tier decision loop across infantry, armor, and aircraft:

- **Humanized Perception:** Smooth "Squint" sight cones (`<= 12m` close awareness narrowing to `±32°` at range), stance stealth (`150m` standing / `80m` crouched / `40m` prone), and player-parity acoustics for footsteps, gunshots, and tank engines damped by rain and gunfire.
- **Radio-Honest Danger Stamps:** Friendly casualties stamp directional danger impulses onto a shared battlefield map—stopping doorway conga-line deaths immediately—while distant platoons only learn what crosses live field radios.
- **Command Succession & Self-Preservation:** Bots drag wounded buddies out of killzones before bandaging, duck behind the leeward side of walls, experience decaying morale shock when a squad leader drops, and promote surviving veterans mid-fight.
- **60 FPS Budget & Host-Only Co-op:** Runs bit-packed zero-allocation stimulus structs with automatic frame-time backoff, and works seamlessly when only the Co-op host installs the mod.
