Info hang lighting: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(-hang lighting)
 
(-example of why this is needed)
 
Line 5: Line 5:
{{bug|If player's SetLightingOrigin input is used during hanging the <code>info_hang_lighting</code> is not removed}}
{{bug|If player's SetLightingOrigin input is used during hanging the <code>info_hang_lighting</code> is not removed}}
<!-- I am probably reaching here with that bug but there is not much to put on this page -->
<!-- I am probably reaching here with that bug but there is not much to put on this page -->
{{bug|Going idle or taking over a character while hanging removes info_hang_lighting which results in situation shown in third example}}
[[File:Info hang lighting example.jpg|thumb|center|500px|Position where the entity spawns]]
[[File:Info hang lighting example 2.jpg|500px|thumb|center|Example of why info_hang_lighting is needed]]
[[File:Info hang lighting example 3.jpg|500px|thumb|center|Example of how the situation would look like without info_hang_lighting]]


[[File:Info hang lighting example.jpg|thumb|center|500px]]
{{clr}}
{{clr}}


== See Also ==
== See Also ==
* {{ent|info_target}}
* {{ent|info_target}}

Latest revision as of 19:28, 25 June 2024

Icon-NotInFGD.png
This entity is not in the FGD by default.
It should not be put directly in a map.
C++ Class hierarchy
CPointEntity
CBaseEntity

info_hang_lighting is a point entity available in Left 4 Dead seriesLeft 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