Template:Hl1 kv contents: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(don't add transclusions to Category:CONFIRM)
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Available for any brush entity that inherits [[CBaseAnimating (GoldSrc)|CBaseAnimating]].
{{todo|{{param|nofgd}}.}}
<onlyinclude>{{KV|Contents|intn=skin|choices|What brush contents to use for this entity.
<onlyinclude>{{KV|Contents|intn=skin|choices|What brush contents to use for this entity.
:For intrinsically nonsolid entities (ex {{code|[[func_illusionary (GoldSrc)|func_illusionary]]}}) and entities with no [[clipnodes]] (such as using {{code|zhlt_noclip}}), this is purely cosmetic.
: For entities with no [[clipnodes]] (such as using {{code|zhlt_noclip}}), this is purely cosmetic. For other entities, this requires the entity collision to be set to {{code|SOLID_NOT}} for non-cosmetic effect (applied automatically on [[func_door (GoldSrc)|doors]] and {{ent|func_illusionary|engine=goldsrc}}).
: {{expand|title=Contents types|
: '''-1:''' Empty
: '''-1:''' Empty
: '''-2:''' Solid
: '''-2:''' Solid
: '''-3:''' Water
: '''-3:''' Water (also disables backface culling)
: '''-4:''' Slime
: '''-4:''' Slime (like water, but inflicts damage)
: '''-5:''' Lava
: '''-5:''' Lava (like slime, but inflicts double damage)
: '''-6:''' Sky
: '''-6:''' Sky
: '''-7:''' Volumetric Light (same as Water)
: '''-7:''' Volumetric Light (same as water)
: '''-8:''' ???
: '''-8:''' ???
::{{confirm|This is CONTENTS_CLIP, but BSP compilers change it to solid, so it probably has no effect at runtime.<includeonly>|nocat=1</includeonly>}}
: '''-9:''' Water with 0° current
: '''-9:''' Water with 0° current
: '''-10:''' Water with 90° current
: '''-10:''' Water with 90° current
Line 20: Line 24:
: '''-18:''' Hover Field
: '''-18:''' Hover Field
: '''-19:''' Fog
: '''-19:''' Fog
}}</onlyinclude>
}} }}</onlyinclude>

Latest revision as of 08:29, 1 May 2025

Available for any brush entity that inherits CBaseAnimating.

Todo: {{{nofgd}}}.
Contents (skin) <choices>
What brush contents to use for this entity.
For entities with no clipnodes (such as using zhlt_noclip), this is purely cosmetic. For other entities, this requires the entity collision to be set to SOLID_NOT for non-cosmetic effect (applied automatically on doors and func_illusionary).
Contents types
-1: Empty
-2: Solid
-3: Water (also disables backface culling)
-4: Slime (like water, but inflicts damage)
-5: Lava (like slime, but inflicts double damage)
-6: Sky
-7: Volumetric Light (same as water)
-8: ???
Confirm:This is CONTENTS_CLIP, but BSP compilers change it to solid, so it probably has no effect at runtime.
-9: Water with 0° current
-10: Water with 90° current
-11: Water with 180° current
-12: Water with 270° current
-13: Water with upward current
-14: Water with downward current
-15: Translucent (like water, but never solid)
-16: Ladder
-17: Zero Gravity
-18: Hover Field
-19: Fog