Weapons/ToolGun/Toolgun.Effects.cs

Partial Toolgun class file that handles a simple visual firing-mode toggle. It flips an internal boolean and updates the weapon model renderer parameter "firing_mode" to 1 or 0 when SwitchToolMode is called.

public partial class Toolgun : ScreenWeapon
{
	bool ping = false;
	public void SwitchToolMode()
	{
		ping = !ping;
		WeaponModel?.Renderer?.Set( "firing_mode", ping ? 1 : 0 );
	}
}