Play animation based on fall distance

So I want to make my character end his fall in 2 ways: a hard end if the distance is higher than some value, and a soft end if the distance is lower than that value. I already made a state machine with basic transitions but I don’t know how to write that kind of condition. So how do I do that?

falling damage should be based on change in velocity rather than distance or air time, because you could fall a long distance onto something that absorbs that fall, or fall onto a ramp that redirects your velocity, or you could be launched up to a high platform, etc…

its not the fall that hurts, its the sudden stop:

Thanks, this hepled.