Sbox Tool Auto, an addon for SandboxPlus
Similar to gmod_tool_auto
, this adds a concommand sbox_tool_auto
(also bound to "attack3") which cycles the toolgun between appropriate-to-target-entity tools.
For example, middle clicking a Wire Button entity will select the Wire Button tool, then Wiring tool, then Debugger. Middle clicking props opens the Constraint Tool, and then Physgun.
It should generically work for any entity named "ent_something" if its corresponding tool is named "tool_something".
Alternatively, entities can add the following Property to declare their desired tool(s):
public string[] SboxToolAutoTools => new string[] { "tool_constraint" };