Weapon Float Zones, how to?

How should I go about making weapon float zones? What hooks to use etc.

Don’t know what a float zone is? It’s how the weapon sways, and aims, without moving your screen, take a look in this video:

Maybe GetViewModelPosition will do the trick. e.g have DesiredPos and DesiredAng variables re-calculated every time you move physically in the world or move your screen. Then, in the hook, move the current pos and ang towards the desired pos and ang smoothly.

or CalcView + vm_angles + vm_origin