limit two bone ik overstretching

hey all,

I’m currently working on the IK system of our game. It’s all working perfectly, but I am implementing adjustments for when the character is running up or down hill.
One of the components I need is to prevent the IK system from over stretching, so that the leg’s can’t go full straight. I don’t want to do it with hip adjustments, just the foot closer to the hip.

In the following video from unreal engine, they show that the game paragon uses a system to limit the legs from going all the way to the IK position.

Also, I’m not a programmer, so solutions with blueprinting would be most suitable.