How to make items socketed to the characters body react to the characters movement, I saw it in the latest hitman game with the holstered back weapons

How to make items socketed to the characters body react to the characters movement, I saw it in the latest hitman game with the holstered back weapons.