$contents: Difference between revisions
Jump to navigation
Jump to search
SirYodaJedi (talk | contribs) mNo edit summary |
SirYodaJedi (talk | contribs) m (→Example: content_type is not a thing; they're called contents flags) |
||
Line 6: | Line 6: | ||
$contents "monster" "grate" | $contents "monster" "grate" | ||
Available contents types are: | |||
; | ; {{code|grate}} | ||
: | : Makes it a grate. | ||
; | : Grates are not solid to bullets or [[line of sight]], but solid to everything else. | ||
; | : {{bug|Does not function correctly in {{tf2}}{{css}}{{csgo}}; see {{ent|%CompilePassBullets}} for specifics.}} | ||
; | ; {{code|monster}} | ||
: Solid is the default value, so this parameter is usually used only for the | : Marks it as a [[monster]]{{why}}, better known in Source as an NPC. | ||
; | ; {{code|notsolid}} | ||
{{ | : Makes it not solid to anything. | ||
: Nonsolid cannot be combined with any other contents flags. | |||
; {{code|solid}} | |||
: Makes it solid. | |||
: Solid is the default value, so this parameter is usually used only for the {{ent|$jointcontents}} command, to make a solid child of a non-solid parent. | |||
; {{code|ladder}} | |||
: Makes it a ladder. | |||
: Whether a prop ladder is actually climbable is dependent upon the game; see [[Working Ladders]]. | |||
Additional contents from {{file|[[Contents flags|bspflags]]|h}} can be set via {{srcskineditor|4.1}}, although results may vary. | |||
== See also == | == See also == |
Revision as of 13:16, 15 February 2024
$contents
is a c0 available in all Source games. It specifies a list of the contents 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 contents types are:
- grate
- Makes it a grate.
- Grates are not solid to bullets or line of sight, but solid to everything else.
Bug:Does not function correctly in
; see %CompilePassBullets for specifics. [todo tested in ?]
- monster
- Marks it as a monster[Why?], better known in Source as an NPC.
- notsolid
- Makes it not solid to anything.
- Nonsolid cannot be combined with any other contents flags.
- 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.
- Whether a prop ladder is actually climbable is dependent upon the game; see Working Ladders.
Additional contents from bspflags.h
can be set via Source Model Skin Editor, although results may vary.