CSmartPropOperation_ComputeDistance3D
CS2 build 25218825 · Steam date 2026-09-09 · platform windows-x86_64 · cs2_schema.json
Kind: classSize: 408 bytes (0x198)Alignment: 8 bytesModule: smartpropsBinary: !GlobalTypes
Metadata: MPropertyDescription Compute the distance between two 3D points MPropertyFriendlyName Distance MVDataClassGroup Compute
Relationships
Inherits from: CSmartPropOperation
Inheritance tree
CSmartPropModifier
CSmartPropOperation
- CSmartPropOperation_ComputeDistance3D
Relationship diagram (3 edges)
classDiagram
CSmartPropModifier <|-- CSmartPropOperation
CSmartPropOperation <|-- CSmartPropOperation_ComputeDistance3D
CSmartPropOperation_ComputeDistance3D *-- CSmartPropAttributeCoordinateSpaceMemory layout
7 fields, 6 declared here and 1 inherited. Offsets are absolute from the object base on windows-x86_64.
CSmartPropModifierCSmartPropOperation_ComputeDistance3D
| Offset | Field | Type | From | Annotations |
|---|---|---|---|---|
0x8 | m_bEnabled | CSmartPropAttributeBool | CSmartPropModifier | MVDataEnableKey |
0x50 | m_OutputVariableName | CUtlString | MPropertyAttributeEditor SmartPropItemNameEditor( Variable:Float ) MPropertyFriendlyName Output Variable | |
0x58 | m_OutputCoordinateSpace | CSmartPropAttributeCoordinateSpace | MPropertyDescription Specifies the coordinate space the distance should be computed in. The scale of the coordinate space may affect the distance value. | |
0x98 | m_InputPositionA | CSmartPropAttributeVector | MPropertyFriendlyName Position A MPropertyGroupName +Position A | |
0xd8 | m_CoordinateSpaceA | CSmartPropAttributeCoordinateSpace | MPropertyDescription Specifies the coordinate space of position A. MPropertyGroupName +Position A | |
0x118 | m_InputPositionB | CSmartPropAttributeVector | MPropertyFriendlyName Position B MPropertyGroupName +Position B | |
0x158 | m_CoordinateSpaceB | CSmartPropAttributeCoordinateSpace | MPropertyDescription Specifies the coordinate space of position B. MPropertyGroupName +Position B |
KV3 class defaults
{
"_class": "CSmartPropOperation_ComputeDistance3D",
"m_bEnabled": true,
"m_OutputVariableName": "",
"m_OutputCoordinateSpace": "WORLD",
"m_InputPositionA":
[
0.000000,
0.000000,
0.000000
],
"m_CoordinateSpaceA": "WORLD",
"m_InputPositionB":
[
0.000000,
0.000000,
0.000000
],
"m_CoordinateSpaceB": "WORLD"
}