Skip to content

Bots message their commander when leaving the squad#1943

Merged
sunzenshen merged 1 commit into
NeotokyoRebuild:masterfrom
sunzenshen:bot-cmd-msg-leaving-squad
Jul 12, 2026
Merged

Bots message their commander when leaving the squad#1943
sunzenshen merged 1 commit into
NeotokyoRebuild:masterfrom
sunzenshen:bot-cmd-msg-leaving-squad

Conversation

@sunzenshen

Copy link
Copy Markdown
Contributor

Description

Bots message commander about more state changes:

  • Notify when leaving the squad
  • Notify when joining another player's squad
  • Notify when changing squad star (alpha, bravo, etc)

Toolchain

  • Windows MSVC VS2022

Linked Issues

@sunzenshen
sunzenshen requested review from a team and AdamTadeusz April 12, 2026 19:33
@sunzenshen

sunzenshen commented Apr 12, 2026

Copy link
Copy Markdown
Contributor Author

Demo:

bot-cmd-msg-leaving-squad.mp4

Helpful script to prevent bots from running everywhere when testing squad disconnects:

sv_neo_preround_freeze_time 2; mp_chattime 2;
sv_neo_bot_cmdr_enable 1;
sv_neo_bot_cmdr_debug_pause_uncommanded 1;
neo_ctg_round_timelimit 99;

To test bots notifying that they are joining another player's squad, one can use bot_mimic 1 to have bots press the use key on another bot.

@sunzenshen sunzenshen added the Bots Related to bot players label Apr 12, 2026
@sunzenshen
sunzenshen force-pushed the bot-cmd-msg-leaving-squad branch from 497b8fe to 629163c Compare May 28, 2026 01:27
@sunzenshen
sunzenshen force-pushed the bot-cmd-msg-leaving-squad branch 2 times, most recently from 3b0e28a to e55fd78 Compare June 12, 2026 01:38
@sunzenshen
sunzenshen force-pushed the bot-cmd-msg-leaving-squad branch from e55fd78 to a53f59e Compare June 18, 2026 04:27
@sunzenshen
sunzenshen force-pushed the bot-cmd-msg-leaving-squad branch 2 times, most recently from 44d8357 to 59f8446 Compare July 2, 2026 03:56
@AdamTadeusz

Copy link
Copy Markdown
Contributor

I think this definitely could be improved a bit. Not sure if the chat is the right place for this information (though many games do this), and I'm not confident that replacing the squad name with the commander's name is a good way to differentiate the bot joining the squad the local player is in from the bot joining some other squad.

The arma series does the same thing you're doing here, it will also highlight messages that are relevant to the local player with an inverted colour scheme to separate them from chatter that's relevant to other squad members or chatter that's relevant to the whole squad
ingame_16x10
I think this could be an interesting avenue of investigation, but probably for another PR

@AdamTadeusz
AdamTadeusz requested a review from a team July 9, 2026 10:33
Also notify when changing squad star (alpha, bravo, etc)
@sunzenshen
sunzenshen force-pushed the bot-cmd-msg-leaving-squad branch from 59f8446 to 376c255 Compare July 10, 2026 03:45
@sunzenshen
sunzenshen merged commit b1bc25b into NeotokyoRebuild:master Jul 12, 2026
7 checks passed
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