Move duplicate code to PM_PlayJumpingAnimation.