Can zero pain be used in ARO even if the user of the program is not the target? That is, if an allied HI is the target of a hacking attack, and the enemy hacker is also in range of zero pain user, can zero pain be used to cancel the attack?
Zero Pain doesn't cancel the attack. It's a fancy reset. Here's the effect clause: "If the user wins with either Roll, the Comms Attack fails, the user does not have to make any Saving Rolls, and they avoid any Special Effects of the Attack." Note that it says "user" in reference to the user of Zero Pain.