$surfaceprop

From Valve Developer Community
Revision as of 09:32, 6 May 2008 by Beeswax (talk | contribs)
Jump to navigation Jump to search

Stub

This article or section is a stub. You can help by expanding it.

The $surfaceprop is used to apply a set of surface-collision effects 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 affects :
  • 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.txt file (see Material Surface Property),
or a model surface property defined in the /scripts/surfaceproperties_hl2.txt file.