Item syringe: Difference between revisions
Jump to navigation
Jump to search
Note:Most objects that inherit class CBasePickup in Black Mesa have the following features:
Bug:
Important:Does not disable physics and collision.
m (Classifying as model entity) |
MyGamepedia (talk | contribs) No edit summary |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{ent not in fgd|nolink=1|because=it don't have model with proper physics by default}} | {{ent not in fgd|nolink=1|because=it don't have model with proper physics by default}} | ||
[[File: item_syringe.png | right | | {{CDA|CItem_Syringe|CBasePickup|CBaseAnimating|CBaseEntity|}} | ||
[[File: item_syringe_vmodel.png | right | | [[File: item_syringe.png | right | 120px|thumb|The syringe model.]] | ||
{{this is a|model entity|name=item_syringe|game=Black Mesa}} It's a [[npc_human_scientist|scientist]]'s syringe, which he/she can use to heal a {{ent|player}} with low health (25 or less by default). Not used as a physics prop due to the unstable physics of the model, the model is also quite deprecated and may be replaced if {{ent|weapon_syringe}} were to appear in the game (the bottom right picture shows how it looks) | [[File: item_syringe_vmodel.png | right | 120px|thumb|The syringe model used for '''weapon_syringe'''.]] | ||
{{this is a|model entity|name=item_syringe|game=Black Mesa}} It's a [[npc_human_scientist|scientist]]'s syringe, which he/she can use to heal a {{ent|player}} with low health (25 or less by default). Not used as a physics prop due to the unstable physics of the model, the model is also quite deprecated and may be replaced if {{ent|weapon_syringe}} were to appear in the game (the bottom right picture shows how it looks). | |||
{{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: | ||
* They're [[VPhysics]] objects (disabled in multiplayer mode). | * They're [[VPhysics]] objects (disabled in multiplayer mode). | ||
Line 11: | Line 11: | ||
* Model can be changed to your own via the parameter (which is not in the FGD by default, added in [https://github.com/MyGamepedia/Enhanced-Black-Mesa-FGD Enhanced Black Mesa FGD]). | * Model can be changed to your own via the parameter (which is not in the FGD by default, added in [https://github.com/MyGamepedia/Enhanced-Black-Mesa-FGD Enhanced Black Mesa FGD]). | ||
}} | }} | ||
{{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}}}}. | |||
*Doesn't play any pickup sound. | |||
*Doesn't display [[HUD]] icon at right side. | |||
}} | |||
==Keyvalues== | ==Keyvalues== | ||
Line 29: | Line 33: | ||
}} | }} | ||
{{I|Enable|param=void|Make this item visible and enable the ability to be picked up by players.}} | {{I|Enable|param=void|Make this item visible and enable the ability to be picked up by players.}} | ||
{{I|Fall|param=void| | {{I|Fall|param=void|Deattaches this entity if was attached with ''AttachTo'' input, the entity will retain its position before applying this input and will remain stationary until something will hit it.}} | ||
==Flags== | ==Flags== | ||
Line 40: | Line 44: | ||
{{varcom|start}} | {{varcom|start}} | ||
{{varcom|sk_syringe|10|[[Integer]]|The amount of health to give. Only for syringes placed in a map.}} | {{varcom|sk_syringe|10|[[Integer]]|The amount of health to give. Only for syringes placed in a map.}} | ||
{{varcom|cl_pickup_colorcorrection {{only|{{bms}}}}|1|[[Bool]]|Enable/disable color correction when this entity is picked up.}} | |||
{{varcom|cc_pickup_enable {{only|{{bms12}}}}|1|[[Bool]]|Enable/disable color correction when this entity is picked up.}} | |||
{{varcom|end}} | {{varcom|end}} | ||
Latest revision as of 09:10, 21 July 2025

![]() |
---|
CItem_Syringe |
item_syringe
is a model entity available in Black Mesa. It's a scientist's syringe, which he/she can use to heal a player with low health (25 or less by default). Not used as a physics prop due to the unstable physics of the model, the model is also quite deprecated and may be replaced if weapon_syringe were to appear in the game (the bottom right picture shows how it looks).

- 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).

- Doesn't collide with other CBasePickup and weapon_ entities (not in
).
- Doesn't play any pickup sound.
- Doesn't display HUD icon at right side.
Keyvalues
- Respawn Time (respawntime) <float>
- Time waited between respawns in multiplayer mode.
- Model (model) <model path>
- 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>
- Deattaches this entity if was attached with AttachTo input, the entity will retain its position before applying this input and will remain stationary until something will hit it.
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_syringe | 10 | Integer | The amount of health to give. Only for syringes placed in a map. |
cl_pickup_colorcorrection (only in ![]() |
1 | Bool | Enable/disable color correction when this entity is picked up. |
cc_pickup_enable (only in ![]() |
1 | Bool | Enable/disable color correction when this entity is picked up. |
See also
- item_healthkit - the big healthkit
- item_healthvial - the small healthkit