A taser is basically ineffective when used on somebody high on PCP. If they're violent enough, you basically either need a tranq dart or a gun.
This isn't a software function, there are thousands of factors involved and a cop is walking in knowing a handful. I don't think you're being realistic.