@@ -18,7 +18,7 @@ WireToolSetup.SetupMax(10)
1818
1919if SERVER then
2020 function TOOL :GetConVars ()
21- return self :GetClientNumber (" r" ), self :GetClientNumber (" g" ), self :GetClientNumber (" b" ), self :GetClientInfo (" texture" ), self :GetClientNumber (" fov" ), self :GetClientNumber (" distance" ), self :GetClientNumber (" brightness" )
21+ return self :GetClientNumber (" r" ), self :GetClientNumber (" g" ), self :GetClientNumber (" b" ), self :GetClientInfo (" texture" ), self :GetClientNumber (" fov" ), self :GetClientNumber (" distance" ), self :GetClientNumber (" brightness" ), self : GetClientNumber ( " on " ) ~= 0
2222 end
2323
2424 function TOOL :LeftClick_PostMake (ent , ply , trace )
@@ -108,6 +108,7 @@ TOOL.ClientConVar["fov"] = 90
108108TOOL .ClientConVar [" distance" ] = 1024
109109TOOL .ClientConVar [" brightness" ] = 4
110110TOOL .ClientConVar [" model" ] = " models/lamps/torch.mdl"
111+ TOOL .ClientConVar [" on" ] = 1
111112
112113function TOOL :RightClick (trace )
113114 if CLIENT then return true end
@@ -141,6 +142,10 @@ function TOOL.BuildCPanel(panel)
141142 combobox :AddChoice (" Rope" , " rope" )
142143 combobox :AddChoice (" Weld" , " weld" )
143144 combobox :AddChoice (" None" , " none" )
145+
146+ local startOn = panel :CheckBox (" Start On" , " wire_lamp_on" )
147+ startOn :SetTooltip (" If checked, the lamp will be on when spawned." )
148+
144149 panel :ColorPicker (" Color" , " wire_lamp_r" , " wire_lamp_g" , " wire_lamp_b" )
145150
146151 local matselect = panel :MatSelect (" wire_lamp_texture" , nil , true , 0.33 , 0.33 )
0 commit comments