feat(SNNBot): fire bullets every tick at fixed power
Fire during WAITING phase using FIRE_POWER constant (matches error signal's bullet speed calculation). Always shooting — fire timing optimization is out of scope for this map.
This commit is contained in:
@@ -455,6 +455,7 @@ method run*(bot: SNNBot) =
|
|||||||
|
|
||||||
of WAITING:
|
of WAITING:
|
||||||
aimTo(bot.targetAngle, gunDir)
|
aimTo(bot.targetAngle, gunDir)
|
||||||
|
discard setFire(FIRE_POWER)
|
||||||
let err = abs(normalizeRelativeAngle(bot.targetAngle - gunDir))
|
let err = abs(normalizeRelativeAngle(bot.targetAngle - gunDir))
|
||||||
if err < AIM_TOL:
|
if err < AIM_TOL:
|
||||||
bot.phase = EVALUATE
|
bot.phase = EVALUATE
|
||||||
|
|||||||
Reference in New Issue
Block a user