SwiftlyS2

HitBoxTrace

Struct HitBoxTrace

Namespace: SwiftlyS2.Shared.Trace

Assembly: SwiftlyS2.CS2.dll

public struct HitBoxTrace

Inherited Members

Constructors

HitBoxTrace()

public HitBoxTrace()

Properties

BoneName

The name of the bone that this hitbox is attached to.

public readonly string BoneName { get; }
Property Value

BoneNameHash

The hashed token of the bone name for faster lookup.

public readonly CUtlStringToken BoneNameHash { get; }
Property Value

CRC

The CRC checksum of the hitbox data.

public readonly uint CRC { get; }
Property Value

ForcedTransform

Indicates whether this hitbox has a forced transform applied.

public readonly bool ForcedTransform { get; }
Property Value

ForcedTransformObject

The forced transform object that defines additional positioning or rotation for this hitbox.

public readonly CTransform ForcedTransformObject { get; }
Property Value

GroupId

The hit group ID associated with this hitbox, determining damage behavior.

public readonly HitGroup_t GroupId { get; }
Property Value

HitBoxIndex

The index of this hitbox within the entity's hitbox list.

public readonly ushort HitBoxIndex { get; }
Property Value

MaxBounds

The maximum bounds of the hitbox in 3D space.

public readonly Vector MaxBounds { get; }
Property Value

MinBounds

The minimum bounds of the hitbox in 3D space.

public readonly Vector MinBounds { get; }
Property Value

Name

The name of the hitbox.

public readonly string Name { get; }
Property Value

RenderColor

The render color of the hitbox, typically used for debugging visualization.

public readonly Color RenderColor { get; }
Property Value

ShapeRadius

The radius of the shape used for this hitbox.

public readonly float ShapeRadius { get; }
Property Value

ShapeType

The type of shape used for this hitbox.

public readonly byte ShapeType { get; }
Property Value

SurfaceProperty

The surface property name associated with this hitbox.

public readonly string SurfaceProperty { get; }
Property Value

TranslationOnly

Indicates whether this hitbox uses only translation, without rotation.

public readonly bool TranslationOnly { get; }
Property Value

Methods

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()
Returns
  • string — The fully qualified type name.

On this page