$contents: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (minor cleanup) |
||
Line 3: | Line 3: | ||
* See also [[$jointcontents]]. | * See also [[$jointcontents]]. | ||
== | == Example == | ||
$contents "monster" "grate" | $contents "monster" "grate" | ||
Line 15: | Line 15: | ||
; <code>ladder</code>: Make it a ladder | ; <code>ladder</code>: Make it a ladder | ||
==See | == See also == | ||
* [[CollisionProperty]] | * [[CollisionProperty]] | ||
[[Category:QC Commands|contents]]__NOTOC__ | |||
[[Category:QC Commands]] |
Revision as of 14:23, 28 April 2008
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, 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