prop_health_cabinet

From Valve Developer Community
Jump to: navigation, search
class hierarchy
CPropHealthCabinet
CDynamicProp
CBreakableProp
CBaseProp
CBaseAnimating
CBaseEntity

prop_health_cabinet is a point entity available in the Left 4 Dead series Left 4 Dead series. It is a cabinet containing first aid kits and pain pills. The decision between first aid kits and pain pills cannot be set via entity properties, the AI Director will change the contents of the cabinet depending on how the players are doing. If the cabinet itself is placed over a navigation mesh marked as CHECKPOINT or FINALE it will spawn first aid kits instead of pills.

Keyvalues


Targetname:
Name (targetname) <string>
The targetname that other entities refer to this entity by.
Number of pain pills (HealthCount) <integer>
Number of pain pills/first aid kits inside (1-4)
World Model (model) <string>
The model this entity should appear as. 128-character limit.
Tip.pngTip:Custom model that has 4 attachments named item1-item4 and sequences closed, open will work properly for this entity.

See Also