/Engine/Source/Runtime/Engine/Classes/GameFramework/CharacterMovementComponent.h
Adjusts velocity when walking so that Z velocity is zero. When bMaintainHorizontalGroundVelocity is false, also rescales the velocity vector to maintain the original magnitude, but in the horizontal direction.
virtual void MaintainHorizontalGroundVelocity()