minor fixes of weird bugs

This commit is contained in:
Darsu 2025-01-30 23:54:19 +07:00
parent 0ce40c2d7f
commit 23293c884b
2 changed files with 9 additions and 2 deletions

View File

@ -169,4 +169,8 @@ else
function ENT:Draw()
self:DrawModel()
end
function ENT:DrawTranslucent(flags) -- doesn't draw wtf? or this is something with my addons
self:Draw(flags) -- fix from wiki anyway
end
end

View File

@ -64,9 +64,12 @@ function SWEP:DoTPIK()
if !IsValid(wm) then return end
local everythingfucked = false
if wm:GetPos():IsZero() and self.wmnormalpos then -- VERY STUPID BUT SetupModel() on wm makes wm go to 0 0 0 BUT ONLY ON CERTAIN PLAYERMODELS???????
wm:SetPos(self.wmnormalpos)
wm:SetAngles(self.wmnormalang)
wm:SetAngles(self.wmnormalang)
everythingfucked = true
else
self.wmnormalpos = wm:GetPos()
self.wmnormalang = wm:GetAngles()
@ -134,7 +137,7 @@ function SWEP:DoTPIK()
wm:InvalidateBoneCache()
end
self:DoRHIK(true)
if !everythingfucked then self:DoRHIK(true) end
self:SetFiremodePose(true)