info_hang_lighting

From Valve Developer Community
Jump to navigation Jump to search
Info.png
This entity is not in the FGD by default.
It should not be put directly in a map.
Class hierarchy
CPointEntity
CBaseEntity

info_hang_lighting is a point entity available in Left 4 Dead series Left 4 Dead series. It's automatically created when player hangs from ledge and it's set as their lighting origin.

Note.pngNote:Special property of entity having this classname is that when CTerrorPlayer's ResetLightingOrigin method is called it checks if their current lighting origin entity's classname is info_hang_lighting and then removes it
Icon-Bug.pngBug:If player's SetLightingOrigin input is used during hanging the info_hang_lighting is not removed  [todo tested in?]
Icon-Bug.pngBug:Going idle or taking over a character while hanging removes info_hang_lighting which results in situation shown in third example  [todo tested in?]
Position where the entity spawns
Example of why info_hang_lighting is needed
Example of how the situation would look like without info_hang_lighting

See Also