Item healthkit (Black Mesa): Difference between revisions
Jump to navigation
Jump to search
Important:In Steam versions of the game, this entity becomes item_healthkit_ragdoll_clone in singleplayer. Attempt spawn this entity in singleplayer via ent_create item_healthkit will work, but the entity itself will not work.
Note:Most objects that inherit class CBasePickup in Black Mesa have the following features:
Important:It must be a ragdoll, otherwise physics will not work for this entity.
Important:Does not disable physics and collision.
MyGamepedia (talk | contribs) |
MyGamepedia (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{TabsBar|main=Item healthkit}} | {{TabsBar|main=Item healthkit}} | ||
[[File: item_healthkit_bms_modern.png | right | | [[File: item_healthkit_bms_modern.png | right | 120px]] | ||
[[File: item_healthkit_bms_classic.png | right | | [[File: item_healthkit_bms_classic.png | right | 120px]] | ||
{{this is a|model entity|name=item_healthkit|game=Black Mesa}} It's a big healthkit that restores an amount of health points for [[player|players]] on pickup. For [[Steam]] versions of the game, most inputs, outputs and properties are same as [[CBaseAnimating]]. For the mod version, most inputs, outputs and properties are same as [[CRagdollProp]]. | {{this is a|model entity|name=item_healthkit|game=Black Mesa}} It's a big healthkit that restores an amount of health points for [[player|players]] on pickup. For [[Steam]] versions of the game, most inputs, outputs and properties are same as [[CBaseAnimating]]. For the mod version, most inputs, outputs and properties are same as [[CRagdollProp]]. | ||
{{important|In Steam versions of the game, this entity becomes {{ent|item_healthkit_ragdoll_clone}} in singleplayer. Attempt spawn this entity in singleplayer via {{cmd|ent_create|item_healthkit}} will work, but the entity itself will not work.}} | {{important|In Steam versions of the game, this entity becomes {{ent|item_healthkit_ragdoll_clone}} in singleplayer. Attempt spawn this entity in singleplayer via {{cmd|ent_create|item_healthkit}} will work, but the entity itself will not work.}} | ||
{{note|Most objects that inherit class {{code|CBasePickup}} in {{bms|1}} have the following features: | {{note|Most objects that inherit class {{code|CBasePickup}} in {{bms|1}} have the following features: | ||
Line 13: | Line 12: | ||
}} | }} | ||
{{bug|hidetested=1|Doesn't collide with other {{code|CBasePickup}} and ''weapon_'' entities {{not|{{bms12}}}}.}} | {{bug|hidetested=1|Doesn't collide with other {{code|CBasePickup}} and ''weapon_'' entities {{not|{{bms12}}}}.}} | ||
{{CDA|CItem_HealthKit|CBasePickup|CBaseAnimating|CBaseEntity|}} | |||
==Keyvalues== | ==Keyvalues== |
Revision as of 12:00, 26 May 2025
item_healthkit
is a model entity available in Black Mesa. It's a big healthkit that restores an amount of health points for players on pickup. For Steam versions of the game, most inputs, outputs and properties are same as CBaseAnimating. For the mod version, most inputs, outputs and properties are same as CRagdollProp.


- They're VPhysics objects (disabled in multiplayer mode).
- Respawn in multiplayer mode (item_weapon_ entities creating xen portal effects as well).
- No physics and collision in multiplayer.
- Model can be changed to your own via the parameter (which is not in the FGD by default, added in Enhanced Black Mesa FGD).
![]() |
---|
CItem_HealthKit |
Keyvalues
- Respawn Time (respawntime) <float>
- Time waited between respawns in multiplayer mode.
- Model (model) <model path> !FGD
- Model to use for this entity.

Outputs
- OnPlayerDenied <void>
- Fires if the player has not picked it up when touched.
- OnPlayerPickup <void>
- Fires if the player picked it up.
Inputs
- AttachTo <void>
- Attaches this entity to !activator, the entity becomes impossible to pick up. It becomes invisible in first person mode, but only in Steam versions of the game only.
- Respawn <void>
- Respawn this entity in multiplayer. Fired by this entity after the amount of time from Respawn Time property.
- Disable <void>
- Make this item invisible and disable the ability to be picked up by players.

- Enable <void>
- Make this item visible and enable the ability to be picked up by players.
- Fall <void>
- Doesn't seem to work.
Flags
- Start Asleep : [1]
- Motion Disabled : [2]
- Hard Respawn : [4]
- Respawn this entity even if it's already spawned. The timer will cycle throughout entire round. Picking up does not restart the timer.
- Silent Pickup : [8]
- Pick up this entity with no sound and HUD animation.
Dedicated Console Variables
Cvar/Command | Parameters or default value | Descriptor | Effect |
---|---|---|---|
sk_item_healthkit_value | 25 | Integer | The amount of health to give. |
cl_pickup_colorcorrection | 1 | Bool | Enable/disable color correction when this entity is picked up. |
Cvar/Command | Parameters or default value | Descriptor | Effect |
---|---|---|---|
sk_healthkit | 25 | Integer | The amount of health to give. |
cc_pickup_enable | 1 | Bool | Enable/disable color correction when this entity is picked up. |
See also
- item_healthvial - the small healthkit
- item_syringe - the syringe used by npc_human_scientist to heath players