Template:Hl1 kv zhlt point: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
Tag: New redirect
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
#REDIRECT [[Template:Hl1 kv zhlt light source]]
<onlyinclude>
{{minititle|ZHLT}}
{{kv|Copy lighting from (VHLT+)|intn=zhlt_copylight|target_destination|Copies the lighting from the named entity to the nearest lightmap luxel below this entity's origin.}}
: {{tip|To avoid having the copied lighting visibly affecting the brush lighting, put a 16x16x1 [[func_detail (GoldSrc)|func_detail]] with {{code|zhlt_noclip}} enabled directly below this model's origin. Texture the top face with {{code|black_HIDDEN}}, and the rest of the faces with {{code|SKIP}}.}}
:{{note|Not compatible with entities using the [[effect flags (GoldSrc)|effect flag]] [[EF_INVLIGHT (GoldSrc)|EF_INVLIGHT]].}}
{{kv|Model shadows (UMHLT, SDHLT)|intn=zhlt_studioshadow|boolean|Enable to cast shadows from MDLs found in the {{code|model}} KV.}}
{{kv|Model shadow mode (SDHLT)|intn=zhlt_shadowmode|choices}}
:0 - Use Bounding Box
:1 - Use triangles (default)
:2 - Use Bounding boxes of triangles
</onlyinclude>
[[Category:Keyvalue templates]]

Latest revision as of 21:19, 21 March 2025

ZHLT:

Copy lighting from (VHLT+) (zhlt_copylight) <targetname>
Copies the lighting from the named entity to the nearest lightmap luxel below this entity's origin.
Tip.pngTip:To avoid having the copied lighting visibly affecting the brush lighting, put a 16x16x1 func_detail with zhlt_noclip enabled directly below this model's origin. Texture the top face with black_HIDDEN, and the rest of the faces with SKIP.
Note.pngNote:Not compatible with entities using the effect flag EF_INVLIGHT.
Model shadows (UMHLT, SDHLT) (zhlt_studioshadow) <boolean>
Enable to cast shadows from MDLs found in the model KV.
Model shadow mode (SDHLT) (zhlt_shadowmode) <choices>
0 - Use Bounding Box
1 - Use triangles (default)
2 - Use Bounding boxes of triangles