dobrograd-13-06-2022/garrysmod/addons/feature-wire/lua/wire/stools/dhdd.lua
Jonny_Bro (Nikita) e4d5311906 first commit
2023-11-16 15:01:19 +05:00

24 lines
964 B
Lua

WireToolSetup.setCategory( "Memory" )
WireToolSetup.open( "dhdd", "DHDD", "gmod_wire_dhdd", nil, "DHDDs" )
if CLIENT then
language.Add( "Tool.wire_dhdd.name", "DHDD Tool (Wire)" )
language.Add( "Tool.wire_dhdd.desc", "Spawns a dupeable hard drive gate for use with the wire system." )
TOOL.Information = { { name = "left", text = "Create/Update " .. TOOL.Name } }
language.Add( "Tool.wire_dhdd.weld", "Weld the DHDD." )
language.Add( "Tool.wire_dhdd.weldtoworld", "Weld the DHDD to the world." )
language.Add( "Tool.wire_dhdd.note", "NOTE: The DHDD only saves the first\n512^2 values to prevent\nmassive dupe files and lag." )
TOOL.ClientConVar["model"] = "models/jaanus/wiretool/wiretool_gate.mdl"
function TOOL.BuildCPanel( panel )
ModelPlug_AddToCPanel(panel, "gate", "wire_dhdd", nil, 4)
panel:Help("#Tool.wire_dhdd.note")
end
WireToolSetup.setToolMenuIcon( "icon16/database.png" )
end
WireToolSetup.BaseLang()
WireToolSetup.SetupMax( 20 )