Initial commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
ENT.Type = "anim"
|
||||
ENT.Base = "base_entity"
|
||||
ENT.PrintName = "SammyServers Textscreen"
|
||||
ENT.Author = "SammyServers"
|
||||
ENT.Spawnable = false
|
||||
ENT.AdminSpawnable = false
|
||||
ENT.RenderGroup = RENDERGROUP_TRANSLUCENT
|
||||
|
||||
function ENT:SetupDataTables()
|
||||
self:NetworkVar("Bool", 0, "IsPersisted")
|
||||
end
|
||||
|
||||
local function textScreenCanTool(ply, trace, tool)
|
||||
-- only allow textscreen, remover, and permaprops tool
|
||||
if IsValid(trace.Entity) and trace.Entity:GetClass() == "sammyservers_textscreen" and tool ~= "textscreen" and tool ~= "remover" and tool ~= "permaprops" then
|
||||
return false
|
||||
end
|
||||
end
|
||||
hook.Add("CanTool", "3D2DTextScreensPreventTools", textScreenCanTool)
|
||||
Reference in New Issue
Block a user