Skip to content

CDetailPropModel

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

Kind: classSize: 328 bytes (0x148)Alignment: 8 bytesModule: toolutils2Binary: !GlobalTypes

Metadata: MPropertyFriendlyName Model MVDataAnonymousNode MVDataOutlinerAssetNameExpr

Relationships

Inherits from: nothing; this is a root class.

Used by (1) as a field type

Inheritance tree
  • CDetailPropModel
Relationship diagram (1 edges)
classDiagram
    CDetailPropModel *-- InfoForResourceTypeCModel
Inheritance chain, direct subclasses (up to 20) and a few composition edges

Memory layout

21 fields, 21 declared here and 0 inherited. Offsets are absolute from the object base on windows-x86_64.

CDetailPropModel

OffsetFieldTypeFromAnnotations
0x0m_ModelNameCResourceNameTyped< CWeakHandle< InfoForResourceTypeCModel > >MPropertyDescription Model to be displayed. MPropertyProvidesEditContextString ToolEditContext_ID_VMDL
0xe0m_MaterialGroupCModelMaterialGroupNameMPropertyDescription Material group (skin) to assign to use with the model.
0xe8m_flWeightfloat32MPropertyDescription A weight determining the frequency at which this model is placed relative to other models within the detail type. The weights of all models are summed and the probability of selecting this model is its weight divided by the sum weight.
0xecm_flStartFadeSizefloat32MPropertyAttributeRange 0.001 1.0 MPropertyDescription Screen space size [ 0, 1 ] (where 1 is the whole screen) at which the model will begin to to fade out. Anything larger will be fully visible, anything smaller will start to fade out. MPropertyFriendlyName Start fade out size
0xf0m_flEndFadeSizefloat32MPropertyAttributeRange 0.001 1.0 MPropertyDescription Screen space size [ 0, 1 ] (where 1 is the whole screen) at which the model will be completely faded out. Anything smaller than this size will not be visible, anything larger will start fading in. MPropertyFriendlyName Complete fade out size
0xf4m_bWorldSpaceOrientationboolMPropertyDescription If enabled, the up direction will be evaluated in world space, such that the object orientation does not affect the surface slope filtering. Additionally if Orient To Surface is 0, then and world space up is enabled, then the object orientation will not affect the rotation of detail model. MPropertyFriendlyName Use World Space Up
0xf8m_flOrientToSurfacefloat32MPropertyAttributeRange 0.0 1.0 MPropertyDescription Value indicating if the model's up direction should be matched to the surface. Value should be in the [ 0, 1 ] range, where 0 means that the model up will be model (or object space) up and will ignore the surface direction, and 1 indicates that the model up will exactly match the surface normal.
0xfcm_flMinSurfaceSlopefloat32MPropertyAttributeRange 0.0 180.0 MPropertyDescription Minimum slope on which the target will be placed. Slope is a [ 0, 180 ] value based on the surface normal where horizontal surface (floor) is 0, vertical surface (wall) is 90, and a horizontal upside down surface (ceiling) is 180.
0x100m_flMaxSurfaceSlopefloat32MPropertyAttributeRange 0.0 180.0 MPropertyDescription Maximum slope on which the target will be placed.
0x104m_flRandomVerticalOffsetMinfloat32MPropertyDescription Minimum range of random offset to apply along the model's local up direction
0x108m_flRandomVerticalOffsetMaxfloat32MPropertyDescription Maximum range of random offset to apply along the model's local up direction
0x10cm_vRandomRotationMinQAngleMPropertyDescription Minimum range of the random rotation to apply the model. Random rotation is applied in the local space of the model. Rotation values are ordered pitch, yaw, roll.
0x118m_vRandomRotationMaxQAngleMPropertyDescription Maximum range of the random rotation to apply the model.
0x124m_flRandomScaleMinfloat32MPropertyDescription Minimum random scale value to apply to the model.
0x128m_flRandomScaleMaxfloat32MPropertyDescription Maximum random scale value to apply to the model.
0x12cm_flDensityMinScalefloat32MPropertyAttributeRange 0.01 1.0 MPropertyDescription Minimum scale to apply to the model based the painted detail prop density. The minimum of the detail and blend weight scale values is multiplied with the random scale value to determine the final scale. MPropertyFriendlyName Density Scale
0x130m_flBlendWeightMinScalefloat32MPropertyAttributeRange 0.01 1.0 MPropertyDescription Minimum scale to apply to the model based on the final material layer blend weight. The model will be given this scale value when the layer blend weight equals the minimum blend weight and will be 1.0 when the maximum blend weight has been reached. The minimum of the detail and blend weight scale values is multiplied with the random scale value to determine the final scale. Set this if you want the model to scale up as the material blend fades in. The smaller the value, the smaller the model will start as the material begins to fade in. MPropertyFriendlyName Blend Weight Scale
0x134m_flBlendWeightMinfloat32MPropertyAttributeRange 0.01 1.0 MPropertyDescription Minimum blend weight value for which the model will be placed. If the blend weight value is less than this value, the model will not be placed. MPropertyFriendlyName Min Blend Weight
0x138m_flBlendWeightMaxfloat32MPropertyAttributeRange 0.01 1.0 MPropertyDescription Maximum blend weight value for which the model will be placed. If the blend weight value is more than this value, the model will not be placed. MPropertyFriendlyName Max Blend Weight
0x13cm_flBlendWeightFullDenstityfloat32MPropertyAttributeRange 0.01 1.0 MPropertyDescription Blend weight at which the model will be at full density. Must be between the minimum and maximum blend weight values. The density of this model placement will increase with the blend weight value up to this value at which point it will be at full density. MPropertyFriendlyName Full Density Blend Weight
0x140m_bCastStaticShadowsboolMPropertyDescription Should instances of this model generate shadows in the lightmap. Note that shadows in the light map will persist even after the model fades out.
KV3 class defaults
{
	"m_ModelName": "",
	"m_MaterialGroup": "",
	"m_flWeight": 1.000000,
	"m_flStartFadeSize": 0.020000,
	"m_flEndFadeSize": 0.012500,
	"m_bWorldSpaceOrientation": false,
	"m_flOrientToSurface": 1.000000,
	"m_flMinSurfaceSlope": 0.000000,
	"m_flMaxSurfaceSlope": 180.000000,
	"m_flRandomVerticalOffsetMin": 0.000000,
	"m_flRandomVerticalOffsetMax": 0.000000,
	"m_vRandomRotationMin":
	[
		0.000000,
		0.000000,
		0.000000
	],
	"m_vRandomRotationMax":
	[
		0.000000,
		360.000000,
		0.000000
	],
	"m_flRandomScaleMin": 1.000000,
	"m_flRandomScaleMax": 1.000000,
	"m_flDensityMinScale": 1.000000,
	"m_flBlendWeightMinScale": 1.000000,
	"m_flBlendWeightMin": 0.250000,
	"m_flBlendWeightMax": 1.000000,
	"m_flBlendWeightFullDenstity": 0.750000,
	"m_bCastStaticShadows": false
}