Engine icon indicating copy to clipboard operation
Engine copied to clipboard

Bug: Hammer - Sprinkle tool is non-functional

Open TheEnderek0 opened this issue 2 months ago • 0 comments

Describe the bug

Sprinkle tool is completely non functional. It seems that it does detect the script properly and does try to do something when left clicking, but it doesn't actually place entities.

The same script but loaded in H++ works fine.

To Reproduce

  1. Create a new map
  2. Create a brush or displacement, can be flat
  3. Open sprinkle tool with loaded script and try to use it.

Issue Map

Here's an example script taken from VDC, place it in hammer/scripts/sprinkle/

"Agave Plants" //This is the name that will appear in the Sprinkle menu
{
	base //The base values of what you want to sprinkle. You can add any keyvalue, ex. "fademaxdist", and it will be applied to every entity
	{
		"classname" "prop_static"
		grid "64 64" // The default grid size of this type, this can be overridden in the Sprinkle menu
	}
	
	10 //This is the chance of this set of values being used, this can be any number
	{
		"model" "models/props/de_dust/hr_dust/foliage/agave_plant_01.mdl" //The values of this case. More keyvalues can be added, ex. "skin" or "rendercolor"
	}
	10
	{
		"model" "models/props/de_dust/hr_dust/foliage/agave_plant_02.mdl" 
		"rendercolor" "13 204 75"
	}
	10
	{
		"model" "models/props/de_dust/hr_dust/foliage/agave_plant_03.mdl"
		"rendercolor" "13 204 75"
	}
	10 //Since there's 4 cases with the same chance, each case has a 1/4 chance of being placed
	{
		"model" "models/props/de_dust/hr_dust/foliage/agave_plant_04.mdl"
		"uniformscale" "1.3"
	}
}

Expected Behavior

Sprinkle tool should place entities.

Operating System

Windows 11

TheEnderek0 avatar Oct 28 '25 20:10 TheEnderek0