Grenade satchel: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:
{{bug|hidetested=1|You can't spawn satchel via {{hammer|4}} or {{cmd|ent_create|grenade_satchel}} in {{bms12|4}} (the mod version). The game will crash instantly.
{{bug|hidetested=1|You can't spawn satchel via {{hammer|4}} or {{cmd|ent_create|grenade_satchel}} in {{bms12|4}} (the mod version). The game will crash instantly.
{{note|While you can do this in the Steam version of the game, using this entity is pointless, mainly because Steam versions doesn't provide any inputs or abilities to detonated them.}}
{{note|While you can do this in the Steam version of the game, using this entity is pointless, mainly because Steam versions doesn't provide any inputs or abilities to detonated them.}}
{{workaround|Use toggleable model or {{ent|prop_physics_multiplayer}} with {{ent|env_explosion}}.}}
{{workaround|Use toggleable model (or {{ent|prop_physics_multiplayer}}) with {{ent|env_explosion}}.}}
}}
}}



Revision as of 04:08, 6 April 2025

Granede satchel.png

grenade_satchel is a point entity available in Black Mesa Black Mesa. The grenade entity that used by weapon_satchel. It is a Wikipedia icon C-4 (explosive) charges that can be exploded with the remote radio, it also uses VPhysics, so you can pick it up and throw it like any other physical object. Steam versions use console variables to configure this entity, the mod version provides exclusive inputs and outputs that are cut in Steam versions of the game. Other inputs and outputs are same as CBaseAnimating.

Represented by class CGrenade_Satchel.

Note.pngNote:This is the only prop that a player can pick it up in multiplayer mode (sometimes causes in glitchy animations for weapons, there is also a lack of interpolation and/or prediction).
Icon-Bug.pngBug:You can't spawn satchel via Hammer Hammer or ent_create grenade_satchel in Black Mesa (mod) Black Mesa (mod) (the mod version). The game will crash instantly.
Note.pngNote:While you can do this in the Steam version of the game, using this entity is pointless, mainly because Steam versions doesn't provide any inputs or abilities to detonated them.
PlacementTip.pngWorkaround:Use toggleable model (or prop_physics_multiplayer) with env_explosion.
Icon-Bug.pngBug:Doesn't work properly with level transition if wasn't transferred to the next level:

1. Become solid to player (only in Black Mesa (mod)).

2. Can't be exploded.

Inputs

SetTimer <floatRedirectInput/float> (only in Black Mesa (mod))
Sets amount of time before detonate.
Detonate <void> (only in Black Mesa (mod))
Detonates satchel.
SetThrower <void> (only in Black Mesa (mod))
Fired by this entity when throwed. Doesn't do anything.

Outputs

OnDetonate <void> (only in Black Mesa (mod))
Fired by this entity when detonated.

Dedicated ConVars

Black Mesa Black Mesa

Cvar/Command Parameters or default value Descriptor Effect
sk_detenator_satchel_airspeed 420 Float Speed value at the moment of throwing. Affects the throwing range.
Note.pngNote:With high values it can deal damage and even gib enemies.
sk_detenator_satchel_plr_dmg 150 Float Amount of damage from satchel.
sk_detenator_satchel_plr_dmg_radius 300 Float Damage radius from satchel.
sk_detenator_frag_elasticity 0.45 Float Satchel's elasticity or how hard does it bounce. Doesn't work. Probably QPhysics was planned instead of VPhysics for satchels in multiplayer mode.
sk_detenator_satchel_gravity 400 Float Gravity scale for satchel. Doesn't work. Probably QPhysics was planned instead of VPhysics for satchels in multiplayer mode.
sk_detenator_satchel_friction 0.2 Float Friction scale for frag. Doesn't work. Probably QPhysics was planned instead of VPhysics for satchels in multiplayer mode.
sk_weapon_satchel_max_active 10 Integer Max amount of satchels that can throw single player. If the value has been exceeded, the game will explode the satchel that was thrown earlier than the others (first, second, third, etc.). This is not a global value for all players, it affects only each individual players, for instant, one player can't have 20 satchels, but two can.

Black Mesa (mod) Black Mesa (mod) (the mod version)

Cvar/Command Parameters or default value Descriptor Effect
sk_plr_dmg_grenade_satchel 100 Float Amount of damage from player's satchel.
sk_npc_dmg_grenade_satchel 0 Float Amount of damage from NPC's satchel.

See Also