Files
SirStone 2cc2a3bd87 fix(ModularBot): ram loop prevention, dead-target guards, cleaner logging
- 30-tick cooldown after ghost-stuck/timeout ram exit prevents re-entry loop
- enemy_tracker.update() skips dead bots to prevent same-tick scan resurrection
- TFIL graphics cleared when ramming is active movement
- [config] logs: white base with green-highlighted changes only
- [ram:enter] logs trigger reason and key values on false→true transition
- [death] and [target-invalid] logs retained for diagnostics
2026-09-20 20:44:45 +02:00

14 lines
441 B
Nim

## Head-on gun: predict enemy stays at current position.
## Simplest possible Gun implementation — baseline reference.
import gun_harness/gun_interface
type HeadOnGun* = object
debugGraphics*: bool
proc predict*(g: var HeadOnGun, state: WorldState, bulletSpeed: float): GunPrediction =
GunPrediction(x: state.enemyX, y: state.enemyY)
proc onResult*(g: var HeadOnGun, e: FeedbackEvent) =
discard # analytical gun — no learning