Skip to content

CSmartPropOperation_SetOrientation

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

Kind: classSize: 400 bytes (0x190)Alignment: 8 bytesModule: smartpropsBinary: !GlobalTypes

Metadata: MPropertyDescription Set the current orientation from a specified forward and up vector. MPropertyFriendlyName Transform: Set Orientation MVDataClassGroup Transform

Relationships

Inherits from: CSmartPropTransformOperation

Inheritance tree
Relationship diagram (4 edges)
classDiagram
    CSmartPropModifier <|-- CSmartPropOperation
    CSmartPropOperation <|-- CSmartPropTransformOperation
    CSmartPropTransformOperation <|-- CSmartPropOperation_SetOrientation
    CSmartPropOperation_SetOrientation *-- CSmartPropAttributeCoordinateSpace
Inheritance chain, direct subclasses (up to 20) and a few composition edges

Memory layout

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

CSmartPropModifierCSmartPropOperation_SetOrientation

OffsetFieldTypeFromAnnotations
0x8m_bEnabledCSmartPropAttributeBoolCSmartPropModifierMVDataEnableKey
0x50m_vForwardVectorCSmartPropAttributeVectorMPropertyGroupName +Forward
0x90m_ForwardDirectionSpaceCSmartPropAttributeCoordinateSpaceMPropertyDescription Specifies the coordinate space the forward direction is being specified in MPropertyGroupName +Forward
0xd0m_vUpVectorCSmartPropAttributeVectorMPropertyGroupName +Up
0x110m_UpDirectionSpaceCSmartPropAttributeCoordinateSpaceMPropertyDescription Specifies the coordinate space the up direction is being specified in MPropertyGroupName +Up
0x150m_bPrioritizeUpCSmartPropAttributeBoolMPropertyDescription If the specified vectors are not orthogonal, normally the up vector will be adjusted to make it orthogonal to the forward vector. If prioritize up is true, then the forward vector will be adjusted to be orthogonal to the specified up vector instead.
KV3 class defaults
{
	"_class": "CSmartPropOperation_SetOrientation",
	"m_bEnabled": true,
	"m_vForwardVector":
	[
		1.000000,
		0.000000,
		0.000000
	],
	"m_ForwardDirectionSpace": "WORLD",
	"m_vUpVector":
	[
		0.000000,
		0.000000,
		1.000000
	],
	"m_UpDirectionSpace": "WORLD",
	"m_bPrioritizeUp": false
}