Autospawning sprites on a texture

Spike

L10: Glamorous Member
Feb 13, 2008
716
82
I'm trying to put some grass sprites on the floor. I know there's a way to autospawn them on hammer by addint the command %detail to the .vmt. The %detail call a detail group of the detail.vbsp file. Here's the .vbsp:

detail
{
tf_grass
{
"density" "8000"
Group1
{
"alpha" "0"

}
Group2
{
"alpha" ".25"
Model2
{
"sprite" "200 85 94 172 512"
"spritesize" "0.5 0.0 16 37"
"spriterandomscale" "0.1"
"amount" "0.025"
"detailOrientation" "2"
}
Model3
{
"sprite" "376 0 112 256 512"
"spritesize" "0.5 0.0 12 18"
"spriterandomscale" "0.1"
"amount" "0.015"
"detailOrientation" "2"
}
Model4
{
"sprite" "32 416 64 96 512"
"spritesize" "0.5 0.0 10 14"
"spriterandomscale" "0.3"
"amount" "0.05"
"detailOrientation" "2"
}
Model5
{
"sprite" "217 472 68 40 512"
"spritesize" "0.5 0.0 12 12"
"spriterandomscale" "0.4"
"amount" "0.15"
"detailOrientation" "2"
}
}

Group3
{
"alpha" ".5"
Model2
{
"sprite" "200 85 94 172 512"
"spritesize" "0.5 0.0 16 37"
"spriterandomscale" "0.1"
"amount" "0.025"
"detailOrientation" "2"
}
Model3
{
"sprite" "376 0 112 256 512"
"spritesize" "0.5 0.0 12 18"
"spriterandomscale" "0.1"
"amount" "0.025"
"detailOrientation" "2"
}
Model4
{
"sprite" "32 416 64 96 512"
"spritesize" "0.5 0.0 10 14"
"spriterandomscale" "0.3"
"amount" "0.05"
"detailOrientation" "2"
}
Model5
{
"sprite" "217 472 68 40 512"
"spritesize" "0.5 0.0 12 12"
"spriterandomscale" "0.4"
"amount" "0.15"
"detailOrientation" "2"
}
}
Group4
{
"alpha" "1"

Model1
{
"sprite" "0 0 164 256 512"
"spritesize" "0.5 0.0 24 37"
"spriterandomscale" "0.3"
"amount" "0.05"
"detailOrientation" "2"
}
Model2
{
"sprite" "200 85 94 172 512"
"spritesize" "0.5 0.0 12 32"
"spriterandomscale" "0.25"
"amount" "0.05"
"detailOrientation" "2"
}
Model3
{
"sprite" "376 0 112 256 512"
"spritesize" "0.5 0.0 12 18"
"spriterandomscale" "0.1"
"amount" "0.25"
"detailOrientation" "2"
}
Model4
{
"sprite" "32 416 64 96 512"
"spritesize" "0.5 0.0 10 14"
"spriterandomscale" "0.25"
"amount" "0.05"
"detailOrientation" "2"
}
Model5
{
"sprite" "217 472 68 40 512"
"spritesize" "0.5 0.0 12 12"
"spriterandomscale" "0.25"
"amount" "0.15"
"detailOrientation" "2"
}
}
}
}

But I don't see anywhere which vtf file is called ;S
 

Spike

L10: Glamorous Member
Feb 13, 2008
716
82
Ok forget about what I write before. I'm doing it with the original textures and the sprites doesn't apply on the texture. I know they have the sprites because I've read the .vmt and they have the "%detailtype" "sprite_group_name"

please help me