lock uncrouch

Try a line trace coming out of the top of the head a few feet. Or a box collision over the head to detect if it overlaps with anything.