Skip to content

Bots retreat from excessively close enemies - #2122

Open
sunzenshen wants to merge 1 commit into
NeotokyoRebuild:masterfrom
sunzenshen:bot-retreat-if-too-close
Open

sunzenshen wants to merge 1 commit into
NeotokyoRebuild:masterfrom
sunzenshen:bot-retreat-if-too-close

Conversation

@sunzenshen

Copy link
Copy Markdown
Contributor

Description

Bots tend to struggle with aiming at extremely close enemies, so having bots retreat if they aren't advancing up to a cover area helps their survivability and targeting.

Toolchain

  • Windows MSVC VS2022

@sunzenshen sunzenshen added the Bots Related to bot players label Sep 10, 2026
@sunzenshen
sunzenshen requested a review from a team September 10, 2026 04:36
@sunzenshen

Copy link
Copy Markdown
Contributor Author

To test, enable buddha and move closer to the enemy until they back away from you. sv_neo_bot_attack_too_close_retreat_ratio to adjust the ratio applied to the optimal engagement distance constants for weapons.

@sunzenshen
sunzenshen marked this pull request as draft September 10, 2026 04:48
@sunzenshen
sunzenshen removed the request for review from a team September 10, 2026 04:48
@sunzenshen
sunzenshen force-pushed the bot-retreat-if-too-close branch from cfafe50 to 1ec717e Compare September 10, 2026 05:19
@sunzenshen
sunzenshen marked this pull request as ready for review September 10, 2026 05:23
@sunzenshen
sunzenshen requested a review from a team September 10, 2026 05:23
@sunzenshen
sunzenshen force-pushed the bot-retreat-if-too-close branch from 1ec717e to 853b45b Compare September 12, 2026 06:43
@sunzenshen
sunzenshen force-pushed the bot-retreat-if-too-close branch from 853b45b to ee64286 Compare September 12, 2026 23:16
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.

1 participant