Skip to content

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
Relationship diagram (1 edges)
classDiagram
    CSmartPropSelectionCriteria <|-- CSmartPropSelectionCriteria_LinearLength
Inheritance chain, direct subclasses (up to 20) and a few composition edges

Memory layout

5 fields, 4 declared here and 1 inherited. Offsets are absolute from the object base on windows-x86_64.

CSmartPropSelectionCriteriaCSmartPropSelectionCriteria_LinearLength

OffsetFieldTypeFromAnnotations
0x8m_bEnabledCSmartPropAttributeBoolCSmartPropSelectionCriteriaMVDataEnableKey
0x48m_flLengthCSmartPropAttributeFloatMPropertyDescription Specifies the length of the line that will be taken up if this element is selected.
0x88m_bAllowScaleCSmartPropAttributeBoolMPropertyDescription Can this object be scaled. If enabled the minimum and maximum lengths must be set to specify the size range of allowable scale.
0xc8m_flMinLengthCSmartPropAttributeFloatMPropertyDescription 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
0x108m_flMaxLengthCSmartPropAttributeFloatMPropertyDescription 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
}