Complete the single-vehicle tactical loop for reload survival, stalemate
breaking, and vehicle damage repair:
- Add cover, reload, hull-angle, stalemate, reposition, and repair-cover
parameters to tuning/ground-ai.jsonc, validated in ground-ai-tuning.ts
and compiled into WTO_AI_SM_* constants.
- Add wto_ai_cover_common.das: continuously record the last hard-concealed
hull position before peeking, and evaluate 9 cover candidates around
the tank (with enemy-clearance scoring when searching for a repair
cover).
- Add wto_ai_tactics_actions_common.das and wire wto_ai_tactics_common.das:
- Damage retreat & repair (plan 6.1): when gun is inoperable while
mobile, retreat to an enemy-free cover and send
EventRepairSystemRequestRepair(repair=true) once safe; when engine or
tracks immobilize the chassis, halt in place, request repair, and keep
gun self-defense active; stay halted while
repair_system_remaining_repair_time > 0.
- 3-way reload action: pull back into remembered/nearby cover (up to 6 s
budget, uninterrupted by flashes/new orders) -> zigzag advance at
+/-18 deg when pushing without cover -> angle hull front +/-15 deg
when side-exposed >30 deg with pivot room.
- Stalemate reposition: confirm outgoing effective damage via
EventUnitDamage (uint(hpFixed) < uint(prevHpFixed)) and enemy death;
trigger lateral reposition after 2 no-effect shots, 2 no-shot halts,
or 12 s cumulative halt time, unlocking short-halt only after 20 m
progress or reaching the new position.
- Split periodic telemetry out of wto_ai_runtime.das into
wto_ai_diag_common.das to keep every module under 300 lines.
Verified root and launcher type checks, isolated 2.61.0.58 build (24
ground AI modules packed), and clean in-engine daScript compilation/load
(wto_ai_runtime.das loaded in 228 ms, 0 compile errors). Live battle
acceptance deferred until the full pipeline is wired.