Skip to content

Commit

Permalink
Added: Ghost entity shared release
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdvideo1234 committed Jul 8, 2024
1 parent d405a75 commit f5ee272
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lua/autorun/trackassembly_init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 ------------

Expand Down
11 changes: 11 additions & 0 deletions lua/weapons/gmod_tool/stools/trackassembly.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit f5ee272

Please sign in to comment.