Files
Delta-v/Content.Client/Weapons/Ranged/Commands/ShowSpreadCommand.cs
T
Kyle Tyo 965ec9269d 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-08-07 19:16:35 +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)));
}
}