Court documents reveal new details into shooting of DPS trooper