1
0
mirror of https://github.com/CFC-Servers/chucks_weaponry_2.0.git synced 2025-03-04 03:13:12 -05:00

Add files via upload (#13)

This commit is contained in:
GenericRicochetPlayer 2024-03-24 11:23:16 -04:00 committed by GitHub
parent f49cf70e10
commit 52d74a5acf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -521,13 +521,13 @@ function SWEP:AdjustMouseSensitivity()
sensitivity = sensitivity * mod
elseif self.dt.State == CW_AIMING then
--if we're aiming and our aiming position is that of the sight we have installed - decrease our mouse sensitivity
--if (self.OverrideAimMouseSens and self.AimPos == self.ActualSightPos) and (self.dt.M203Active and CustomizableWeaponry.grenadeTypes:canUseProperSights(self.Grenade40MM) or not self.dt.M203Active) then
-- if we're aiming and our aiming position is that of the sight we have installed - decrease our mouse sensitivity
if (self.OverrideAimMouseSens and self.AimPos == self.ActualSightPos) and (self.dt.M203Active and CustomizableWeaponry.grenadeTypes:canUseProperSights(self.Grenade40MM) or not self.dt.M203Active) then
--return self.OvearrideAimMouseSens * mod
--sensitivity = self.OverrideAimMouseSens - mod * self.sensitivityAimContribution
--else
sensitivity = self.OverrideAimMouseSens - mod * self.sensitivityAimContribution
else
sensitivity = sensitivity * mod
--end
end
--return math.Clamp(1 - self:getZoomAmount() / 100, 0.1, 1) * mod
sensitivity = sensitivity - self:getZoomAmount() / 100
@ -544,4 +544,4 @@ function SWEP:AdjustMouseSensitivity()
sensitivity = sensitivity * freeAimMod * spreadRel
return math.Clamp(sensitivity, self.minSensitivity * spreadRel, self.maxSensitivity) --1 * self.OverallMouseSens
end
end