Skip to content

CSmartPropOperation_RandomOffset

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

Kind: classSize: 272 bytes (0x110)Alignment: 8 bytesModule: smartpropsBinary: !GlobalTypes

Metadata: MPropertyDescription Apply a random position offset to the current transform. MPropertyFriendlyName Transform: Random Offset MVDataClassGroup Transform

Relationships

Inherits from: CSmartPropTransformOperation

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

Memory layout

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

CSmartPropModifierCSmartPropOperation_RandomOffset

OffsetFieldTypeFromAnnotations
0x8m_bEnabledCSmartPropAttributeBoolCSmartPropModifierMVDataEnableKey
0x50m_vRandomPositionMinCSmartPropAttributeVectorMPropertyDescription Minimum random position offset
0x90m_vRandomPositionMaxCSmartPropAttributeVectorMPropertyDescription Maximum random position offset
0xd0m_vSnapIncrementCSmartPropAttributeVectorMPropertyDescription If non-zero, specifies the increment to which the randomly selected offset value will be snapped. Note that the snap value is absolute, not relative to the min or max, but if the if the min or max are not multiples of the snap value they can still be selected.
KV3 class defaults
{
	"_class": "CSmartPropOperation_RandomOffset",
	"m_bEnabled": true,
	"m_vRandomPositionMin":
	[
		0.000000,
		0.000000,
		0.000000
	],
	"m_vRandomPositionMax":
	[
		0.000000,
		0.000000,
		0.000000
	],
	"m_vSnapIncrement":
	[
		0.000000,
		0.000000,
		0.000000
	]
}