You can't really do it based on height, but you can easily check for their downward momentum.
In pseudo-code, it would sound a bit like this:
Hook PlayerThink, with player:
Check if player meets the conditions to be affected by our changes (playing as the right character, etc.)
If not defined...