Class CMapCable
Namespace: ValveResourceFormat.IO.ContentFormats.ValveMap
Assembly: ValveResourceFormat.dll
A cable: a path the map compiler turns into a tube mesh, with the tube's shape and texturing carried on the path itself.
[CamelCaseProperties]
public class CMapCable : CMapPath, IDictionary<string, object?>, ICollection<KeyValuePair<string, object?>>, IEnumerable<KeyValuePair<string, object?>>, IDictionary, ICollection, IEnumerable, IEquatable<Element>Inheritance
object ← AttributeList ← Element ← MapNode ← BaseEntity ← CMapEntity ← CMapPath ← CMapCable
Implements
IDictionary<string, object?>, ICollection<KeyValuePair<string, object?>>, IEnumerable<KeyValuePair<string, object?>>, IDictionary, ICollection, IEnumerable, IEquatable<Element>
Inherited Members
CMapPath.InterpolationType, CMapPath.ClosedLoop, CMapPath.ParticleSnapshotSpacing, CMapEntity.HitNormal, CMapEntity.IsProceduralEntity, BaseEntity.RelayPlugData, BaseEntity.ConnectionsData, BaseEntity.EntityProperties, BaseEntity.WithProperty(string, string), BaseEntity.WithProperties(params (string name, string value)[]), BaseEntity.WithClassName(string), MapNode.Origin, MapNode.Angles, MapNode.Scales, MapNode.NodeID, MapNode.ReferenceID, MapNode.Children, MapNode.EditorOnly, MapNode.ForceHidden, MapNode.TransformLocked, MapNode.VariableTargetKeys, MapNode.VariableNames, Element.GetPropertyDerivedAttributeList(), Element.Get<T>(string), Element.GetArray<T>(string), Element.Contains(string), Element.ToString(), Element.ContainsKey(string), Element.Equals(Element?), Element.Equals(object?), Element.GetHashCode(), Element.ID, Element.Name, Element.ClassName, Element.Stub, Element.Owner, Element.this[string], AttributeList.Attribute_ChangeLock, AttributeList.Add(string, object?), AttributeList.GetPropertyDerivedAttributeList(), AttributeList.GetOverrideType(string), AttributeList.SetOverrideType(string, AttributeList.OverrideType?), AttributeList.Remove(string), AttributeList.TryGetValue(string, out object?), AttributeList.ContainsKey(string), AttributeList.RemoveAt(int), AttributeList.IndexOf(string), AttributeList.Clear(), AttributeList.GetAllAttributesForSerialization(), AttributeList.GetEnumerator(), AttributeList.OnPropertyChanged(string), AttributeList.OnCollectionChanged(NotifyCollectionChangedEventArgs), AttributeList.Owner, AttributeList.Keys, AttributeList.Values, AttributeList.this[string], AttributeList.this[int], AttributeList.Count, AttributeList.IsFixedSize, AttributeList.IsReadOnly, AttributeList.IsSynchronized, AttributeList.SyncRoot, AttributeList.PropertyChanged, AttributeList.CollectionChanged
Properties
CollisionEnabled
Whether a collision tube is generated.
public bool CollisionEnabled { get; set; }Property Value
FlipFaces
Whether the tube faces inwards.
public bool FlipFaces { get; set; }Property Value
LightingOriginName
Name of the entity the cable takes its lighting origin from.
public string LightingOriginName { get; set; }Property Value
MaterialName
Material of the tube mesh.
public string MaterialName { get; set; }Property Value
NumSides
Vertices around the tube.
public int NumSides { get; set; }Property Value
PhysicsSimplificationError
Simplification error allowed on the collision tube; 0 keeps every ring.
public float PhysicsSimplificationError { get; set; }Property Value
Radius
Tube radius, in units, before the per-node radius scale.
public float Radius { get; set; }Property Value
TessellationSpacing
Distance, in units, between the rings along the tube.
public float TessellationSpacing { get; set; }Property Value
TextureOffsetAlongPath
Texture offset along the path, in repeats.
public float TextureOffsetAlongPath { get; set; }Property Value
TextureOffsetCircumference
Texture offset around the tube, in repeats.
public float TextureOffsetCircumference { get; set; }Property Value
TextureOrientation
0 runs U along the path, 1 runs V along the path.
public int TextureOrientation { get; set; }Property Value
TextureRepeatsCircumference
Texture repeats around the tube.
public float TextureRepeatsCircumference { get; set; }Property Value
TextureScale
Units of path per texture repeat, divided by the texture's size in pixels.
public float TextureScale { get; set; }Property Value
TintColor
Colour a cable_dynamic renders with, written to its rendercolor key.
public Color TintColor { get; set; }Property Value
Color
VisOccluder
Whether the tube occludes visibility.
public bool VisOccluder { get; set; }
