AI Refactored
AI Refactored is a high-performance AI overhaul for Escape From Tarkov. It replaces the default bot logic with realistic perception, modular behavior, and personality-driven decision-making. Fully compatible with SPT, FIKA Coop, and FIKA Headless Server.
Features
Realistic Perception
- Bots use line-of-sight, FOV, and lighting conditions to see enemies
- No wallhacks, ray-based vision only
- Flashbangs, flashlights, and darkness reduce visibility
- Hearing system reacts to gunshots, footsteps, and occluded sound
- Explosions and flashbangs cause temporary hearing loss
- Ear protection affects sound clarity and recovery
Modular AI Architecture
- Single
BotBrain
controller handles all AI systems - Systems tick at appropriate frequencies:
-Traditional Host: Vision at 30Hz, logic at 15Hz(out of combat) / 30hz (in combat)
-Headless Host: Vision 60hz, logic at 30hz (out of combat)/ 60hz (in combat)
(Tarkov's default logic tick rate is only 6.67Hz)
Personality System
- Each bot has a unique personality profile
- Traits influence reaction speed, cohesion, risk tolerance, retreat behavior, and extraction urgency
- Personalities include cautious, aggressive, team player, explorer, frenzied, and more
Squad Coordination
- Bots coordinate movement and extraction with their squad
- Group-wide mission sharing (loot, fallback, extract)
- Staggers movement offsets to prevent clumping
- Group retreat logic and panic signal propagation
Dynamic Mission System
- Bots dynamically choose between Loot, Fight, and Quest missions
- Missions use objective points from the map (e.g., loot containers, hotspots, exfil points)
- Squad members stagger positions and move as a group
- Retreat and extraction behavior adapts based on health and team status
Combat Enhancements
- Bots panic when suppressed, injured, or blinded
- Panic triggers fallback movement, voice lines, and danger zone broadcasting
- Suppression and flinching reduce aim accuracy and vision range
- Enemy visibility tracking by bone (head, torso, limbs)
- Composure system models fear and recovery over time
Realistic Looting
- Bots scan and prioritize nearby containers and corpses
- Uses line-of-sight and angle checks to simulate realistic vision
- Personality controls looting aggression and timing
- Includes value-based loot scanning and dynamic fallback
Door Interaction
- Bots detect closed doors and interact properly
- No phasing through locked or unopened doors
- Supports synced door state checks and fallback if door is blocked
Optimization
- Async personality initialization and group coordination
- Thread-safe logic for FIKA headless compatibility
- Tick-based scheduling to reduce CPU load
- No LINQ or Unity allocations in performance-critical paths
Compatibility
- SPT (Single Player Tarkov)
- FIKA Coop
- FIKA Headless Server