CSmartPropOperation_TraceToLine
CS2 build 25218825 · Steam date 2026-09-09 · platform windows-x86_64 · cs2_schema.json
Kind: classSize: 1232 bytes (0x4d0)Alignment: 8 bytesModule: smartpropsBinary: !GlobalTypes
Metadata: MPropertyDescription Perform a trace from a specified origin point to a the closest point on a line. MPropertyFriendlyName Transform: Trace To Line MVDataClassGroup Transform MVDataExperimentalNodeSet
Relationships
Inherits from: CSmartPropOperation_Trace
Inheritance tree
CSmartPropModifier
CSmartPropOperation
CSmartPropTransformOperation
CSmartPropOperation_Trace
- CSmartPropOperation_TraceToLine
Relationship diagram (5 edges)
classDiagram
CSmartPropModifier <|-- CSmartPropOperation
CSmartPropOperation <|-- CSmartPropTransformOperation
CSmartPropTransformOperation <|-- CSmartPropOperation_Trace
CSmartPropOperation_Trace <|-- CSmartPropOperation_TraceToLine
CSmartPropOperation_TraceToLine *-- CSmartPropAttributeCoordinateSpaceMemory layout
19 fields, 6 declared here and 13 inherited. Offsets are absolute from the object base on windows-x86_64.
CSmartPropModifierCSmartPropOperation_TraceCSmartPropOperation_TraceToLine
| Offset | Field | Type | From | Annotations |
|---|---|---|---|---|
0x8 | m_bEnabled | CSmartPropAttributeBool | CSmartPropModifier | MVDataEnableKey |
0x50 | m_Origin | CSmartPropAttributeVector | CSmartPropOperation_Trace | MPropertyDescription Specifies the origin point for the start of the trace. To trace from the current position, set to < 0, 0, 0 > and set the coordinate space to Element Space MPropertyStartGroup +Origin |
0x90 | m_OriginSpace | CSmartPropAttributeCoordinateSpace | CSmartPropOperation_Trace | MPropertyDescription Coordinate space the origin is specified in. Using Element space allows specifying a value relative to the current position. However, world space should generally be used when for variable values. |
0xd0 | m_flOriginOffset | CSmartPropAttributeFloat | CSmartPropOperation_Trace | MPropertyDescription Offset to apply to the specified origin along the trace direction to compute the starting point of the trace. |
0x110 | m_flSurfaceUpInfluence | CSmartPropAttributeFloat | CSmartPropOperation_Trace | MPropertyDescription How much should the surface normal up direction influence the final orientation. [ 0, 1 ] where 0 = don't modify the orientation, 1 = completely re-orient to match the surface. MPropertySortPriority -1 MPropertyStartGroup +Result |
0x150 | m_nNoHitResult | CSmartPropAttributeTraceNoHit | CSmartPropOperation_Trace | MPropertyDescription Specifies the behavior when the trace does not hit a surface. MPropertyFriendlyName If No Surface Hit MPropertySortPriority -1 |
0x190 | m_bIgnoreToolMaterials | CSmartPropAttributeBool | CSmartPropOperation_Trace | MPropertyDescription Do not trace against tool materials (attribute 'tools.toolsmaterial'). MPropertySortPriority -2 MPropertyStartGroup Trace filtering |
0x1d0 | m_bIgnoreSky | CSmartPropAttributeBool | CSmartPropOperation_Trace | MPropertyDescription Do not trace against sky materials (attribute 'mapbuilder.sky'). MPropertySortPriority -2 |
0x210 | m_bIgnoreNoDraw | CSmartPropAttributeBool | CSmartPropOperation_Trace | MPropertyDescription Do not trace against no draw materials (material attribute 'mapbuilder.nodraw'). MPropertySortPriority -2 |
0x250 | m_bIgnoreTranslucent | CSmartPropAttributeBool | CSmartPropOperation_Trace | MPropertyDescription Do not trace against translucent materials (materials with 'alphatest' or 'translucent' attributes). MPropertySortPriority -2 |
0x290 | m_bIgnoreModels | CSmartPropAttributeBool | CSmartPropOperation_Trace | MPropertyDescription Do not trace against any models (only hit world geometry). MPropertySortPriority -2 |
0x2d0 | m_bIgnoreEntities | CSmartPropAttributeBool | CSmartPropOperation_Trace | MPropertyDescription Do not trace against dynamic entities which may move in game. MPropertySortPriority -2 |
0x310 | m_bIgnoreCables | CSmartPropAttributeBool | CSmartPropOperation_Trace | MPropertyDescription Do not trace against cable geometry. MPropertySortPriority -2 |
0x350 | m_EndPointA | CSmartPropAttributeVector | MPropertyDescription End point of the line to trace to. MPropertyStartGroup +Line End Point A | |
0x390 | m_EndPointSpaceA | CSmartPropAttributeCoordinateSpace | MPropertyDescription Coordinate space the end point is specified in. | |
0x3d0 | m_EndPointB | CSmartPropAttributeVector | MPropertyDescription End point of the line to trace to. MPropertyStartGroup +Line End Point B | |
0x410 | m_EndPointSpaceB | CSmartPropAttributeCoordinateSpace | MPropertyDescription Coordinate space the end point is specified in. | |
0x450 | m_bTraceAway | CSmartPropAttributeBool | MPropertyDescription If enabled, instead of tracing from the origin to the line, trace away from the line for the specified distance starting at the origin. MPropertyFriendlyName Trace away from line MPropertyStartGroup +Trace Away | |
0x490 | m_flTraceLength | CSmartPropAttributeFloat | MPropertyDescription Maximum length of the trace. Surfaces beyond this distance will not be hit. MPropertyReadonlyExpr m_bTraceAway == false |
KV3 class defaults
{
"_class": "CSmartPropOperation_TraceToLine",
"m_bEnabled": true,
"m_Origin":
[
0.000000,
0.000000,
0.000000
],
"m_OriginSpace": "ELEMENT",
"m_flOriginOffset": 0.000000,
"m_flSurfaceUpInfluence": 0.000000,
"m_nNoHitResult": "NOTHING",
"m_bIgnoreToolMaterials": true,
"m_bIgnoreSky": true,
"m_bIgnoreNoDraw": true,
"m_bIgnoreTranslucent": false,
"m_bIgnoreModels": false,
"m_bIgnoreEntities": true,
"m_bIgnoreCables": false,
"m_EndPointA":
[
0.000000,
0.000000,
0.000000
],
"m_EndPointSpaceA": "WORLD",
"m_EndPointB":
[
0.000000,
0.000000,
0.000000
],
"m_EndPointSpaceB": "WORLD",
"m_bTraceAway": false,
"m_flTraceLength": 1000.000000
}