dayz-ai-patternslisted
Install: claude install-skill willy92wins/DayZ-Modding-Knowledge-Pack
# DayZ Expansion AI Patterns (eAI)
> Material source: salutesh/DayZ-Expansion-Scripts @ 8f75d554fda209b257c00deb8f01c181e67c980a
> Research: dual-arm (Claude + Codex), adversarially verified. All path:line cites are confirmed.
## Overview
12 patterns covering the irreducible AI architecture of Expansion eAI:
| ID | Pattern | File reference |
|------|------------------------------------------|-----------------------------------------|
| PC-5 | Dormant state: DisableSimulation via FSM | `eaistate_dormant.c:1-17` |
| PC-11| Fighting FSM: hysteresis + guard clauses | `eaistate_fighting.c:18-38` |
| PC-13| FSM loaded from XML + sub-FSM composition| `eAIBase.c:661-666`, `Master.xml:3-8` |
| PC-9a| FOV pre-filter before LOS raycast | `eAIBase.c:8156-8168` |
| PC-9b| LOS throttle adaptive to update interval | `eAIBase.c:8089-8097` |
| PC-14| Threat cache with jitter 250-300 ms | `eAITargetInformationState.c:58-67` |
| PC-7 | Staggered target scan + jitter 0.1-0.2 s | `eAIBase.c:2962-2966` |
| PC-2 | Backoff 5x: no players in visibility | `ExpansionWorld.c:247-250` |
| PC-15| Pathfinding: recalc thresholds + cost | `ExpansionPathHandler.c:581-592` |
| PC-16| Path filters: navmesh costs (door=10000) | `expansionpathfilters.c:131-147` |
| PC-17| Group targets: distribution by tracking | `eAIGr