Override "Wants To Crouch"

Hi, this was already asked in this thread, but the user ended up circumventing the issue by creating their own crouch functionality, which is what I’d like to avoid if at all possible.

The problem is that despite the state of my crouch button while underneath an object, if I release (or toggle) the crouch button at all, CharacterMovement’s bWantsToCrouch variable will continue to attempt to uncrouch the player at the next opportunity, so regardless of if I hold (or toggle) the crouch button again, the player will stand as soon as they’re out from underneath the object.

Is it possible to override bWantsToCrouch manually? If not, how would I alleviate this issue without rewriting the entire crouch function, or resorting to potentially inaccurate collision checks?