Skip to content

Bots crouch when following pings if commander was crouched#1930

Open
sunzenshen wants to merge 1 commit intoNeotokyoRebuild:masterfrom
sunzenshen:bot-cmd-follow-crouch-modifier
Open

Bots crouch when following pings if commander was crouched#1930
sunzenshen wants to merge 1 commit intoNeotokyoRebuild:masterfrom
sunzenshen:bot-cmd-follow-crouch-modifier

Conversation

@sunzenshen
Copy link
Copy Markdown
Contributor

Description

Allow ordering bots to stay in a crouched position by having bots check the commander's crouch state when they receive a ping waypoint. If the commander was crouched, bots will stay crouched when moving to and waiting at the ping waypoint.

Toolchain

  • Windows MSVC VS2022

@sunzenshen sunzenshen requested a review from a team April 5, 2026 20:19
@sunzenshen
Copy link
Copy Markdown
Contributor Author

sunzenshen commented Apr 5, 2026

Demo:

bot-cmd-follow-waypoint-crouch.mp4

Testing Notes:

  • Remember to press use on bots to get them to follow you first
  • Stand while placing ping to have bots stand when following ping waypoints
  • Crouch while placing ping to have bots crouch when following ping waypoints

Potential Controversial Points:

  • This might cause an awkward situation when a commander is pinned down behind cover while crouching and if they wanted to have their followers run to a ping waypoint they would need to stand up. Otherwise the bots would move to the waypoint while crouch walking.
  • This could make bot jumps over obstacles less likely to succeed if the starting crouch interferes with the maximum jump height of the bot.
  • The initial PR proactively sets m_bCrouchWhileFollowingPing to false even if it's not needed, but maybe this is clearer for developers looking at member variables with a debugger.

@sunzenshen sunzenshen added the Bots Related to bot players label Apr 5, 2026
@AdamTadeusz
Copy link
Copy Markdown
Contributor

Whats the purpose of this? I can understand holding the walk key when placing a ping to have bots approach a location quietly, but I don't see the vision here

@sunzenshen
Copy link
Copy Markdown
Contributor Author

Whats the purpose of this? I can understand holding the walk key when placing a ping to have bots approach a location quietly, but I don't see the vision here

My thinking was that there's currently no way to order a bot to crouch behind some cover and wait in ambush, or to sit crouched from a sniping position.

After thinking about this PR some more, I wonder if it might be better to have the bots run as normal between waypoints but when they are not pressing any movement buttons, then they crouch. So the pattern of movement from a crouched position would be to standup to a running movement, arrive at the waypoint, and then crouch.

@sunzenshen
Copy link
Copy Markdown
Contributor Author

holding the walk key when placing a ping to have bots approach a location quietly

Decided to finally tackle this silent walk behavior in this PR: #1937

bot-cmd-walk-silent.mp4

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