Skip to content

CSmartPropOperation_SetVariable

CS2 build 25218825 · Steam date 2026-09-09 · platform windows-x86_64 · cs2_schema.json

Kind: classSize: 144 bytes (0x90)Alignment: 8 bytesModule: smartpropsBinary: !GlobalTypes

Metadata: MPropertyDescription Set the value of a variable. MPropertyFriendlyName Set Variable MVDataClassGroup State MVDataOutlinerNameExpr m_VariableValue.m_TargetName

Relationships

Inherits from: CSmartPropOperation

Inheritance tree
Relationship diagram (2 edges)
classDiagram
    CSmartPropModifier <|-- CSmartPropOperation
    CSmartPropOperation <|-- CSmartPropOperation_SetVariable
Inheritance chain, direct subclasses (up to 20) and a few composition edges

Memory layout

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

CSmartPropModifierCSmartPropOperation_SetVariable

OffsetFieldTypeFromAnnotations
0x8m_bEnabledCSmartPropAttributeBoolCSmartPropModifierMVDataEnableKey
0x50m_VariableValueCSmartPropAttributeVariableValue
KV3 class defaults
{
	"_class": "CSmartPropOperation_SetVariable",
	"m_bEnabled": true,
	"m_VariableValue":
	{
		"m_TargetName": "",
		"m_DataType": "INVALID",
		"m_Value": null
	}
}