mirror of
https://github.com/HaodongMo/ARC-9.git
synced 2025-03-04 03:02:58 -05:00
minor fixes of weird bugs
This commit is contained in:
parent
0ce40c2d7f
commit
23293c884b
@ -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
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user