CHL1Item

From Valve Developer Community
Jump to navigation Jump to search
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. This will persist even when the item "respawns" after being picked up, as picking up the item doesn't actually despawn the item (it simply temporarily disappears).