Skip to content

CSmartPropOperation_ResetRotation

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

Kind: classSize: 336 bytes (0x150)Alignment: 8 bytesModule: smartpropsBinary: !GlobalTypes

Metadata: MPropertyDescription Reset the current rotation such the element only inherits the object level rotation, but does not inherit the rotation applied to its parent. MPropertyFriendlyName Transform: Reset Rotation MVDataClassGroup Transform

Relationships

Inherits from: CSmartPropTransformOperation

Inheritance tree
Relationship diagram (3 edges)
classDiagram
    CSmartPropModifier <|-- CSmartPropOperation
    CSmartPropOperation <|-- CSmartPropTransformOperation
    CSmartPropTransformOperation <|-- CSmartPropOperation_ResetRotation
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.

CSmartPropModifierCSmartPropOperation_ResetRotation

OffsetFieldTypeFromAnnotations
0x8m_bEnabledCSmartPropAttributeBoolCSmartPropModifierMVDataEnableKey
0x50m_bIgnoreObjectRotationCSmartPropAttributeBoolMPropertyDescription If enabled, the rotation will be reset to a world space instead of object space, meaning any rotation applied to the object in Hammer will be ignored.
0x90m_bResetPitchCSmartPropAttributeBoolMPropertyDescription Should the pitch (rotation around left vector) value be reset.
0xd0m_bResetYawCSmartPropAttributeBoolMPropertyDescription Should the yaw (roation around the up vector) value be reset.
0x110m_bResetRollCSmartPropAttributeBoolMPropertyDescription Should the roll (rotation around forward vector) value be reset.
KV3 class defaults
{
	"_class": "CSmartPropOperation_ResetRotation",
	"m_bEnabled": true,
	"m_bIgnoreObjectRotation": false,
	"m_bResetPitch": true,
	"m_bResetYaw": true,
	"m_bResetRoll": true
}