$contents: Difference between revisions
Jump to navigation
Jump to search
m (minor cleanup) |
MossyBucket (talk | contribs) m (Fixed link and grammar.) |
||
Line 7: | Line 7: | ||
* Available content_types are: | * Available content_types are: | ||
; <code>grate</code>: Makes it a grate | ; <code>grate</code>: Makes it a grate. | ||
: Grates are not solid to bullets or [[ | : (Grates are not solid to bullets or [[line of sight]], but solid to everything else.) | ||
; <code>monster</code>: Marks it as an NPC | ; <code>monster</code>: Marks it as an NPC. | ||
; <code>notsolid</code>: Makes it not solid to anything | ; <code>notsolid</code>: Makes it not solid to anything. | ||
; <code>solid</code>: Makes it solid | ; <code>solid</code>: 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. | : 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. | ||
; <code>ladder</code>: | ; <code>ladder</code>: Makes it a ladder. | ||
== See also == | == See also == |
Revision as of 17:33, 15 February 2011
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.
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.