diff --git a/lua/autorun/trackassembly_init.lua b/lua/autorun/trackassembly_init.lua index 87d5d450..54a6cac7 100644 --- a/lua/autorun/trackassembly_init.lua +++ b/lua/autorun/trackassembly_init.lua @@ -86,7 +86,7 @@ local asmlib = trackasmlib; if(not asmlib) then -- Module present ------------ CONFIGURE ASMLIB ------------ asmlib.InitBase("track","assembly") -asmlib.SetOpVar("TOOL_VERSION","8.797") +asmlib.SetOpVar("TOOL_VERSION","8.798") ------------ CONFIGURE GLOBAL INIT OPVARS ------------ diff --git a/lua/weapons/gmod_tool/stools/trackassembly.lua b/lua/weapons/gmod_tool/stools/trackassembly.lua index 031daf66..b5984c10 100644 --- a/lua/weapons/gmod_tool/stools/trackassembly.lua +++ b/lua/weapons/gmod_tool/stools/trackassembly.lua @@ -1584,6 +1584,17 @@ function TOOL:Reload(stTrace) end; return false end +function TOOL:ReleaseGhostEntity() + if(CLIENT) then + asmlib.ClearGhosts() + else + local user = self:GetOwner() + if(not asmlib.IsPlayer(user)) then return end + netStart(gsLibName.."SendDeleteGhosts") + netSend(user) + end +end + function TOOL:Holster() if(CLIENT) then return end local user = self:GetOwner()