Bots silent walk to ping waypoints if commander had +walk engaged#1937
Bots silent walk to ping waypoints if commander had +walk engaged#1937sunzenshen wants to merge 3 commits into
Conversation
|
Demo: bot-cmd-walk-silent.mp4(Needs to be unmuted to make any sense) Can collect bot followers in a normal match by pressing use on them. To test in peace, the following script may be useful: |
a425c79 to
182472a
Compare
142d39e to
36c4173
Compare
36c4173 to
52cb590
Compare
52cb590 to
7492056
Compare
7492056 to
168cb25
Compare
I like this idea enough that I went ahead and made a commit to make bots base their stealthiness on the commander's current behavior. I removed the mimicking of crouch and walk from the snake line leader to save cycles, since the behavior cascaded down from commanders to leaders to followers anyway. The main side effect is that bots will instantly crouch and walk based on their commander's current behavior, which could probably be detected by observant players. But for now I want to keep the code simple to preserve cycles instead of worrying about how to make the behavior less predictable. Also, at the risk of being too clever, I intentionally made the check such that even if you're standing still, by pressing the sprint key, you can urge your bot followers to follow a waypoint at a running pace. I also bundled in a check to match the commander's current crouch behavior. I think at this point if this PR goes in as is, we don't need #1930. My thinking is that just matching the commander's current crouch behavior is enough as it resolves this concern I had in that discussion:
In combination with #2000, bots would move at a faster pace when they start attacking the enemy or retreating from gunfire, so I don't think we need to worry about bots getting stuck crouch walking to their destination. Regarding:
This point I would prefer to discuss outside of this PR, because while the pointer to the commander is readily available, my impression is that it would take more calculations to figure out which friendly players are nearby to the bot. |
Description
Bots check the commander's walk state to determine if they should walk while following their commander or a waypoint ping
Toolchain