Half-Life 2/Episodes Weapon bobbing

Hi all, I just registered and I want to ask - how to make weapons in Garry’s Mod move like Half-Life 2/Episodes when i turn left/right (weapons move with inertion).
(not Quake/Half-Life View bobbing addon from Workshop)