My guess is that he was planning on bullrushing the cop and then running. He knew once they saw the gun that he would be going back to prison.
///////////////////////////////////////////////////
How dare you bring common sense to an ignorance festival?
You need to go into to court and tell them all what the suspect was thinking and planning, bramps. Set everyone straight.
Report back.