1
0
mirror of https://github.com/metrostroi-repo/MetrostroiAddon.git synced 2026-05-02 00:42:29 +00:00

ClientsideModel FIX

This commit is contained in:
Hellss
2022-08-14 15:47:21 +03:00
parent d17cb74904
commit 61e01659a2
16 changed files with 160 additions and 85 deletions

View File

@@ -99,9 +99,11 @@ function ENT:Think()
end
if self.Left then pos = pos*Vector(1,-1,1) end
if self.Left and self.ModelProp.rotate then ang = ang-Angle(0,180,0) end
self.Model:SetParent(self)
self.Model:SetPos(self:LocalToWorld(pos))
self.Model:SetAngles(self:LocalToWorldAngles(ang))
if IsValid(self.Model) then
self.Model:SetParent(self)
self.Model:SetPos(self:LocalToWorld(pos))
self.Model:SetAngles(self:LocalToWorldAngles(ang))
end
end
return true
end