2022-06-04 14:19:14 +10:00
|
|
|
using Content.Client.Weapons.Ranged.Systems;
|
|
|
|
|
using Robust.Shared.Console;
|
|
|
|
|
|
2025-06-17 14:08:12 -04:00
|
|
|
namespace Content.Client.Weapons.Ranged.Commands;
|
2022-06-04 14:19:14 +10:00
|
|
|
|
2025-06-17 14:08:12 -04:00
|
|
|
public sealed class ShowSpreadCommand : LocalizedEntityCommands
|
2022-06-04 14:19:14 +10:00
|
|
|
{
|
2025-06-17 14:08:12 -04: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
|
|
|
{
|
2025-06-17 14:08:12 -04:00
|
|
|
_gunSystem.SpreadOverlay ^= true;
|
2022-06-04 14:19:14 +10:00
|
|
|
|
2025-06-17 14:08:12 -04:00
|
|
|
shell.WriteLine(Loc.GetString($"cmd-showgunspread-status", ("status", _gunSystem.SpreadOverlay)));
|
2022-06-04 14:19:14 +10:00
|
|
|
}
|
|
|
|
|
}
|