$contents

From Valve Developer Community
Revision as of 08:46, 9 April 2008 by Beeswax (talk | contribs)
Jump to navigation Jump to search

The QC command $contents specifies a list of the content_types to use for SolidMask tests during non-hitbox traces.

  • This feature was specifically added to allow us to make things like fences out of props instead of brush models.
  • See also $jointcontents.

QC syntax example

$contents "monster" "grate"
  • Available content_types are:
grate
Makes it a grate
Grates are not solid to bullets or Line of Sight, solid to everything else)
monster
Marks it as an NPC
notsolid
Makes it not solid to anything
solid
Makes it solid
Solid is the default value, so this parameter is usually used only for the $jointcontents command, to make a solid child of a non-solid parent.
ladder
Make it a ladder

See Also