Skip to content

CSmartPropOperation_RestoreState

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

Kind: classSize: 208 bytes (0xd0)Alignment: 8 bytesModule: smartpropsBinary: !GlobalTypes

Metadata: MPropertyDescription Replace the current state with a previously saved state. MPropertyFriendlyName Restore State MVDataClassGroup State MVDataNodeTintColor

Relationships

Inherits from: CSmartPropOperation

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

Memory layout

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

CSmartPropModifierCSmartPropOperation_RestoreState

OffsetFieldTypeFromAnnotations
0x8m_bEnabledCSmartPropAttributeBoolCSmartPropModifierMVDataEnableKey
0x50m_StateNameCSmartPropAttributeStateNameMPropertyAttributeEditor SmartPropItemNameEditor( SavedState ) MPropertyDescription Name of the previously saved state to restore
0x90m_bDiscardIfUknownCSmartPropAttributeBoolMPropertyDescription If true, the parent element will be discarded there is no state with the specified name. If false, and there is no state with the specified name then no changes are made.
KV3 class defaults
{
	"_class": "CSmartPropOperation_RestoreState",
	"m_bEnabled": true,
	"m_StateName": "",
	"m_bDiscardIfUknown": false
}