CSmartPropSelectionCriteria_LinearLength
CS2 build 25218825 · Steam date 2026-09-09 · platform windows-x86_64 · cs2_schema.json
Kind: classSize: 328 bytes (0x148)Alignment: 8 bytesModule: smartpropsBinary: !GlobalTypes
Metadata: MPropertyDescription Specifies the length of this element, used when fitting an element on to a line. MPropertyFriendlyName Linear Length MVDataComponentValidGrandParents
Relationships
Inherits from: CSmartPropSelectionCriteria
Inheritance tree
CSmartPropSelectionCriteria
- CSmartPropSelectionCriteria_LinearLength
Relationship diagram (1 edges)
classDiagram
CSmartPropSelectionCriteria <|-- CSmartPropSelectionCriteria_LinearLengthMemory layout
5 fields, 4 declared here and 1 inherited. Offsets are absolute from the object base on windows-x86_64.
CSmartPropSelectionCriteriaCSmartPropSelectionCriteria_LinearLength
| Offset | Field | Type | From | Annotations |
|---|---|---|---|---|
0x8 | m_bEnabled | CSmartPropAttributeBool | CSmartPropSelectionCriteria | MVDataEnableKey |
0x48 | m_flLength | CSmartPropAttributeFloat | MPropertyDescription Specifies the length of the line that will be taken up if this element is selected. | |
0x88 | m_bAllowScale | CSmartPropAttributeBool | MPropertyDescription Can this object be scaled. If enabled the minimum and maximum lengths must be set to specify the size range of allowable scale. | |
0xc8 | m_flMinLength | CSmartPropAttributeFloat | MPropertyDescription Minimum allowable length for the object. Must be <= length. If length is 100 and minimum length is 20, then the object may be assigned a scale in the rage [ 0.2, 1.0 ]. MPropertyFriendlyName Minimum length MPropertySuppressExpr m_bAllowScale == false | |
0x108 | m_flMaxLength | CSmartPropAttributeFloat | MPropertyDescription Maximum allowable length for the object. Must be >= length. If length is 100 and maximum length is 160, then the object may be assigned a scale in the rage [ 1.0, 1.6 ]. MPropertyFriendlyName Maximum length MPropertySuppressExpr m_bAllowScale == false |
KV3 class defaults
{
"_class": "CSmartPropSelectionCriteria_LinearLength",
"m_bEnabled": true,
"m_flLength": 1.000000,
"m_bAllowScale": false,
"m_flMinLength": 1.000000,
"m_flMaxLength": 1.000000
}