Enable sub-stepping dynamicly

Hi,
There are some moments in my game where enemy can throw my FPP Character on ragdoll. Unfortunatelly when there is framerate drop my simulation looks really bad.

I am trying to avoid substepping to gain some frames on CPU but can I dynamicly enable substepping in this one specific situation?