Files
tbd-station-14/Content.Client/Weapons/Ranged/Commands/ShowSpreadCommand.cs
Kyle Tyo 9d22f6147c Command resolve killing, LEC conversions, and general cleanup. (#38338)
* i'm just gonna put this here.

* I'm just gonna do it.

* Update ShowHTNCommand.cs

* I feel dumb.

* may as well with this too.

* this does in fact not work

* :/
2025-06-17 20:08:12 +02:00

19 lines
564 B
C#

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