Allow t-ray to penetrate carpets and puddles (#25276)
* Allow t-ray to penetrate carpets and puddles * handle edge cases
This commit is contained in:
@@ -45,5 +45,12 @@ namespace Content.Shared.SubFloor
|
||||
/// </summary>
|
||||
[DataField("visibleLayers")]
|
||||
public HashSet<Enum> VisibleLayers = new() { SubfloorLayers.FirstLayer };
|
||||
|
||||
/// <summary>
|
||||
/// This is used for storing the original draw depth of a t-ray revealed entity.
|
||||
/// e.g. when a t-ray revealed cable is drawn above a carpet.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public int? OriginalDrawDepth;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user