Files
crystall-punk-14/Content.Client/Weapons/Ranged/Commands/TetherGunCommand.cs

22 lines
712 B
C#
Raw Normal View History

using Content.Client.Weapons.Ranged.Systems;
2022-05-13 12:24:34 +10:00
using Robust.Shared.Console;
namespace Content.Client.Weapons.Ranged;
public sealed class TetherGunCommand : IConsoleCommand
{
public string Command => "tethergun";
public string Description => "Allows you to drag mobs around with your mouse.";
public string Help => $"{Command}";
public void Execute(IConsoleShell shell, string argStr, string[] args)
{
2022-05-13 18:59:12 +10:00
var system = IoCManager.Resolve<IEntitySystemManager>().GetEntitySystem<TetherGunSystem>();
system.Enabled ^= true;
if (system.Enabled)
shell.WriteLine("Tether gun toggled on");
else
shell.WriteLine("Tether gun toggled off");
2022-05-13 12:24:34 +10:00
}
}