CHL1Item: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{CD|CHL1Item}} {{code|CHL1Item}} is the C++ class from which all {{hls|2}} items inherit. {{note|In multiplayer mode ({{cmd|deathmatch|1}}), items always have {{codelink|EF_NOSHADOW}}, disabling render-to-texture shadows.}}")
 
No edit summary
Line 2: Line 2:
{{code|CHL1Item}} is the C++ class from which all {{hls|2}} items inherit.
{{code|CHL1Item}} is the C++ class from which all {{hls|2}} items inherit.


{{note|In multiplayer mode ({{cmd|deathmatch|1}}), items always have {{codelink|EF_NOSHADOW}}, disabling render-to-texture shadows.}}
{{note|In multiplayer mode ({{cmd|deathmatch|1}}), are assigned {{codelink|EF_NOSHADOW}} when spawned, disabling render-to-texture shadows.
{{workaround|Send the {{code|EnableShadow}} input using {{ent|logic_auto}}.}}}}

Revision as of 14:02, 12 May 2025

C++ Class hierarchy
CHL1Item
CItem
CBaseAnimating
CBaseEntity

CHL1Item is the C++ class from which all Half-Life: Source Half-Life: Source items inherit.

Note.pngNote:In multiplayer mode (deathmatch 1), are assigned EF_NOSHADOW when spawned, disabling render-to-texture shadows.
PlacementTip.pngWorkaround:Send the EnableShadow input using logic_auto.