UPDATE (6:05 a.m.): Kern County Sheriff's deputies have taken 36-year-old Mathew Barr into custody after an hours-long standoff in Pine Mountain Club.
KCSO says Barr was holding his ex-girlfriend in his home after she tried to get personal items and leave the home.
KCSO says Barr had two active warrants for his arrest - one a felony warrant and one a misdemeanor warrant.
This triggered a standoff that started about 2 p.m. Thursday.
KCSO attempted to get him out of the home, but he threatened deputies. At one point, as deputies got closer to the home, he sprayed them with a type of pepper spray.
KCSO SWAT and a Crisis Negotiation Team were called to the home to help get Barr out.
Eventually, SWAT made it into the home and found Barr in the basement. A K-9 helped take Barr into custody.
Barr suffered several dog bites.
KCSO says Barr was in possession of several knives and was wearing a military helmet and makeshift body armor.
======
A standoff was reported in Pine Mountain Club Thursday afternoon, according to KCSO.
A felony warrant suspect will not come out of their home. SWAT is on scene.
The standoff is happening at a home on Ashwood Court near Linden Drive.