SwiftlyS2

CGameTrace

Struct CGameTrace

Namespace: SwiftlyS2.Shared.Natives

Assembly: SwiftlyS2.CS2.dll

public struct CGameTrace

Inherited Members

Fields

Body

public void* Body
Field Value

BodyTransform

public CTransform BodyTransform
Field Value

Contents

public ulong Contents
Field Value

EndPos

public Vector EndPos
Field Value

ExactHitPoint

public bool ExactHitPoint
Field Value

Fraction

public float Fraction
Field Value

HitBox

public CHitBoxTrace* HitBox
Field Value

HitNormal

public Vector HitNormal
Field Value

HitOffset

public float HitOffset
Field Value

HitPoint

public Vector HitPoint
Field Value

HitboxBoneIndex

public short HitboxBoneIndex
Field Value

RayType

public RayType_t RayType
Field Value

Shape

public void* Shape
Field Value

ShapeAttributes

public RnCollisionAttr_t ShapeAttributes
Field Value

StartInSolid

public bool StartInSolid
Field Value

StartPos

public Vector StartPos
Field Value

SurfaceProperties

public CPhysSurfacePropertiesTrace* SurfaceProperties
Field Value

Triangle

public int Triangle
Field Value

pEntity

public void* pEntity
Field Value

Properties

DidHit

public readonly bool DidHit { get; }
Property Value

Direction

public readonly Vector Direction { get; }
Property Value

Distance

public readonly float Distance { get; }
Property Value

Entity

public readonly CEntityInstance Entity { get; }
Property Value

Methods

HitEntity<T>(out T)

public readonly bool HitEntity<T>(out T entity) where T : class, ISchemaClass<T>
Parameters
  • entity T
Returns
Type Parameters
  • T

HitEntity<T>()

public readonly bool HitEntity<T>() where T : class, ISchemaClass<T>
Returns
Type Parameters
  • T

HitEntityByDesignerName<T>(string, out T, NameMatchType)

public readonly bool HitEntityByDesignerName<T>(string designerName, out T outEntity, NameMatchType matchType = NameMatchType.StartsWith) where T : class, ISchemaClass<T>
Parameters
Returns
Type Parameters
  • T

HitEntityByDesignerName<T>(string, NameMatchType)

public readonly bool HitEntityByDesignerName<T>(string designerName, NameMatchType matchType = NameMatchType.StartsWith) where T : class, ISchemaClass<T>
Parameters
Returns
Type Parameters
  • T

HitPlayer(out IPlayer?)

public readonly bool HitPlayer(out IPlayer? player)
Parameters
Returns

HitPlayer()

public readonly bool HitPlayer()
Returns

On this page