IK bones using Layered blend per bone offset in animation

how do you attached your weapon to ikhandgun and moved it properly i want to make system like this for sniper rifle but cant find any tutorials about it everyone use handr