A man killed in a weekend shooting in York was the father of a 5-year-old boy, according to friends.