* 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 * :/
19 lines
564 B
C#
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)));
|
|
}
|
|
}
|