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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user