Prop health cabinet: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
 Important:If the cabinet itself is placed over a navigation mesh marked as CHECKPOINT or FINALE it will spawn first aid kits instead of pills.
Important:If the cabinet itself is placed over a navigation mesh marked as CHECKPOINT or FINALE it will spawn first aid kits instead of pills.
 Note:Other
Note:Other 
		
	
| m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.) | m (Classifying as model entity) | ||
| (7 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| {{CD|CPropHealthCabinet}} | {{CD|CPropHealthCabinet}} | ||
| {{this is a| | {{this is a|model entity|name=prop_health_cabinet|series=Left 4 Dead}} It is a cabinet containing [[weapon_first_aid_kit_spawn|first aid kits]] and [[weapon_pain_pills_spawn|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 difficulty is not expert.   | ||
| {{important|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 == | == Keyvalues == | ||
| Line 6: | Line 7: | ||
| {{KV|Number of pain pills|intn=HealthCount|integer|Number of pain pills/first aid kits inside (1-4)}} | {{KV|Number of pain pills|intn=HealthCount|integer|Number of pain pills/first aid kits inside (1-4)}} | ||
| {{KV|World Model|intn=model|string|The [[model]] this entity should appear as. 128-character limit.   | {{KV|World Model|intn=model|string|The [[model]] this entity should appear as. 128-character limit.   | ||
| :{{tip|Custom model that has 4 attachments named item1-item4 and sequences  | :{{note|Default model: <code>models/props_interiors/medicalcabinet02.mdl</code>}} | ||
| :{{tip|Custom model that has 4 attachments named item1-item4 and sequences idle, Open will work properly for this entity.}}}} | |||
| == See  | |||
| {{OtherKIO|prop_dynamic}} | |||
| == Gallery == | |||
| <gallery widths=200px heights=300px mode=packed> | |||
| prop_health_cabinet-closed.jpg | models/props_interiors/medicalcabinet02.mdl, sequence = idle | |||
| prop_health_cabinet-open.jpg | Attachments item1 to item4, sequence = Open | |||
| </gallery> | |||
| == See also == | |||
| * {{ent|weapon_first_aid_kit_spawn}} | * {{ent|weapon_first_aid_kit_spawn}} | ||
| * {{ent|weapon_defibrillator_spawn}} | * {{ent|weapon_defibrillator_spawn}} | ||
| * {{ent|weapon_pain_pills_spawn}} | * {{ent|weapon_pain_pills_spawn}} | ||
| * {{ent|weapon_adrenaline_spawn}} | * {{ent|weapon_adrenaline_spawn}} | ||
| [[Category:Prop entities|health cabinet]] | |||
Latest revision as of 04:34, 19 May 2025
|  Class hierarchy | 
|---|
| CPropHealthCabinet | 
prop_health_cabinet  is a   model entity  available in 
 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 difficulty is not expert.
 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 difficulty is not expert. 
 Important:If the cabinet itself is placed over a navigation mesh marked as CHECKPOINT or FINALE it will spawn first aid kits instead of pills.
Important: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
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentnameortarget).
 Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
- 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.
 Note:Default model: Note:Default model:- models/props_interiors/medicalcabinet02.mdl
 Tip:Custom model that has 4 attachments named item1-item4 and sequences idle, Open will work properly for this entity. Tip:Custom model that has 4 attachments named item1-item4 and sequences idle, Open will work properly for this entity.
 Note:Other
Note:Other Keyvalues / Inputs / Outputs are same as prop_dynamic.
