Item healthkit ragdoll clone: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:
{{ent not in fgd|nolink=1|because=it will not heal players in this way. It is created by the game when replacing {{ent|item_healthkit}} and {{ent|item_healthvial}}, in this way, it will heal}}
{{ent not in fgd|nolink=1|because=it will not heal players in this way. It is created by the game when replacing {{ent|item_healthkit}} and {{ent|item_healthvial}}, in this way, it will heal}}
{{this is a|model entity|name=item_healthkit_ragdoll_clone|game=Black Mesa}} This entity is a ragdoll clone of {{ent|item_healthkit}} and {{ent|item_healthvial}} that appears in singleplayer for {{ent|prop_ragdoll}} features. Does not heal {{ent|player}} if placed directly in a map or if created via {{cmd|ent_create|item_healthkit_ragdoll_clone model "models/weapons/w_medkit.mdl"}}.
{{this is a|model entity|name=item_healthkit_ragdoll_clone|game=Black Mesa}} This entity is a ragdoll clone of {{ent|item_healthkit}} and {{ent|item_healthvial}} that appears in singleplayer for {{ent|prop_ragdoll}} features. Does not heal {{ent|player}} if placed directly in a map or if created via {{cmd|ent_create|item_healthkit_ragdoll_clone model "models/weapons/w_medkit.mdl"}}.
{{bug|hidetested=1|Doesn't collide with {{code|CBasePickup}} entities and ''weapon_'' entities.}}
{{bug|hidetested=1|
*Doesn't collide with {{code|CBasePickup}} entities and ''weapon_'' entities.
*Doesn't heal after [[Level Transitions|level transition]].
}}


==Outputs==
==Outputs==

Revision as of 04:46, 7 August 2025

C++ Class hierarchy
CItem_HealthKitRagdoll
CRagdollProp
CBaseAnimating
CBaseEntity
Icon-NotInFGD.png
This entity is not in the FGD by default.
It should not be put directly in a map because it will not heal players in this way. It is created by the game when replacing item_healthkit and item_healthvial, in this way, it will heal.

item_healthkit_ragdoll_clone is a model entity available in Black Mesa Black Mesa. This entity is a ragdoll clone of item_healthkit and item_healthvial that appears in singleplayer for prop_ragdoll features. Does not heal player if placed directly in a map or if created via ent_create item_healthkit_ragdoll_clone model "models/weapons/w_medkit.mdl".

Icon-Bug.pngBug:
  • Doesn't collide with CBasePickup entities and weapon_ entities.
  • Doesn't heal after level transition.

Outputs

OnPlayerDenied <void>
Fires if the player has not picked it up when touched.
OnPlayerPickup <void>
Fires if the player picked it up.

Dedicated Console Variables

Black Mesa Black Mesa

Cvar/Command Parameters or default value Descriptor Effect
cl_pickup_colorcorrection 1 Bool Enable/disable color correction when this entity is picked up.

Black Mesa (mod) Black Mesa (mod)

Cvar/Command Parameters or default value Descriptor Effect
cc_pickup_enable 1 Bool Enable/disable color correction when this entity is picked up.

See also