General Half-Life 2/Other
description
Explains what it is and how to make your own.
keywords
detail, create, creating, vbsp.
In this tutorial i will explain how to set up a Detail.VBSP to create custom detail types that can be used for your materials
First of all search your cstrike folder for a file called detail.VBSP, right click this file and uncheck "Read Only" to allow you to save when you are done setting up a new detail type
Now open the detail.VBSP in a text editor such as notepad and copy/paste one of the already written detail types, for this tutorial i will copy/paste the prodgrasses detail type
Which looks like this
- Code: Select all
prodgrasses
{
"density" "2000.0"
Group1
{
"alpha" "1.0"
Model1
{
"model" "models/props/de_prodigy/prodgrassa.mdl"
"amount" "1"
}
}
Group2
{
"alpha" "0.0"
}
}
Now paste this at the end of the document and change prodgrasses to any name you want, this name will be used to refer this detail type to your VMT using the "%detailtype" parameter for this tutorial i will name my detail type grass_1
Now the important parameters for your detailtype are "density" "2000.0" and "model" "models/props/de_prodigy/prodgrassa.mdl"
The "model" parameter directs the engine to the model you want to use for your detailtype, this can be any model that was compiled as a static prop which means it can have no physics data (can't be used as a prop_physics), you can also use sprites for your detail type . . .
So i have changed the detail name from prodgrasses to grass_1 and the "density" parameter from 2000 to 200 and kep't the same model which makes my detail type look like this
- Code: Select all
grass_1
{
"density" "200.0"
Group1
{
"alpha" "1.0"
Model1
{
"model" "models/props/de_prodigy/prodgrassa.mdl"
"amount" "1"
}
}
Group2
{
"alpha" "0.0"
}
}
Save your work then right click the detail.VBSP file, go to properties and recheck Read Only
Now to add this detail type to your VMT just add "%detailtype" "grass_1" to your VMT file
Hope this comes in handy
Helpful links for this tutorial:
None
Someth|ng W|cked






