CHL1Item: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(Missing noun)
 
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}}), are assigned {{codelink|EF_NOSHADOW}} when spawned, disabling render-to-texture shadows.
{{note|In multiplayer mode ({{cmd|deathmatch|1}}), items are assigned {{codelink|EF_NOSHADOW}} when spawned, disabling render-to-texture shadows.
{{workaround|Send the {{code|EnableShadow}} input using {{ent|logic_auto}}.}}}}
{{workaround|Send the {{code|EnableShadow}} input using {{ent|logic_auto}}.}}}}

Latest revision as of 14:48, 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), items are assigned EF_NOSHADOW when spawned, disabling render-to-texture shadows.
PlacementTip.pngWorkaround:Send the EnableShadow input using logic_auto.