Portal sprite & behavior tweaks (#19179)

* Portal repalette

* Portal traversal verb + anchoring

* map restriction

* optional max distance checks if we decide to have them later

* lower pointlight energy slightly hopefully makes it less garish
This commit is contained in:
Kara
2023-08-15 13:56:14 -07:00
committed by GitHub
parent 452f2112e8
commit 2e86f4c556
11 changed files with 106 additions and 18 deletions

View File

@@ -28,4 +28,23 @@ public sealed class PortalComponent : Component
/// </summary>
[DataField("maxRandomRadius")]
public float MaxRandomRadius = 7.0f;
/// <summary>
/// If false, this portal will fail to teleport and fizzle out if attempting to send an entity to a different map
/// </summary>
/// <remarks>
/// Shouldn't be able to teleport people to centcomm or the eshuttle from the station
/// </remarks>
[DataField("canTeleportToOtherMaps")]
public bool CanTeleportToOtherMaps = false;
/// <summary>
/// Maximum distance that portals can teleport to, in all cases. Mostly this matters for linked portals.
/// Null means no restriction on distance.
/// </summary>
/// <remarks>
/// Obviously this should strictly be larger than <see cref="MaxRandomRadius"/> (or null)
/// </remarks>
[DataField("maxTeleportRadius")]
public float? MaxTeleportRadius;
}