e2m ownership fix?

and legacy obj render inside setting fix
This commit is contained in:
shadowscion 2021-04-16 17:35:22 -05:00
parent 942c92d6b0
commit 5964bee761
3 changed files with 9 additions and 0 deletions

View File

@ -208,6 +208,7 @@ local function p2mCreate(context, pos, ang, count)
self:CPPISetOwner(context.player)
end
self:SetPlayer(context.player)
self:SetSolid(SOLID_NONE)
self:SetMoveType(MOVETYPE_NONE)
self:DrawShadow(false)

View File

@ -60,6 +60,13 @@ function ENT:Initialize()
self.prop2mesh_sync = true
end
function ENT:SetPlayer(pl)
self:SetVar("Founder", pl)
end
function ENT:GetPlayer()
return self:GetVar("Founder", NULL)
end
function ENT:Think()
if self.prop2mesh_upload_queue then

View File

@ -95,6 +95,7 @@ local function getLegacyParts(data)
part.objn = v.name or crc
part.vsmooth = tonumber(v.smooth)
part.vinvert = v.flip and 1 or nil
part.vinside = v.inv and 1 or nil
else
if v.holo then part.holo = v.mdl else part.prop = v.mdl end