$contents: Difference between revisions
Jump to navigation
Jump to search
Note:Additional contents from bspflags.h can be set via
Source Model Skin Editor, although results may vary.
SirYodaJedi (talk | contribs) mNo edit summary |
SirYodaJedi (talk | contribs) m (→Example) |
||
Line 9: | Line 9: | ||
; <code>grate</code>: Makes it a grate. | ; <code>grate</code>: Makes it a grate. | ||
: (Grates are not solid to bullets or [[line of sight]], but solid to everything else.) | : (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.{{why}} | ||
; <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. | ||
Line 15: | Line 15: | ||
; <code>ladder</code>: Makes it a ladder. | ; <code>ladder</code>: Makes it a ladder. | ||
{{note|Additional contents from [[bspflags.h]] can be set via {{srcskineditor|4.1}}, although results may vary.}} | {{note|Additional contents from [[bspflags.h]] can be set via {{srcskineditor|4.1}}, although results may vary.}} | ||
== See also == | == See also == | ||
* [[CollisionProperty]] | * [[CollisionProperty]] | ||
[[Category:QC Commands|contents]]__NOTOC__ | [[Category:QC Commands|contents]]__NOTOC__ |
Revision as of 09:06, 12 January 2024
$contents
is a c0 available in all 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.[Why?]
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.

