Test this out, how does it do?

This commit is contained in:
Fesiug 2021-08-16 03:18:24 -04:00
parent dc5f123e6f
commit 97f0fa1f4b

View File

@ -422,10 +422,13 @@ function SWEP:TranslateFOV(fov)
if self:GetState() == ArcCW.STATE_SIGHTS then
local sgreloading = (self:GetShotgunReloading() == 2 or self:GetShotgunReloading() == 4)
fov = 75
local delta = self:GetSightDelta()
delta = math.pow(delta, 2)
fov = math.Clamp(( (75*(1-delta)) + (GetConVar("fov_desired"):GetInt()*delta) ), 75, 100)
app_vm = irons.ViewModelFOV or 45
div = irons.Magnification * ((sgreloading or self:GetReloadingREAL() - self.ReloadInSights_CloseIn > CurTime()) and self.ReloadInSights_FOVMult or 1)
div = math.max(div, 1)
div = (1 * (1-delta)) + div*delta
end
-- something about this doesn't work in multiplayer