If taken to court, they would work out the liability percentages. Eg person parked illegally 30% fault and other guy 70% fault. No one is 100% fully responsible in this case, they are both at fault.
This is just what i have been told by my girlfriend who's a lawyer what would happen.