Add cvar to limit nearby command range (#5282)

* Add cvar to limit nearby command range

* Release notes

* More comment

* Fix release note

* Update Robust.Shared/CVars.cs
This commit is contained in:
DrSmugleaf
2024-07-06 20:54:34 -07:00
committed by GitHub
parent b7cc0ec629
commit 145c190800
3 changed files with 23 additions and 3 deletions

View File

@@ -1,5 +1,4 @@
using System;
using System.Runtime.InteropServices;
using System.Threading;
using Lidgren.Network;
using Robust.Shared.Audio;
@@ -1759,5 +1758,16 @@ namespace Robust.Shared
/// </summary>
public static readonly CVarDef<bool> LaunchContentBundle =
CVarDef.Create("launch.content_bundle", false, CVar.CLIENTONLY);
/*
* TOOLSHED
*/
/// <summary>
/// The max range that can be passed to the nearby toolshed command.
/// Any higher value will cause an exception.
/// </summary>
public static readonly CVarDef<int> ToolshedNearbyLimit =
CVarDef.Create("toolshed.nearby_limit", 200, CVar.SERVER | CVar.REPLICATED);
}
}