Item healthkit ragdoll clone: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{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|point 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...")
 
No edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{CDA|CItem_HealthKitRagdoll|CRagdollProp|CBaseAnimating|CBaseEntity|}}
{{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|point 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"}}. Most most inputs, outputs and properties are same as [[CRagdollProp]].
{{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|
Represented by class <code>CItem_HealthKitRagdoll</code>.
*Doesn't collide with {{code|CBasePickup}} entities and ''weapon_'' entities.
{{bug|hidetested=1|Doesn't collide with other {{code|CBasePickup}} (except {{ent|item_healthkit_ragdoll_clone}}) and ''weapon_'' entities.}}
*Sometimes it doesn't heal after [[Level Transitions|level transition]]. {{todo|Find out why only sometimes.}}
}}


==Outputs==
==Outputs==
{{O|OnPlayerDenied|param=void|Fires if the player has not picked it up when touched.}}
{{O|OnPlayerDenied|param=void|Fires if the player has not picked it up when touched.}}
{{O|OnPlayerPickup|param=void|Fires if the player picked it up.}}
{{O|OnPlayerPickup|param=void|Fires if the player picked it up.}}
==Dedicated Console Variables==
{{bms|4}}
{{varcom|start}}
{{varcom|cl_pickup_colorcorrection|1|[[Bool]]|Enable/disable color correction when this entity is picked up.}}
{{varcom|end}}
{{bms12|4}}
{{varcom|start}}
{{varcom|cc_pickup_enable|1|[[Bool]]|Enable/disable color correction when this entity is picked up.}}
{{varcom|end}}


==See also==
==See also==
* [[Item healthkit (Black Mesa)|item_healthkit]] - the big healthkit
* [[Item healthkit (Black Mesa)|item_healthkit]] - the big healthkit
* [[Item healthkvial (Black Mesa)|item_healthvial]] - the small healthkit
* [[item_healthvial (Black Mesa)|item_healthvial]] - the small healthkit
* [[item_syringe]] - the syringe used my [[npc_human_scientist]] to heath players
* [[item_syringe]] - the syringe used by [[npc_human_scientist]] to heath players

Latest revision as of 07:50, 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.
  • Sometimes it doesn't heal after level transition.
    Todo: Find out why only sometimes.

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