Skip to content

Optimize bot grenade emergence point targeting - #2136

Open
sunzenshen wants to merge 1 commit into
NeotokyoRebuild:masterfrom
sunzenshen:bot-grenade-emergence-optimization
Open

Optimize bot grenade emergence point targeting#2136
sunzenshen wants to merge 1 commit into
NeotokyoRebuild:masterfrom
sunzenshen:bot-grenade-emergence-optimization

Conversation

@sunzenshen

Copy link
Copy Markdown
Contributor

Description

Replaces expensive route modeling for emergence route with simpler distance-based PVS search based on previously existing SDK example CFindClosestPotentiallyVisibleAreaToPos. Also applied grenade throw cooldown timers uniformly to avoid recalculating grenade throw scenario immediately after a dispatcher rejection.

Toolchain

  • Windows MSVC VS2022

Linked Issues

@sunzenshen
sunzenshen requested a review from a team September 14, 2026 06:30
@sunzenshen sunzenshen added the Bots Related to bot players label Sep 14, 2026
@Rainyan
Rainyan self-requested a review September 14, 2026 16:30
bool CNEOBot::IsThrowLineClear(const Vector& from, const Vector& to) const
{
trace_t trace;
NextBotTraceFilterIgnoreActors filter(NULL, COLLISION_GROUP_NONE);

@Rainyan Rainyan Sep 14, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: would it be more appropriate to use COLLISION_GROUP_PROJECTILE, since that seems to be what the NT frag/smoke/det as setting their collisiongroup as? Or perhaps I'm misunderstanding how this trace filter works. Or perhaps the TraceLine mask already takes care of that(?)

I could be completely off so this is more of a question than a change suggestion per se.

@Rainyan
Rainyan requested a review from a team September 14, 2026 16:34
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.

2 participants