Skip to content

Don't force crouch for bots when reloading#1679

Merged
sunzenshen merged 1 commit intoNeotokyoRebuild:masterfrom
sunzenshen:bot-jgr-crouch-relax
Feb 14, 2026
Merged

Don't force crouch for bots when reloading#1679
sunzenshen merged 1 commit intoNeotokyoRebuild:masterfrom
sunzenshen:bot-jgr-crouch-relax

Conversation

@sunzenshen
Copy link
Contributor

@sunzenshen sunzenshen commented Feb 14, 2026

Description

Don't force crouch anymore when reloading because:

  • The Juggernaut was always crouching, because their weapon uses 0/low Clip1() ammo to indicate a cooler state for the heat based weapon.
  • When retreating, it may be more important to be fast than than to be small, so crouching is now disabled in favor of walking/sprinting which are faster than crouch walking.

Toolchain

  • Windows MSVC VS2022
  • Linux GCC Distro Native [Specify distro + GCC version]
  • Linux GCC 10 Sniper 3.0

Don't force crouch anymore when reloading because:
- The Juggernaut was always crouching, because their weapon uses 0 primary ammo to indicate a completely cool state for the heat based weapon.
- When retreating, it may be more important to be fast than than to be small, so crouching is now disabled in favor of walking/sprinting which are faster than crouch walking.
@sunzenshen
Copy link
Contributor Author

Regarding: "The Juggernaut was always crouching, because their weapon uses 0 primary ammo to indicate a completely cool state for the heat based weapon."

I realize the PR as is partly papering over the issue of how the juggernaut bot may be attempting to reload all the time, but the crouching (when reloading) behavior was the more obvious behavior. For sake of keeping this PR small, I think it's fine to ignore the bots thinking the BALC is empty, as the existing special case for NEO_WEP_BALC in CNEOBotMainAction::FireWeaponAtEnemy allows the bot to continue firing the weapon even if the other code considers the weapon empty/low.

@sunzenshen sunzenshen requested a review from a team February 14, 2026 04:35
@sunzenshen sunzenshen changed the title Don't force crouch when reloading Don't force crouch for bots when reloading Feb 14, 2026
@sunzenshen sunzenshen added the Bots Related to bot players label Feb 14, 2026
@Rainyan Rainyan requested a review from a team February 14, 2026 13:10
@sunzenshen sunzenshen merged commit f96a9b8 into NeotokyoRebuild:master Feb 14, 2026
7 checks passed
@sunzenshen sunzenshen deleted the bot-jgr-crouch-relax branch February 15, 2026 07:57
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