After merging a entity’s model with an NPC to give it the appearance of the entity’s model, I ran into an issue with the old model. If I’m in thirdperson, the old model appears no matter what. Now, if you’re blending models on players and have this same issue, it can be fixed by calling SetBlend in both GM.PrePlayerDraw and GM.PostPlayerDraw. For entities, however, I’m not sure how to achieve this.
function ENT:Initialize() self:SetSolid(SOLID_NONE) self:SetMoveType(MOVETYPE_NONE) self:AddEffects(EF_BONEMERGE) local pPlayer = self:GetOwner() if pPlayer:IsValid() then self:SetRenderMode(pPlayer:GetRenderMode()) pPlayer:SetRenderMode(RENDERMODE_NONE) end end if CLIENT then local SetBlend = render.SetBlend function ENT:Draw() local owner = self:GetOwner() if IsValid(owner) and (owner:Health() > 0) then local col = owner.OldColor or owner:GetColor() self:SetColor(col) owner:RemoveAllDecals() if owner:GetRenderMode() ~= RENDERMODE_NONE then owner:SetRenderMode(RENDERMODE_NONE) end SetBlend(0.5) --if not MySelf:InThirdPerson() then self:DrawModel() --end SetBlend(1) end end end