Ok… but… well…
you are feeding the yaw and the roll the same value. that’s already bound to go diagonally.
maybe that’s that needs to be addressed?
try unplugging Z and see what happens?
As far as what value z should have, camera z while aiming, plus iron sight offset
and Hand z when not