A man shot dead by police following an armed siege was today named locally as Alistair Bell.
The 42-year-old died this morning after officers returned fire at his terraced house in the Kirkheaton area of Huddersfield.
Neighbours said Bell was a loner who had a history of drug abuse.
The siege unfolded last night as the man opened fire on officers as they attempted to arrest him at around 10pm.
A male Pc in his 20s was hit by a bullet and suffered minor injuries when Bell took aim at uniformed officers from his doorstep in Cockley Hill Lane.
He then returned inside the property before continuing to fire at police.
Teams of armed officers then cordoned off the area and surrounded the "isolated" address.
A tense stand-off followed which ended at around 5.30am when the gunman opened fire again.
A spokesman for West Yorkshire police said: "We regret that the incident at the house did not conclude peacefully as we had hoped and can confirm that the man taken to hospital from the address has now died."
Neighbours said Bell lived alone and was unemployed.
Margaret Ainley, who lives on the road, said: "He was a bit of a troubled lad, there were problems with drugs I think.
"He never bothered me and would always wave if we crossed in the street.
"He didn't work mind, and lived in the house on his own. It's all a bit of a shock really.
"His car has been abandoned in a field nearby, I've no idea what it's doing there."
Another neighbour who lives opposite the house said the gunman was a "loner".
She said: "I'd gone to bed at about 9.30pm, I was lying there when I heard what I thought were shots being fired.
"I had no idea what it was at first so I went downstairs and I saw there were lots of police in the street.
"I heard one of the officers calling for back-up on the radio.
"Next minute an officer was at the door telling us to stay inside and not to worry.
"We knew it was serious when the police helicopter turned up and kept on shining its beam on to the house.
"I didn't get much sleep at all last night with all this going on. I didn't see any of the shots being fired as I kept my head down after hearing the first few.
"I've seen the man who lives in the house around quite a bit, he tended to keep himself to himself though and seemed a bit of a loner."
The investigation has now been referred to the Independent Police Complaints Commission (IPCC).
Police said they tried to resolve the situation peacefully although shots were "continually" fired at officers.
Officers initially attended the address to arrest Bell on suspicion of making threats towards another man at a nearby property earlier in the day, the spokesman added.
A police cordon remained at both ends of Cockley Hill Lane this morning.
A large number of police vehicles were parked at the bottom end of the road.
People at the cordon said they thought the incident took place in an end terrace house just out of view of the main street.
Those who were in the area at about 5.30am said they clearly heard a number of shots - possibly four.
A ambulance went up the hill almost immediately and did not return for about half an hour, they said.
A spokesman for the ambulance service said: "Yorkshire Ambulance Service received a call from West Yorkshire Police just after 2200 on Monday 27 December to alert them to a shooting incident in Huddersfield.
"As part of the normal response to this type of incident, Yorkshire Ambulance Service activated its Hazardous Area Response Team (HART) to appropriate rendezvous points and informed its senior management team.
"At around 0530 this morning West Yorkshire Police requested attendance at the scene where the male assailant had been injured. The patient was treated at the scene and transferred to hospital where he later died."