Files

19 lines
564 B
C#
Raw Permalink Normal View History

2022-06-04 14:19:14 +10:00
using Content.Client.Weapons.Ranged.Systems;
using Robust.Shared.Console;
namespace Content.Client.Weapons.Ranged.Commands;
2022-06-04 14:19:14 +10:00
public sealed class ShowSpreadCommand : LocalizedEntityCommands
2022-06-04 14:19:14 +10:00
{
[Dependency] private readonly GunSystem _gunSystem = default!;
public override string Command => "showgunspread";
public override void Execute(IConsoleShell shell, string argStr, string[] args)
2022-06-04 14:19:14 +10:00
{
_gunSystem.SpreadOverlay ^= true;
2022-06-04 14:19:14 +10:00
shell.WriteLine(Loc.GetString($"cmd-showgunspread-status", ("status", _gunSystem.SpreadOverlay)));
2022-06-04 14:19:14 +10:00
}
}