Skip to content

Configurable bot cloak detection bonuses#1552

Merged
sunzenshen merged 3 commits intoNeotokyoRebuild:masterfrom
sunzenshen:bot-cloak-detection-cloak-disruption
Feb 1, 2026
Merged

Configurable bot cloak detection bonuses#1552
sunzenshen merged 3 commits intoNeotokyoRebuild:masterfrom
sunzenshen:bot-cloak-detection-cloak-disruption

Conversation

@sunzenshen
Copy link
Contributor

Description

  • Allows server operators to customize bot cloak detection rates.
  • Debug ConVar for watching bots as if they were cloaked all the time.
  • Also separates out the factor of cloak being turned on versus cloak being disrupted.
  • Bot observers are probably more forgiving about cloak disruption when target is firing unsuppressed weapons.

Toolchain

  • Windows MSVC VS2022

@sunzenshen
Copy link
Contributor Author

I added ConVars for detection bonus values and bot difficulty detection thresholds so that anyone else can watch a bot match and tweak detection factors live. That said, how detection events feel seems like a subjective opinion, but I hope that these numbers can start as a reasonable baseline.

My intention with the initially submitted values are based on these intended profiles for the difficulty settings:

  • Expert: Bots have slower reflexes but eventually zero in on you.
  • Hard: Will sometimes miss you in a lapse of attention but otherwise will eventually find you if you linger.
  • Normal: Bots are generally aware of standard ranges and movement, but if you don't aggro them, they sometimes will completely miss you or pass you by.
  • Easy: This about the point that bots are absentminded and really struggle to notice you if you aren't performing loud activities like shooting.

Helpful Testing Commands/Scripting:

Start TDM Mode on Engage

neo_vote_game_mode 0; mp_restartgame 1; 

Enable bots considering everyone as always cloaked, and some example tweaking commands:

sv_neo_bot_cloak_debug_perceive_always_on 1;

sv_neo_bot_cloak_detection_threshold_ratio_easy   0.65;
sv_neo_bot_cloak_detection_threshold_ratio_normal 0.70;
sv_neo_bot_cloak_detection_threshold_ratio_hard   0.75
sv_neo_bot_cloak_detection_threshold_ratio_expert 0.80;

sv_neo_bot_cloak_detection_bonus_scope_range 1;
sv_neo_bot_cloak_detection_bonus_shotgun_range 5;
sv_neo_bot_cloak_detection_bonus_melee_range 50;
sv_neo_bot_cloak_detection_bonus_disruption_effect 30;
sv_neo_bot_cloak_detection_bonus_assault_motion_vision 60;
sv_neo_bot_cloak_detection_bonus_non_support 1;

@sunzenshen sunzenshen requested a review from a team December 15, 2025 06:18
@sunzenshen sunzenshen added the Bots Related to bot players label Dec 15, 2025
@sunzenshen sunzenshen force-pushed the bot-cloak-detection-cloak-disruption branch 3 times, most recently from dab088d to e676970 Compare December 22, 2025 02:47
@AdamTadeusz AdamTadeusz requested a review from a team January 1, 2026 13:40
@sunzenshen sunzenshen force-pushed the bot-cloak-detection-cloak-disruption branch from e676970 to 5e08912 Compare January 5, 2026 04:11
@sunzenshen sunzenshen force-pushed the bot-cloak-detection-cloak-disruption branch from 5e08912 to e391950 Compare January 13, 2026 01:40
@sunzenshen sunzenshen force-pushed the bot-cloak-detection-cloak-disruption branch 2 times, most recently from 2ede16f to 8171a9f Compare January 23, 2026 05:00
@sunzenshen sunzenshen force-pushed the bot-cloak-detection-cloak-disruption branch 2 times, most recently from 0298299 to d3fed7b Compare January 31, 2026 04:12
@Rainyan
Copy link
Collaborator

Rainyan commented Feb 1, 2026

Left some notes but this LGTM

Allows server operators to customize bot cloak detection rates.

Debug ConVar for watching bots as if they were cloaked all the time.

Also separates out the factor of cloak being turned on versus cloak being disrupted.

Bot observers are probably more forgiving about cloak disruption when target is firing unsuppressed weapons.
@sunzenshen sunzenshen force-pushed the bot-cloak-detection-cloak-disruption branch from d3fed7b to 5ce03f9 Compare February 1, 2026 17:41
@Rainyan
Copy link
Collaborator

Rainyan commented Feb 1, 2026

@sunzenshen Btw, since we now treat warnings as errors in master, you might wanna rebase this on top of master to make sure it passes before merge. (I don't think it resets the reviews if you use the "Update branch" -> "Update with rebase" button in GitHub.)

@sunzenshen sunzenshen merged commit 3c7e128 into NeotokyoRebuild:master Feb 1, 2026
7 checks passed
@sunzenshen sunzenshen deleted the bot-cloak-detection-cloak-disruption branch February 1, 2026 18: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