wm jitter fix thanks 62#7828

This commit is contained in:
1darky 2022-02-20 02:13:52 +07:00
parent d70675c683
commit 0d2717458b

View File

@ -799,15 +799,15 @@ function SWEP:DrawCustomModel(wm,origin,angle)
if !boneindex then continue end
bpos, bang = vm:GetBonePosition(boneindex)
-- bpos, bang = vm:GetBonePosition(boneindex)
if bpos == vm:GetPos() then
-- if bpos == vm:GetPos() then
local bonemat = vm:GetBoneMatrix(boneindex)
if bonemat then
bpos = bonemat:GetTranslation()
bang = bonemat:GetAngles()
end
end
-- end
if custompos and (!self.MirrorVMWM or (self.MirrorVMWM and k.Model:GetModel() == self.ViewModel) ) then
bpos = origin