Ok, so I finally found the script for it. It's a flat 50% chance. According to the code, there's no additional factors (as of 20.7.1e)