aboutsummaryrefslogtreecommitdiff
path: root/docs/tomes
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-11-26 01:51:34 +0300
committerValentin Popov <valentin@popov.link>2026-11-26 01:51:34 +0300
commit19278662be83d3e0db1b88d1fad664000c646afc (patch)
treeff4d791933915d4c9007edc5f94e89cb151c09ca /docs/tomes
parent65ec4949e90fa140d68563df7a38d08d9a1d49b0 (diff)
downloadfparkan-19278662be83d3e0db1b88d1fad664000c646afc.tar.xz
fparkan-19278662be83d3e0db1b88d1fad664000c646afc.zip
fix(behavior): finish attacks against depleted targets
Static buildings remain in the world after Control marks their depletion. Attack used to wait for removal and kept selecting the exhausted building. Share the native missing/depleted/zero-position completion condition between the order queue and firing selection. Remove a finished final Attack even when no successor was queued, while keeping handle generations distinct. Validation: unchanged x86 Behavior/Control DLL functions for target state and the early Attack tick; queue tests; licensed stock raid regression, which first exposed reacquisition after depletion and now reaches ShutDown without further shots. Workspace fmt/check/tests, release build, and all 29 stock 900-second reports pass. Windowed mission 19 completed Attack, two retreat Go orders and ShutDown with the hero at the stock start. Four incidental interior shots during window activation returned no damage result; the bunker still had its full root amount before the raid. Native oracle lookup, state proxy and position resolver are host fixtures; this does not establish full original mission chronology or movement parity. Windowed retreat is slower than the report run: the temporary motion controller and waypoint time loss remain G8 work. Aiming and destruction FX are unchanged and still approximate.
Diffstat (limited to 'docs/tomes')
-rw-r--r--docs/tomes/06-behavior.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/tomes/06-behavior.md b/docs/tomes/06-behavior.md
index 9db5e2a8..38775e05 100644
--- a/docs/tomes/06-behavior.md
+++ b/docs/tomes/06-behavior.md
@@ -2948,6 +2948,22 @@ FParkan допускает шаг активного заказа тем же т
алгоритме. Эти наблюдения описывают исполнение FParkan. Совпадение времени
боя с оригиналом проверяется отдельно, при одинаковом старте и условиях запуска.
+### Завершение приказа атаки
+
+В каждом такте Attack проверяет, доступна ли цель. Если lookup больше не
+находит объект, состояние цели несёт маркер истощения `0xfffe` или запрос
+позиции возвращает служебный нулевой вектор, задача заканчивается и освобождает
+очередь. Статическое строение при этом может оставаться в мире: его стадия
+разрушения и время существования модели обрабатываются отдельно.
+
+FParkan использует эту проверку перед выбором цели огня и при переходе к
+следующему приказу. Так варбот штатного рейда `CAMPAIGN.04/Mission.02` после
+истощения бункера может исполнить Go для отхода и последующий ShutDown.
+Если следующих приказов нет, завершённый Attack снимается. Условие проверяет
+полный handle с поколением, чтобы состояние прежней машины в том же слоте
+не завершило атаку на новую. Лог `script_attack_finished` отмечает переход;
+наведение, движение и анимации выключения ещё требуют отдельной доводки.
+
### Оборона в одиночных миссиях
В «Двух крепостях» герой начинает со своей базой. Исходный сценарий