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

@@ -238,6 +238,7 @@ function ENT:Think()
-- --ent.Spawned = true
--end)
self.ClientModels[i] = ClientsideModel(self.Pool[i].model,RENDERGROUP_OPAQUE)
if not IsValid(self.ClientModels[i]) then continue end
self.ClientModels[i]:SetPos(self.Pool[i].pos)
self.ClientModels[i]:SetAngles(self.Pool[i].ang)
self.ClientModels[i]:SetSkin(math.floor(self.ClientModels[i]:SkinCount()*self.Pool[i].skin))
@@ -292,6 +293,7 @@ function ENT:Think()
-- --ent.Spawned = true
--end)
local ent= ClientsideModel(self.Pool[i].model,RENDERGROUP_OPAQUE)
if not IsValid(ent) then break end
ent:SetPos(pos)
ent:SetSkin(math.floor(ent:SkinCount()*self.Pool[i].skin))
ent:SetModelScale(self.Pool[i].scale,0)