$surfaceprop: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
| TomEdwards (talk | contribs) mNo edit summary |  (corrections ? diff between surfaceprop and propdata attributes) | ||
| Line 2: | Line 2: | ||
| The [[$surfaceprop]] command is used to apply a set of physic-interaction attributes to a Model (as a [[QC command]]) or a Brush Material (as a [[VMT command]]).   | The [[$surfaceprop]] command is used to apply a set of physic-interaction attributes to a Model (as a [[QC command]]) or a Brush Material (as a [[VMT command]]).   | ||
| * The basic principle is the same in both cases; the $surfaceprop may affect :   | * The basic principle is the same in both cases; the $surfaceprop may affect :   | ||
| :* what sounds it makes when it collides,   | :* what sounds it makes when it collides,   | ||
| :* what particles it emits when shot, | :* what particles it emits when shot, | ||
| :* what decals it acquires when shot, etc | :* what decals it acquires when shot, etc | ||
| :* what gibs it throws up if it breaks. | <!--:* what gibs it throws up if it breaks. // surely this is defined only by propdata? --> | ||
| :* the object's density for physics calculations such as [[$automass]], <!-- confirm this is derived from $surfaceprop and not propdata ? --> | |||
| * [[HLMV]] can be used to generate blocks of .QC file that sets the surface properties correctly.   | * [[HLMV]] can be used to generate blocks of .QC file that sets the surface properties correctly.   | ||
Revision as of 20:18, 28 April 2008
The $surfaceprop command is used to apply a set of physic-interaction attributes to a Model (as a QC command) or a Brush Material (as a VMT command).
- The basic principle is the same in both cases; the $surfaceprop may affect :
- what sounds it makes when it collides,
- what particles it emits when shot,
- what decals it acquires when shot, etc
- the object's density for physics calculations such as $automass,
 
- HLMV can be used to generate blocks of .QC file that sets the surface properties correctly.
- If no $surfaceprop is defined, the "default" surfaceprop (which is something like concrete) is used.
- See also $jointsurfaceprop.
- See also propdata.
Example Syntax
$surfaceprop "<surfaceproperty_name>"
where
- <surfaceproperty_name>
- is a brush surface property defined in the /scripts/surfaceproperties.txtfile (see Material Surface Property),
- or a model surface property defined in the /scripts/surfaceproperties_hl2.txtfile.