Skip to content

Fix bot thrashing when attack destination has no upcoming cover - #2113

Merged
sunzenshen merged 1 commit into
NeotokyoRebuild:masterfrom
sunzenshen:bot-attack-fix-no-cover-between-dest-causes-thrash
Sep 5, 2026
Merged

Fix bot thrashing when attack destination has no upcoming cover#2113
sunzenshen merged 1 commit into
NeotokyoRebuild:masterfrom
sunzenshen:bot-attack-fix-no-cover-between-dest-causes-thrash

Conversation

@sunzenshen

Copy link
Copy Markdown
Contributor

Description

Bots could enter a behavior transition trashing state where they attempt to plot an attack path towards a destination but then bounce in and out of the attack behavior transition, because there was no cover between the bot and that location. This would especially happen if the bot's destination was in view. This change causes the bots to fall back to chasing the enemy if there is no suitable cover candidate.

Toolchain

  • Windows MSVC VS2022

@sunzenshen sunzenshen added the Bots Related to bot players label Sep 3, 2026
@sunzenshen
sunzenshen requested a review from a team September 3, 2026 04:46
@AdamTadeusz
AdamTadeusz requested a review from a team September 4, 2026 21:19
@sunzenshen
sunzenshen force-pushed the bot-attack-fix-no-cover-between-dest-causes-thrash branch from 825c836 to 4e4f660 Compare September 5, 2026 01:07
@sunmachine

Copy link
Copy Markdown
Contributor

This one's gonna' take me a bit more time, likely tomorrow AM. 😭

@sunmachine
sunmachine self-requested a review September 5, 2026 02:04
@sunzenshen
sunzenshen merged commit c6ff080 into NeotokyoRebuild:master Sep 5, 2026
7 checks passed
@sunzenshen
sunzenshen deleted the bot-attack-fix-no-cover-between-dest-causes-thrash branch September 6, 2026 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bots Related to bot players

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants