I notice you have bools for crouching, crawling, running and flying, and then you’re converting them into a enumerated type.
Would it be better to just use the enumerated type for those states, and have one more, ‘unknown’ otherwise?
Rather than lots of bools, just have an enumerated variable for the player state.