Skip to content

Bots move to vantage point to throw grenade#1811

Open
sunzenshen wants to merge 1 commit intoNeotokyoRebuild:masterfrom
sunzenshen:bot-grenade-vantage-positioning
Open

Bots move to vantage point to throw grenade#1811
sunzenshen wants to merge 1 commit intoNeotokyoRebuild:masterfrom
sunzenshen:bot-grenade-vantage-positioning

Conversation

@sunzenshen
Copy link
Contributor

Description

Previously for simplicity of the initial grenade throwing PR, bots would directly chase a threat's last known position in their attempt to peek out at the threat area. This PR introduces vantage point search logic to find a position that can see the threat's last known location, with more sophisticated search criteria. For example, bots can now side step to peek at the threat area rather than running directly at the threat area and being subsequently too close to throw their grenade anyway.

Toolchain

  • Windows MSVC VS2022

@sunzenshen sunzenshen added the Bots Related to bot players label Mar 10, 2026
@sunzenshen sunzenshen requested a review from a team March 10, 2026 05:08
@sunzenshen
Copy link
Contributor Author

Sample test script to initiate TDM mode while enabling a debug overlay for grenade decisions:

sv_neo_gamemode_enforcement 3; 
sv_neo_gamemode_single 0; 
neo_vote_game_mode 0; 
mp_restartgame 1; 
sv_neo_bot_grenade_debug_behavior 1;
Screenshot 2026-03-09 213747

This PR adds another overlay color where green is the vantage point chosen by the bot to peek out at the known threat area.

Previous colors include:
red - the bot is thinking of tossing a grenade at a given target's last known position
grey - the bot is thinking of throwing a smoke grenade (difficult to catch since this logic is simpler and faster to deploy)
yellow - a guess of where a threat could emerge from
orange - the chosen intended grenade target area

@sunzenshen sunzenshen force-pushed the bot-grenade-vantage-positioning branch from 44bd6c2 to 9f252dc Compare March 13, 2026 03:32
@sunzenshen sunzenshen force-pushed the bot-grenade-vantage-positioning branch from 9f252dc to 729fb9f Compare March 21, 2026 01:39
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