Commit Graph
2 Commits
Author SHA1 Message Date
西风逍遥游 097444bfc2 fix(vehicle): RTS orders arrive and fire, weapons auto-reload, demo uses sprites + HUD
- kinematic RTS orders decelerate when turning/approaching so moveTo actually
  arrives inside arriveRadius instead of orbiting forever
- attack order now auto-fires auto-aim mounts within weapon range
  (attack_move keeps aim-only behavior)
- weapon module auto-starts reload when mag empty, cooldown done, reserve left;
  events still emitted, game can override/cancel
- vehicle demo: real Kenney CC0 sprites (body rotates, turret rotates by
  mount yaw, destroyed greys out), readable ImGui HUD log, capture-mouse
  guard so clicks on HUD don't issue orders
- tests: weapon.fire.autoReloadOnEmpty; README + design doc updated
2026-08-23 20:32:43 +08:00
西风逍遥游 cf10c46bb5 feat(weapon): add generic weapon module (defs, entities, mounts, fire logic) 2026-08-23 18:30:52 +08:00