Spinks 'unravelling' when he shot friend, court hears