Add cvar thresholds to gas overlays (#3835)

* Add cvar thresholds to gas overlays

Rather than having 256 thresholds it can now be reduced to whatever you want

* Address review

* Fix namespace
This commit is contained in:
metalgearsloth
2021-06-21 17:08:37 +10:00
committed by GitHub
parent 2ea5aec101
commit 4dc871b2be
2 changed files with 15 additions and 9 deletions

View File

@@ -221,6 +221,9 @@ namespace Content.Shared.CCVar
public static readonly CVarDef<float> NetGasOverlayTickRate =
CVarDef.Create("net.gasoverlaytickrate", 3.0f);
public static readonly CVarDef<int> GasOverlayThresholds =
CVarDef.Create("net.gasoverlaythresholds", 20);
/*
* Admin stuff
*/