$surfaceprop: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
 
$surfaceprop (name)
 
* Applies a particular [[Material surface properties|Material surface property]] to the entire model.
* The surface property affects a number of parameters for the model:
: its physics properties (weight, etc),
: what sounds it makes when it collides,
: what particles it emits when you shoot it, etc.
* To add or change surface property types, edit the file hl2\scripts\surfaceproperties.txt.
* HLMV can be used to generate blocks of .QC file that sets the surface properties correctly.




[[Category:QC Commands]]
[[Category:QC Commands]]
[[Category:VMT Commands]]
[[Category:VMT Commands]]

Revision as of 19:51, 7 November 2007

$surfaceprop (name)
  • Applies a particular Material surface property to the entire model.
  • The surface property affects a number of parameters for the model:
its physics properties (weight, etc),
what sounds it makes when it collides,
what particles it emits when you shoot it, etc.
  • To add or change surface property types, edit the file hl2\scripts\surfaceproperties.txt.
  • HLMV can be used to generate blocks of .QC file that sets the surface properties correctly.