How to put away and take out weapons seamlessly?

I have seen quite of few games do this and I may have an idea of how to do it but, is the weapon rigged? is it just one fluid animation with the rigged weapon and the player?

Heres an example video