Skip to content

Bot cloak detection aim bonus to cherrypick#1838

Draft
sunzenshen wants to merge 4 commits intoNeotokyoRebuild:masterfrom
sunzenshen:bot-cloak-detection-aim-bonus-to-cherrypick
Draft

Bot cloak detection aim bonus to cherrypick#1838
sunzenshen wants to merge 4 commits intoNeotokyoRebuild:masterfrom
sunzenshen:bot-cloak-detection-aim-bonus-to-cherrypick

Conversation

@sunzenshen
Copy link
Contributor

Description

Bots are able to see cloaked targets at a higher probability the closer the target is in the bot's center aim. Address situations where bots are aiming at a threat, but won't open fire because the cloak visibility calculations say the target is not visible.

Toolchain

  • Windows MSVC VS2022

@sunzenshen
Copy link
Contributor Author

Waiting on #1796 first to rebase on top of that.

Example testing scripts:

Setting up TDM:

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; 
sv_neo_preround_freeze_time 5;

Setting up the bots to treat each other as always cloaked, and sample tweak commands:

sv_neo_bot_cloak_debug_perceive_always_on 1;

sv_neo_bot_cloak_detection_aim_bonus_dot_threshold 0.3;

sv_neo_bot_cloak_detection_threshold_ratio_easy   0.35;
sv_neo_bot_cloak_detection_threshold_ratio_normal 0.40;
sv_neo_bot_cloak_detection_threshold_ratio_hard   0.45;
sv_neo_bot_cloak_detection_threshold_ratio_expert 0.50;

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 added the Bots Related to bot players label Mar 15, 2026
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