Item ammo 357 (Black Mesa): Difference between revisions
Jump to navigation
Jump to search
Note:Most objects that inherit class
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) (Created page with "{{TabsBar|main=Item ammo 357}} right | 300px {{this is a|point entity|name=item_ammo_357|game=Black Mesa}} It's a box of .357 Magnum caliber ammo for the {{ent|weapon_357}}. Most inputs, outputs and properties are same as CBaseAnimating. {{note|No physics and collision for this entity in multiplayer.}} Represented by class <code>CItem_ammo_357</code>. ==Keyvalues== {{KV|Respawn Time|intn=respawntime|float|Time waited between respawns i...") |
MyGamepedia (talk | contribs) No edit summary |
||
| (9 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{TabsBar|main=Item ammo 357}} | {{TabsBar|main=Item ammo 357}} | ||
[[File: item_ammo_357.png | right | | {{CDA|CItem_ammo_357|CBasePickup|CBaseAnimating|CBaseEntity|}} | ||
{{this is a| | [[File: item_ammo_357.png | right | 180px]] | ||
{{this is a|model entity|name=item_ammo_357|game=Black Mesa}} It's a box of {{WP|.357 Magnum}} caliber ammo for the {{ent|weapon_357}}. | |||
{{note|Most objects that inherit class {{code|CBasePickup}} in {{bms|1}} have the following features: | |||
* They're [[VPhysics]] objects (disabled in multiplayer mode). | |||
* Respawn in multiplayer mode (''item_weapon_'' entities creating [[Env xen portal effect|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 [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}}}}.}} | |||
==Keyvalues== | ==Keyvalues== | ||
| Line 17: | Line 23: | ||
==Inputs== | ==Inputs== | ||
{{I|AttachTo|param=void|Attaches this entity to [[!activator]], | {{I|AttachTo|param=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.}} | ||
{{I|Respawn|param=void|Respawn this entity in multiplayer. Fired by this entity after the amount of time from ''Respawn Time'' property.}} | {{I|Respawn|param=void|Respawn this entity in multiplayer. Fired by this entity after the amount of time from ''Respawn Time'' property.}} | ||
{{I|Disable|param=void|Make this item invisible and disable the ability to be picked up by players. | {{I|Disable|param=void|Make this item invisible and disable the ability to be picked up by players. | ||
| Line 23: | Line 29: | ||
}} | }} | ||
{{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 32: | Line 38: | ||
==Dedicated Console Variables== | ==Dedicated Console Variables== | ||
{{bms|4}} | |||
{{varcom|start}} | {{varcom|start}} | ||
{{varcom|sk_item_"ammo_357""_pickup"|12|[[Integer]]|The amount of ammo to give. | {{varcom|sk_item_"ammo_357""_pickup"|12|[[Integer]]|The amount of ammo to give. | ||
| Line 38: | Line 45: | ||
}} | }} | ||
}} | }} | ||
}} | |||
{{varcom|end}} | |||
{{bms12|4}} | |||
{{varcom|start}} | |||
{{varcom|sk_item_ammo_357_pickup|12|[[Integer]]|The amount of ammo to give. | |||
}} | }} | ||
{{varcom|end}} | {{varcom|end}} | ||
Latest revision as of 08:39, 21 July 2025
| CItem_ammo_357 |
item_ammo_357 is a model entity available in
Black Mesa. It's a box of
.357 Magnum caliber ammo for the weapon_357.
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).
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_"ammo_357""_pickup" | 12 | Integer | The amount of ammo to give.
|
| Cvar/Command | Parameters or default value | Descriptor | Effect |
|---|---|---|---|
| sk_item_ammo_357_pickup | 12 | Integer | The amount of ammo to give. |
See also
- weapon_357 - the magnum weapon entity
- item_weapon_357 - the magnum pickup 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.