HitBoxTrace
Struct HitBoxTrace
Namespace: SwiftlyS2.Shared.Trace
Assembly: SwiftlyS2.CS2.dll
public struct HitBoxTraceInherited Members
- object.Equals(object?)
- object.Equals(object?, object?)
- object.GetHashCode()
- object.GetType()
- object.ReferenceEquals(object?, object?)
- object.ToString()
Constructors
HitBoxTrace()
public HitBoxTrace()Properties
BoneName
The name of the bone that this hitbox is attached to.
public readonly string BoneName { get; }BoneNameHash
The hashed token of the bone name for faster lookup.
public readonly CUtlStringToken BoneNameHash { get; }CRC
The CRC checksum of the hitbox data.
public readonly uint CRC { get; }ForcedTransform
Indicates whether this hitbox has a forced transform applied.
public readonly bool ForcedTransform { get; }ForcedTransformObject
The forced transform object that defines additional positioning or rotation for this hitbox.
public readonly CTransform ForcedTransformObject { get; }GroupId
The hit group ID associated with this hitbox, determining damage behavior.
public readonly HitGroup_t GroupId { get; }HitBoxIndex
The index of this hitbox within the entity's hitbox list.
public readonly ushort HitBoxIndex { get; }MaxBounds
The maximum bounds of the hitbox in 3D space.
public readonly Vector MaxBounds { get; }MinBounds
The minimum bounds of the hitbox in 3D space.
public readonly Vector MinBounds { get; }Name
The name of the hitbox.
public readonly string Name { get; }RenderColor
The render color of the hitbox, typically used for debugging visualization.
public readonly Color RenderColor { get; }ShapeRadius
The radius of the shape used for this hitbox.
public readonly float ShapeRadius { get; }ShapeType
The type of shape used for this hitbox.
public readonly byte ShapeType { get; }SurfaceProperty
The surface property name associated with this hitbox.
public readonly string SurfaceProperty { get; }TranslationOnly
Indicates whether this hitbox uses only translation, without rotation.
public readonly bool TranslationOnly { get; }Methods
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()- string — The fully qualified type name.