Having a SWEP's walk sway OFF for ironsights

My SWEP will be broken forever if I can’t do this. With ironsights and the AR2 model, if you have walking sway while in the ironsights… well, you probably know what will happen. How do I fix it? (remove walk sway for ironsighst)

SWEP.SwayScale = 1
SWEP.BobScale = 1

Put these in your swep and muck around until you find the right values. If your swep is running off the default weapon base, that should help.