This article's documentation is for anything that uses the Source engine. Click here for more information.

$contents: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Fixed link and grammar.)
mNo edit summary
Line 1: Line 1:
The [[QC command]] [[$contents]] specifies a list of the content_types to use for [[CollisionProperty|SolidMask]] tests during non-hitbox traces.  
{{This is a|c0|name=$contents}} It specifies a list of the content_types to use for [[CollisionProperty|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.  
* This feature was specifically added to allow us to make things like fences out of props instead of brush models.  
* See also [[$jointcontents]].
* See also [[$jointcontents]].

Revision as of 11:28, 22 September 2023

$contents is a c0 available in all Source Source games. It 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.

Example

$contents "monster" "grate"
  • Available content_types are:
grate
Makes it a grate.
(Grates are not solid to bullets or line of sight, but 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
Makes it a ladder.

See also