Skip to content

CSmartPropElement_MidpointDeformer

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

Kind: classSize: 744 bytes (0x2e8)Alignment: 8 bytesModule: smartpropsBinary: !GlobalTypes

Metadata: MPropertyDescription Soft deform the center of a volume defined by two endpoints. MPropertyFriendlyName Midpoint Deformer

Relationships

Inherits from: CSmartPropElement_Deformer

Inheritance tree
Relationship diagram (3 edges)
classDiagram
    CSmartPropElement <|-- CSmartPropElement_Group
    CSmartPropElement_Group <|-- CSmartPropElement_Deformer
    CSmartPropElement_Deformer <|-- CSmartPropElement_MidpointDeformer
Inheritance chain, direct subclasses (up to 20) and a few composition edges

Memory layout

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

CSmartPropElementCSmartPropElement_GroupCSmartPropElement_MidpointDeformer

OffsetFieldTypeFromAnnotations
0x8m_nElementIDint32CSmartPropElementMPropertySuppressField MVDataUniqueMonotonicInt _editor/next_element_id
0x10m_bEnabledCSmartPropAttributeBoolCSmartPropElementMPropertyDescription Is this element enabled? If not enabled, this element will not be evaluted and will have no effect on the result. MPropertySortPriority 10 MVDataEnableKey
0x50m_sLabelCUtlStringCSmartPropElementMPropertyDescription Optional text that will appear in the outliner to help organize Smart Prop elements and communicate their purpose to other users. MPropertyFriendlyName Label
0x58m_SelectionCriteriaCUtlVector< CSmartPropSelectionCriteria* >CSmartPropElementMPropertyFriendlyName Selection Criteria MVDataPromoteField 2
0x70m_ModifiersCUtlVector< CSmartPropModifier* >CSmartPropElementMPropertyFriendlyName Modifiers MVDataPromoteField 2
0x88m_ChildrenCUtlVector< CSmartPropElement* >CSmartPropElement_GroupMPropertyDescription List of child elements which will appear if this element appears MPropertyFriendlyName Children MVDataPromoteField 1
0xa0m_bDeformationEnabledCSmartPropAttributeBoolMPropertyDescription Should the deformation be applied. If disabled the children will still be placed, but will not be deformed. Esentially making the element behave as a group. MPropertyFriendlyName Deformation Enabled
0xe0m_vStartCSmartPropAttributeVectorMPropertyDescription Endpoint of deformation region. MPropertyFriendlyName Start Point
0x120m_vEndCSmartPropAttributeVectorMPropertyDescription Endpoint of deformation region. MPropertyFriendlyName End Point
0x160m_fRadiusCSmartPropAttributeFloatMPropertyDescription The distance from the line formed by the endpoints that encapsulated the deformation region. MPropertyFriendlyName Effect Size
0x1a0m_bContinuousSplineCSmartPropAttributeBoolMPropertyDescription Enables an alternate interpolation method that doesnt deform endpoint tangents. MPropertyFriendlyName Continuous Interpolation
0x1e0m_vOffsetCSmartPropAttributeVectorMPropertyDescription Offsets the center of the deformation region. MPropertyFriendlyName Midpoint Offset
0x220m_vAnglesCSmartPropAttributeAnglesMPropertyDescription Rotate the center of the deformation region. MPropertyFriendlyName Midpoint Rotation
0x260m_vScaleCSmartPropAttributeVector2DMPropertyDescription Scale the center of the deformation region. MPropertyFriendlyName Midpoint Scale
0x2a0m_fFalloffCSmartPropAttributeFloatMPropertyDescription Adjust deformation falloff from the center of the region to the endpoints. MPropertyFriendlyName Falloff
0x2e0m_OutputVariableCUtlStringMPropertyAttributeEditor SmartPropItemNameEditor( Variable:Vector ) MPropertyDescription Outputs the absolute position of the midpoint post deformation.
KV3 class defaults
{
	"_class": "CSmartPropElement_MidpointDeformer",
	"m_nElementID": -1,
	"m_bEnabled": true,
	"m_sLabel": "",
	"m_SelectionCriteria":
	[
	],
	"m_Modifiers":
	[
	],
	"m_Children":
	[
	],
	"m_bDeformationEnabled": true,
	"m_vStart":
	[
		0.000000,
		0.000000,
		0.000000
	],
	"m_vEnd":
	[
		0.000000,
		0.000000,
		0.000000
	],
	"m_fRadius": 64.000000,
	"m_bContinuousSpline": false,
	"m_vOffset":
	[
		0.000000,
		0.000000,
		0.000000
	],
	"m_vAngles":
	[
		0.000000,
		0.000000,
		0.000000
	],
	"m_vScale":
	[
		1.000000,
		1.000000
	],
	"m_fFalloff": 1.000000,
	"m_OutputVariable": ""
}