Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Homemade Suppressor's DISABLE_SIGHTS flag prevents aiming #22043
Relation of #22031
I have discovered the issue with the homemade suppressor's inability to steady aim and improve hit chance, however, I am uncertain of a proper implementation for a fix.
Effects of DISABLE_SIGHTS flag
If there are no sights attached along with the homemade suppressor, the weapon's sight dispersion is set to MAX_RECOIL, 3000.
Additionally, the weapon is set to have no sight speed modifier and no limit
Because of sight speed modifier being set to INT_MIN, aiming does not take place
Even if a sight speed modifier and a limit were set, aiming would still be pointless as the weapon's base dispersion is already at MAX_RECOIL.
It is quite late and I just can't seem to get a grip on a solution. I hope that the above evidence is correct and will assist in finding a solution.