Prop health cabinet: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Added info on Director changing contents and removed stub.)
(-concise page by-removing all the junk nobody will use with this entity and thing to confirm)
Line 1: Line 1:
{{l4d series point|prop_health_cabinet}} 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.  
{{l4d series point|prop_health_cabinet}} 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.  


==Flags==
== Keyvalues ==
{{Fl DynamicProp}}
{{KV|Number of pain pills|intn=HealthCount|integer|Number of pain pills/first aid kits inside (1-4)}}
 
{{KV Targetname}}
==Keyvalues==
{{KV|World Model|intn=model|string|The [[model]] this entity should appear as. 128-character limit. {{Confirm|Custom model that has 4 attachments named item1-item4 and sequences closed, open will work properly for this entity.}}}}
{{KV|Number of pain pills (HealthCount)|integer|Number of pain pills/first aid kits inside (1-4)}}
{{KV EnableDisable}}
{{KV DynamicProp|preasw=1}}
{{KV BreakableProp|nohl2=1}}
{{KV BaseAnimating|l4d2=1}}
{{KV BaseEntity|l4d=1|l4d2=1}}
 
==Inputs==
{{I EnableDisable}}
{{I DynamicProp|preasw=1}}
{{I BreakableProp|nohl2=1}}
{{I BaseAnimating}}
{{I BaseEntity|l4d2=1}}
 
==Outputs==
{{O DynamicProp}}
{{O Breakable|prop=1|nohl2=1}}
{{O BaseAnimating}}
{{O BaseEntity|l4d=1}}

Revision as of 13:24, 19 October 2022

Template:L4d series point 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

Number of pain pills (HealthCount) <integer>
Number of pain pills/first aid kits inside (1-4)
Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

World Model (model) <string>
The model this entity should appear as. 128-character limit.
Confirm:Custom model that has 4 attachments named item1-item4 and sequences closed, open will work properly for this entity.