A former prison guard who was left with chemical burns, a punctured lung and stab wounds has told a court his life trajectory has plummeted.