Replace direct reads of true enemy velocity with an own-sight sample
estimator, add 2-5 s last-seen exit watching, and sample bounded aiming
bias once per shooting opportunity:
- Add the estimation section to tuning/ground-ai.jsonc (watchMinSec,
watchMaxSec, velSampleMinSpanSec, velStableSpanSec, velJumpResetMps,
baseAimSigmaM, leadErrorFrac, maxBiasM), validated in
ground-ai-tuning.ts and compiled into WTO_AI_EST_* constants.
- Add wto_ai_estimate_common.das:
- Maintain a 6-sample timestamped ring buffer from each bot's own
visual sightings; compute smoothed observed velocity and convergence
quality, dropping quality and re-seeding bias on sudden braking/turns
or target switches.
- On LOS loss from an active ground engagement, freeze watchPos at the
last-seen exit point, clear observed velocity, and draw one random
2-5 s watch duration; stationary overwatch/defend bots hold their
post while watching, whereas pushing/retreating bots keep moving
while keeping their turret on the exit.
- Compute lead from observed velocity and loaded-shell flight time,
sampling one bounded bias vector per shooting opportunity (target,
shot count, state, 12 m position cell) that narrows as observation
quality improves and still passes the single fire-permission gate.
Verified root and launcher type checks, isolated 2.61.0.58 build (25
ground AI modules packed), and clean in-engine daScript compilation/load
(wto_ai_runtime.das loaded in 184 ms, 0 compile errors). Live battle
acceptance deferred until the full pipeline is wired.