Item ammo crossbow (Black Mesa): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{TabsBar|main=Item ammo crossbow}}
{{TabsBar|main=Item ammo crossbow}}
[[File: item_ammo_crossbow_bm_sp.png | right | 120px]]
{{CDA|CItem_ammo_crossbow|CBasePickup|CBaseAnimating|CBaseEntity|}}
[[File: item_ammo_crossbow_bm_mp.png | right | 120px]]
[[File:item_ammo_crossbow_bm_sp.png|170px||thumb|right|The crossbow ammo model from [[Steam]] versions of the game (with neurotoxin).]]  
[[File: item_ammo_crossbow_bm_mod.png | right | 120px]]
[[File:item_ammo_crossbow_bm_mp.png|170px||thumb|right|The crossbow ammo model from [[Steam]] versions of the game (with explosive).]]  
[[File:item_ammo_crossbow_bm_mod.png|170px||thumb|right|The crossbow ammo model from the mod version of the game.]]  
{{this is a|model entity|name=item_ammo_crossbow|game=Black Mesa}} It's a clip of {{WP|crossbow bolts}} with neurotoxin or detonator (depending on singleplayer or multiplayer mode), acts as ammo for the {{ent|weapon_crossbow}}. The mod version are using general bolt design that is closer to real prototypes and original {{hl|4}}.
{{this is a|model entity|name=item_ammo_crossbow|game=Black Mesa}} It's a clip of {{WP|crossbow bolts}} with neurotoxin or detonator (depending on singleplayer or multiplayer mode), acts as ammo for the {{ent|weapon_crossbow}}. The mod version are using general bolt design that is closer to real prototypes and original {{hl|4}}.
{{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 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_ammo_crossbow|CBasePickup|CBaseAnimating|CBaseEntity|}}


==Keyvalues==
==Keyvalues==

Latest revision as of 08:52, 21 July 2025

Source Engine ( General | Half-Life: Source | Black Mesa )
edit
C++ Class hierarchy
CItem_ammo_crossbow
CBasePickup
CBaseAnimating
CBaseEntity
The crossbow ammo model from Steam versions of the game (with neurotoxin).
The crossbow ammo model from Steam versions of the game (with explosive).
The crossbow ammo model from the mod version of the game.

item_ammo_crossbow is a model entity available in Black Mesa Black Mesa. It's a clip of Wikipedia icon crossbow bolts with neurotoxin or detonator (depending on singleplayer or multiplayer mode), acts as ammo for the weapon_crossbow. The mod version are using general bolt design that is closer to real prototypes and original Half-Life Half-Life.

Note.pngNote:Most objects that inherit class CBasePickup in Black Mesa have the following features:
  • 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).
Icon-Bug.pngBug:Doesn't collide with other CBasePickup and weapon_ entities (not in Black Mesa (mod)).

Keyvalues

Respawn Time (respawntime) <float>
Time waited between respawns in multiplayer mode.
Model (model) <model path> !FGD
Model to use for this entity.
Note.pngNote:Multiplayer mode will not override this value for models with animated sheen if the value isn't default.

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.
Icon-Important.pngImportant:Does not disable physics and collision.
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

Black Mesa Black Mesa

Cvar/Command Parameters or default value Descriptor Effect
sk_item_"ammo_crossbow""_pickup" 10 Integer The amount of ammo to give.
Note.pngNote:For unknown reasons, the value is is twice as large as it should be (10 instead of 5).
Icon-Bug.pngBug:Can't be changed with the console due to quotation marks.
PlacementTip.pngWorkaround:Use the addon (see below) to make it possible to change all the sk_item_" console variables by using new.

Black Mesa (mod) Black Mesa (mod)

Cvar/Command Parameters or default value Descriptor Effect
sk_item_ammo_crossbow_pickup 10 Integer The amount of ammo to give.
Note.pngNote:For unknown reasons, the value is is twice as large as it should be (10 instead of 5).

See also

External links