FP Weapons

How does call of duty do it? Multiple weapons on multiple FP meshes.

Is it done by “on press (insert number here) > Swap weapon mesh > apply corresponding animation to arm mesh”?

I have no idea!