FPS/RPG mechanics (similar to Stalker)

If weapon file only have a weapon mesh, without hands skeleton.
¿How will know where the gun has to be positioned when attached?

Thanks.