Item weapon snark: Difference between revisions
Jump to navigation
Jump to search
Note:Most objects that inherit class CBasePickup in Black Mesa have the following features:
Bug:Appeared snarks may stuck in air if was spawned at player or any other dynamic object (an NPC, etc). Snarks in this state are undefeatable (also can't bite) until the countdown finished. (not in
)
Risk of Confusion:Not to be confused with weapon_snark. The key difference between weapon_ and item_weapon_ entities are:
Note:Multiplayer mode will not override this value for models with animated sheen if the value isn't default.
Important:Does not disable physics and collision.
MyGamepedia (talk | contribs) No edit summary |
MyGamepedia (talk | contribs) No edit summary |
||
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{CDA|CItem_weapon_snark|CBasePickup|CBaseAnimating|CBaseEntity|}} | |||
[[File: snarknest bms.png|150px|right]] | [[File: snarknest bms.png|150px|right]] | ||
{{this is a|model entity|name=item_weapon_snark|game=Black Mesa}} It is a hive/nest with | {{this is a|model entity|name=item_weapon_snark|game=Black Mesa}} It is a hive/nest with [[npc_snark|snarks]], which gives {{ent|weapon_snark}} for the {{ent|player}} when picked up. It can be destroyed by damaging it, this will release the snarks. | ||
{{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 11: | Line 10: | ||
}} | }} | ||
{{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}}}}.}} | ||
{{bug|hidetested=1|Appeared snarks may stuck in air if was spawned at player or any other dynamic object (an [[NPC]], etc). Snarks in this state are undefeatable (also can't bite) until the countdown finished. {{not|{{bms12}}}} | |||
{{expand|title=Example.| | |||
<gallery mode=packed heights=300px> | |||
File:snarkhivebug.jpg| thumb | left | 510px | The bug with snacks that happens if the hive destroyed at the players legs. | |||
</gallery> | |||
}} | |||
}} | |||
{{Confusion|Not to be confused with {{ent|weapon_snark}}. The key difference between ''weapon_'' and ''item_weapon_'' entities are: | {{Confusion|Not to be confused with {{ent|weapon_snark}}. The key difference between ''weapon_'' and ''item_weapon_'' entities are: | ||
* The respawn mechanics in multiplayer and the respawn sound are different. | * The respawn mechanics in multiplayer and the respawn sound are different. | ||
Line 19: | Line 24: | ||
* ''item_weapon_'' can be destroyed by damaging it ([[item_weapon_snark|nest with snarks]] only). | * ''item_weapon_'' can be destroyed by damaging it ([[item_weapon_snark|nest with snarks]] only). | ||
* ''weapon_'' are not giving extra ammo. | * ''weapon_'' are not giving extra ammo. | ||
* Picking up ''weapon_'' with [[+use|use]] key will force the player to use it, if the player didn't have the weapon before. Doesn't work with ''item_weapon_'' entities. | |||
}} | }} | ||
Line 39: | Line 44: | ||
}} | }} | ||
{{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 49: | Line 54: | ||
==Dedicated Console Variables== | ==Dedicated Console Variables== | ||
{{varcom|start}} | {{varcom|start}} | ||
{{varcom|sk_item_weapon_snark_hive_health|10|[[Float]]|The amount of health for hive. {{tip|Can be changed with [[ | {{varcom|sk_item_weapon_snark_hive_health|10|[[Float]]|The amount of health for hive. {{tip|Can be changed with [[AddOutput]] input.}}}} | ||
{{varcom|sk_item_weapon_snark_hive_pickup|4|[[Integer]]|The amount of snarks to release when the hive is destroyed.}} | {{varcom|sk_item_weapon_snark_hive_pickup|4|[[Integer]]|The amount of snarks to release when the hive is destroyed.}} | ||
{{varcom|sk_item_" | {{varcom|sk_item_"ammo_snark""_pickup"|5|Integer|The amount of snarks to give. | ||
{{bug|hidetested=1|Can't be changed with the [[console]] due to quotation marks. | {{bug|hidetested=1|Can't be changed with the [[console]] due to quotation marks. | ||
{{workaround|Use the addon (see below) to make it possible to change all the '''sk_item_"''' console variables by using new. | {{workaround|Use the addon (see below) to make it possible to change all the '''sk_item_"''' console variables by using new. | ||
}} | }} | ||
}} | }} | ||
{{varcom|sv_mp_spawneffect_item|1|[[Bool]]|Enable/disable the xen portal effects and the sound after respawn in multiplayer.}} | |||
}} | }} | ||
{{varcom|end}} | {{varcom|end}} | ||
Line 63: | Line 69: | ||
* {{ent|npc_snark}} - the snark [[NPC]] entity | * {{ent|npc_snark}} - the snark [[NPC]] entity | ||
* {{ent|item_snark_grenade}} the hive/nest grenade entity | * {{ent|item_snark_grenade}} the hive/nest grenade entity | ||
== External links == | |||
* [https://steamcommunity.com/sharedfiles/filedetails/?id=2454684652 Ammo Pickup ConVar/Crossbow Pickup Fix] - the addon that adds new console variables that allows you to change value console variable with '''sk_item_"''' prefix. |
Latest revision as of 09:27, 21 July 2025
![]() |
---|
CItem_weapon_snark |
item_weapon_snark
is a model entity available in Black Mesa. It is a hive/nest with snarks, which gives weapon_snark for the player when picked up. It can be destroyed by damaging it, this will release the snarks.

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


|

- The respawn mechanics in multiplayer and the respawn sound are different.
- weapon_ physics and collision isn't disabled in multiplayer.
- weapon_ model cannot be changed with properties.
- Different inputs, outputs and flags.
- item_weapon_ can be destroyed by damaging it (nest with snarks only).
- weapon_ are not giving extra ammo.
- Picking up weapon_ with use key will force the player to use it, if the player didn't have the weapon before. Doesn't work with item_weapon_ entities.
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>
- 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_item_weapon_snark_hive_health | 10 | Float | The amount of health for hive. ![]() |
sk_item_weapon_snark_hive_pickup | 4 | Integer | The amount of snarks to release when the hive is destroyed. |
sk_item_"ammo_snark""_pickup" | 5 | Integer | The amount of snarks to give.
![]() ![]() |
sv_mp_spawneffect_item | 1 | Bool | Enable/disable the xen portal effects and the sound after respawn in multiplayer. |
See also
- weapon_snark - the snark weapon entity
- npc_snark - the snark NPC entity
- item_snark_grenade the hive/nest grenade entity
External links
- Ammo Pickup ConVar/Crossbow Pickup Fix - the addon that adds new console variables that allows you to change value console variable with sk_item_" prefix.