A man who fired a shotgun during a siege has been convicted of possessing a firearm with intent to endanger life.
Officers said they thought they were going to die when Daniel Hannam fired the weapon from a house in Castle Cary, Somerset, on 23 January.
At Bristol Crown Court, Hannam, from Gillingham, Dorset, was cleared of two counts of attempted murder, but found guilty of the firearms offence.
The 33-year-old will be sentenced at a later date.
During the three week trial, Hannam admitted shooting the illegal weapon from an upstairs window at his former girlfriend's home in the market town of Castle Cary in the early hours.
Two officers were at the front door of the end-of-terrace property at the time and returned fire.
Hannam insisted he was aiming the shotgun into the air and was not trying to kill or injure police.
A jury unanimously acquitted Hannam of attempting to murder the officers.
He had admitted charges including attempted kidnap, making use of a firearm with intent to resist arrest, possessing a firearm with intent to cause fear of violence, and attempted burglary.
Speaking after the verdict, Assistant Chief Constable Nikki Watson said she was "relieved no-one was injured".
"I was shocked when I viewed the officers' body worn video footage and saw photos of the damage caused to a police vehicle," she said
"They are a testament to the danger these officers were facing in the line of duty."