Skip to main content

DetailProp Editor

A visual editor for configuring Source 2 detail props in scripts/detail_prop_types.vdata.

DetailProp Editor interface

Overview

The editor reads and writes the addon's scripts/detail_prop_types.vdata file. Use the hierarchy to create detail types and model entries, then edit the selected item's fields in the property panel.

Interface layout

AreaDescription
HierarchyTree of detail types and their model entries.
PropertiesFields for the selected detail type or model.
HistoryDockable undo history.

Data file

The editor reads and writes:

content/csgo_addons/<addon_name>/scripts/detail_prop_types.vdata

Detail type properties

When a Detail Type node is selected, the editor exposes its density:

PropertyTypeDescription
DensityFloatNumber of props placed per square foot.

Model entry properties

Each detail type can contain multiple model variations. When a Model child node is selected, its fields are grouped as follows:

GroupFields
ModelModel resource, material group, and weight.
FadeStart and complete fade-out sizes in screen-space units.
OrientationWorld-space up, orient-to-surface amount, and random rotation min/max.
PlacementMinimum/maximum surface slope and random vertical offset.
ScaleRandom scale, density scale, and blend-weight scale.
Blend WeightMinimum, maximum, and full-density blend weights.
LightingWhether the model casts static shadows.

The model's Weight determines its relative frequency within its detail type.

Operations and shortcuts

ActionShortcutDescription
Type button / context menuAdds a detail type after a name is provided.
Model button / context menuAdds a model to the selected detail type.
DuplicateCtrl+DDuplicates the selected hierarchy item.
DeleteDeleteRemoves the selected hierarchy item.
Undo / RedoCtrl+Z; Ctrl+Y or Ctrl+Shift+ZReverses or reapplies changes.
SaveCtrl+SWrites detail_prop_types.vdata.

Use detail props in Hammer

  1. Configure the detail types and assign the grass or clutter models in Hammer 5 Tools iconHammer 5 Tools.
  2. Save with Ctrl+S.
  3. In Hammer, open the Material Editor for the blend material (.vmat).
  4. Open the Detail Props tab and select the detail prop types for the corresponding material layers.
  5. In the Hammer viewport, enable Toggle Grass / Detail Props to display the detail props across the terrain.