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

25 lines
868 B
Lua

WireToolSetup.setCategory( "Detection" )
WireToolSetup.open( "watersensor", "Water Sensor", "gmod_wire_watersensor", nil, "Water Sensors" )
if CLIENT then
language.Add( "Tool.wire_watersensor.name", "Water Sensor Tool (Wire)" )
language.Add( "Tool.wire_watersensor.desc", "Spawns a constant Water Sensor prop for use with the wire system." )
language.Add( "WireWatersensorTool_watersensor", "Water Sensor:" )
TOOL.Information = { { name = "left", text = "Create/Update " .. TOOL.Name } }
end
WireToolSetup.BaseLang()
WireToolSetup.SetupMax( 20 )
if SERVER then
ModelPlug_Register("WaterSensor")
end
TOOL.ClientConVar = {
model = "models/beer/wiremod/watersensor.mdl",
modelsize = "",
}
function TOOL.BuildCPanel(panel)
WireToolHelpers.MakeModelSizer(panel, "wire_watersensor_modelsize")
ModelPlug_AddToCPanel(panel, "WaterSensor", "wire_watersensor")
end