CGameTrace
Struct CGameTrace
Namespace: SwiftlyS2.Shared.Natives
Assembly: SwiftlyS2.CS2.dll
public struct CGameTraceInherited Members
- object.Equals(object?)
- object.Equals(object?, object?)
- object.GetHashCode()
- object.GetType()
- object.ReferenceEquals(object?, object?)
- object.ToString()
Fields
Body
public void* BodyField Value
BodyTransform
public CTransform BodyTransformField Value
Contents
public ulong ContentsField Value
EndPos
public Vector EndPosField Value
ExactHitPoint
public bool ExactHitPointField Value
Fraction
public float FractionField Value
HitBox
public CHitBoxTrace* HitBoxField Value
HitNormal
public Vector HitNormalField Value
HitOffset
public float HitOffsetField Value
HitPoint
public Vector HitPointField Value
HitboxBoneIndex
public short HitboxBoneIndexField Value
RayType
public RayType_t RayTypeField Value
Shape
public void* ShapeField Value
ShapeAttributes
public RnCollisionAttr_t ShapeAttributesField Value
StartInSolid
public bool StartInSolidField Value
StartPos
public Vector StartPosField Value
SurfaceProperties
public CPhysSurfacePropertiesTrace* SurfacePropertiesField Value
Triangle
public int TriangleField Value
pEntity
public void* pEntityField 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
- designerName string
- outEntity T
- matchType NameMatchType
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
- designerName string
- matchType NameMatchType
Returns
Type Parameters
- T
HitPlayer(out IPlayer?)
public readonly bool HitPlayer(out IPlayer? player)Parameters
- player IPlayer?
Returns
HitPlayer()
public readonly bool HitPlayer()Returns