If a car is half way out of the space and another car comes along and hits it whose at fault?

Believe it or not, the one who hits the car under Texas law will be at fault. It's call failed to control speed. Now if it's in a public parking lot, many times the oficer will advise you to settle it in court because of the location on the accident!