2022-06-04 14:19:14 +10:00
|
|
|
using Content.Client.Weapons.Ranged.Systems;
|
|
|
|
|
using Robust.Shared.Console;
|
|
|
|
|
|
|
|
|
|
namespace Content.Client.Weapons.Ranged;
|
|
|
|
|
|
|
|
|
|
public sealed class ShowSpreadCommand : IConsoleCommand
|
|
|
|
|
{
|
2022-09-29 15:51:59 +10:00
|
|
|
public string Command => "showgunspread";
|
2022-06-04 14:19:14 +10:00
|
|
|
public string Description => $"Shows gun spread overlay for debugging";
|
|
|
|
|
public string Help => $"{Command}";
|
|
|
|
|
public void Execute(IConsoleShell shell, string argStr, string[] args)
|
|
|
|
|
{
|
|
|
|
|
var system = IoCManager.Resolve<IEntitySystemManager>().GetEntitySystem<GunSystem>();
|
|
|
|
|
system.SpreadOverlay ^= true;
|
|
|
|
|
|
|
|
|
|
shell.WriteLine($"Set spread overlay to {system.SpreadOverlay}");
|
|
|
|
|
}
|
|
|
|
|
}
|