Grenade satchel: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{CDA|CGrenade_Satchel|CBlackMesaBaseGrenade|CBlackMesaBaseDetonator|CBaseAnimating|CBaseEntity|}}
[[File:Granede_satchel.png|200px|right]]
[[File:Granede_satchel.png|200px|right]]
{{this is a|point entity|name=grenade_satchel|game=Black Mesa}} The grenade entity that used by {{ent|weapon_satchel}}. It is a {{WP|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]].
{{this is a|model entity|name=grenade_satchel|game=Black Mesa}} The grenade entity that is used by {{ent|weapon_satchel}}. It is a {{WP|C-4 (explosive)}} charges that can be detonated 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.
 
Represented by class <code>CGrenade_Satchel</code>.


{{note|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]]).}}  
{{note|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]]).}}  
{{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 satchels via {{hammer|4}} or {{cmd|ent_create|grenade_satchel}} in {{bms12|4}}. 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 detonate them.}}
{{workaround|Use toggleable model (or {{ent|prop_physics_multiplayer}}) with {{ent|env_explosion}}.}}
{{workaround|Use a toggleable model (or {{ent|prop_physics_multiplayer}}) with {{ent|env_explosion}}.}}
}}
}}


{{bug|hidetested=1|Doesn't work properly with [[Level Transitions|level transition]] if wasn't transferred to the next level:
{{bug|hidetested=1|Doesn't work properly with [[Level Transitions|level transition]]s if it wasn't transferred to the next level:
1. Become solid to player {{only|{{bms12}}}}.
1. Becomes solid to player {{only|{{bms12}}}}.


2. Can't be exploded.
2. Can't be remotely detonated.
}}
}}
==Inputs==
==Inputs==
Line 35: Line 34:
{{varcom|end}}
{{varcom|end}}


{{bms12|4}} (the mod version)
{{bms12|4}}
{{varcom|start}}
{{varcom|start}}
{{varcom|sk_plr_dmg_grenade_satchel|100|[[Float]]|Amount of damage from player's satchel.}}
{{varcom|sk_plr_dmg_grenade_satchel|100|[[Float]]|Amount of damage from player's satchel.}}

Latest revision as of 05:36, 27 May 2025

C++ Class hierarchy
CGrenade_Satchel
CBlackMesaBaseGrenade
CBlackMesaBaseDetonator
CBaseAnimating
CBaseEntity
Granede satchel.png

grenade_satchel is a model entity available in Black Mesa Black Mesa. The grenade entity that is used by weapon_satchel. It is a Wikipedia icon C-4 (explosive) charges that can be detonated 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.

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 satchels via Hammer Hammer or ent_create grenade_satchel in Black Mesa (mod) Black Mesa (mod). 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 detonate them.
PlacementTip.pngWorkaround:Use a toggleable model (or prop_physics_multiplayer) with env_explosion.
Icon-Bug.pngBug:Doesn't work properly with level transitions if it wasn't transferred to the next level:

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

2. Can't be remotely detonated.

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)

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