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

25 lines
715 B
Lua

WireToolSetup.setCategory( "Physics" )
WireToolSetup.open( "gimbal", "Gimbal (Facer)", "gmod_wire_gimbal", nil, "Gimbals" )
if CLIENT then
language.Add( "tool.wire_gimbal.name", "Gimbal Tool (Wire)" )
language.Add( "tool.wire_gimbal.desc", "Spawns a Gimbal (Facer)" )
TOOL.Information = {
{ name = "left", text = "Create/Update Gimbal" },
{ name = "reload", text = "Copy model" },
}
end
WireToolSetup.BaseLang()
WireToolSetup.SetupMax( 8 )
-- Uses default WireToolObj:MakeEnt's WireLib.MakeWireEnt function
TOOL.ClientConVar = {
model = "models/props_c17/canister01a.mdl",
}
TOOL.ReloadSetsModel = true
function TOOL.BuildCPanel(panel)
ModelPlug_AddToCPanel(panel, "Gimbal", "wire_gimbal", true)
end