Update cl_viewmodel.lua

This commit is contained in:
HouKyou 2025-01-12 20:22:24 +02:00 committed by GitHub
parent 3518bf7e4b
commit 7e8a3f4d45
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -841,7 +841,7 @@ function SWEP:PreDrawViewModel(vm)
end
cam.Start3D(EyePos(), EyeAngles(), self:QuickFOVix(coolFOV), nil, nil, nil, nil, 0.5, 1000)
cam.IgnoreZ(true)
render.DepthRange(0.0, 0.1)
self:DrawCustomModel(false)
self:DoLHIK()
@ -864,7 +864,7 @@ function SWEP:PostDrawViewModel()
render.SetBlend(1)
cam.End3D()
cam.Start3D(EyePos(), EyeAngles(), self:QuickFOVix(self.CurrentViewModelFOV or self.ViewModelFOV), nil, nil, nil, nil, 0.5, 1000)
cam.IgnoreZ(true)
render.DepthRange(0.0, 0.1)
if ArcCW.Overdraw then
ArcCW.Overdraw = false