Complex sentence: During a later visit, Garibaldi walked into Bester's quarters with a Phased plasma gun, intending to shoot him, but discovered that Bester had done some further programming.
Split into simpler sentences: During a later visit, Garibaldi walked into Bester's quarters with a PPG. He was going to shoot Bester, but then found out that Bester had done some further programming.