User talk:UncleB: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
 
mNo edit summary
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
=Intro=
=Intro=


This describes what each function performs in the "Detail.vbsp" located in the cstrike directory. If your not sure what the Detail.vbsp is used for, relocate back to :[http://developer.valvesoftware.com/wiki/Detail_Props Detail Props]:.
This describes what each function performs in the "Detail.vbsp" located in the cstrike directory. If you're not sure what the Detail.vbsp is used for, see [[Detail Props]].
 
==Usage==


<pre>
<pre>
"material"
"material"
{  
{  
   "density" "100.0" //600.0 Default
   "density" "600.0" //600.0 Default
   Group1  
   Group1  
   {  
   {  
       "alpha" "1"  
       "alpha" "1" // 1
       Model1  
       Model1  
       {  
       {  
         "sprite" "288 0 128 128 512"  
         "sprite" "288 0 128 128 512"
         "spritesize" "0.5 0.0 40 40"
        // 288 0 128 128 512 Default
         // 19 & 35 Default
        // Image of sprite to use.
        // (Its seems there are 3 grass
        // images to one sprite, each
        // value has its own image(assumed).
        // Setting the last 2 set of values
        // to 512 will display 3 grass materials.)
        // Needs Correcting.
 
         "spritesize" "0.5 0.0 10 30"
         // 19 & 35 Default // 0.5 & 0.0
         // Size of each sprite
         // Size of each sprite
         // W * H = A
         // W * H = A
          
          
         "spriterandomscale" "0.5"
         "spriterandomscale" "1.0"
         // 0.2 Random sprite sizes
         // 0.2 Random sprite sizes
          
          
         "amount" "0.2"
         "amount" "2.0"
         // 0.2 Default
         // 0.2 Default
         // Sprites to spawn. Random
         // Sprites to spawn. Random
         // "0" - none
         // "0" - none


         "detailOrientation" "1"
         "detailOrientation" "2"
         // 2 Default
         // 2 Default
         // Controls whether sprites rotate if bumped
         // Controls whether sprites rotate if bumped

Latest revision as of 18:13, 10 November 2005

Intro

This describes what each function performs in the "Detail.vbsp" located in the cstrike directory. If you're not sure what the Detail.vbsp is used for, see Detail Props.

Usage

"material"
{ 
   "density" "600.0" //600.0 Default
   Group1 
   { 
      "alpha" "1" // 1 
      Model1 
      { 
         "sprite" "288 0 128 128 512"
         // 288 0 128 128 512 Default
         // Image of sprite to use.
         // (Its seems there are 3 grass 
         // images to one sprite, each
         // value has its own image(assumed). 
         // Setting the last 2 set of values
         // to 512 will display 3 grass materials.)
         // Needs Correcting.

         "spritesize" "0.5 0.0 10 30"
         // 19 & 35 Default // 0.5 & 0.0
         // Size of each sprite
         // W * H = A
         
         "spriterandomscale" "1.0"
         // 0.2 Random sprite sizes
         
         "amount" "2.0"
         // 0.2 Default
         // Sprites to spawn. Random
         // "0" - none

         "detailOrientation" "2"
         // 2 Default
         // Controls whether sprites rotate if bumped
         // 0 - No Orientation 
         // 1 - Sprites fold and rotate if bumped 
         // 2 - Sprites rotate if bumped, but not fold.
      } 
       
   } 
}