TTT Weapons with zoom, sensitivity problem

Hello, I have a problem with TTT.

I was modifying my weapons to give it a bit more realism, but I realized that when zooming the sensitivity is increased and is quite annoying.

I’ve been looking in many places and I have not found anything similar, so I open this topic.

I wanted to know if there is a way to remove that increase of sensitivity when using zoom or just so.

Your sensitivity isn’t being changed at all when you zoom in, you’re just zoomed in.

If you want a “fix” look at weapon_zm_rifle.lua and reuse that code in your other weapons. Specifically this part


   function SWEP:AdjustMouseSensitivity()
      return (self:GetIronsights() and 0.2) or nil
   end

Thank you very much, It works perfectly by changing 0.02 to 0.05

It was also useful for eliminating increased sensitivity to m16 when someone zoomed in