$contents

From Valve Developer Community
Revision as of 20:44, 30 March 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 contents-mask 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.

Syntax

$contents "<content_type_1>" "<content_type_2>" "<content_type_3>"
  • The current content_types you can use are:
grate
Makes it be a grate (not solid to bullets, solid to everything else)
monster
Makes it be marked as an NPC
notsolid
Makes it be not solid to anything
solid
Makes it be solid (usually useful only for the $jointcontents command to make a solid child of a non-solid parent)
ladder
Make it be a ladder

Example

$contents "monster" "grate"