grenade_bolt

From Valve Developer Community
Jump to: navigation, search
Info.png
This entity is not in the FGD by default.
It should not be put directly in a map because it can only be configured through code.
Grenade boltDEF.png

grenade_bolt is a point entity available in Black Mesa Black Mesa. This is crossbow bolt that appears when the player shoots from crossbow in multiplayer. Used by mod version of the game (with no explosion abilities) for singleplayer campaign. Current Steam versions using tracerbullet entity, you still can use old version of the bolts with sk_crossbow_tracer_enabled 0, bolts will not differ from the mod version. In singleplayer, bolts behave similarly to Half-Life 2 Half-Life 2, they can bounce, create sparks when hitting surfaces, can kill most enemies in one hit, it is affected by gravity (which is why you have to shoot with lead), don't have the ability to chain the body to a wall (used for tracerbullet). In multiplayer, they use dynamite stick in their composition, which is why they explode instantly upon impact with a surface. Most inputs and outputs are same as CBaseAnimating. Used CBlackMesaBaseProjectile as a base class in Steam versions, CBaseCombatCharacter used in the mod version.

Icon-Bug.pngBug:The model doesn't displays on dynamic objects (brushes and models) in Steam versions. Also doesn't create decals on such objects. (not in Black Mesa)
Icon-Bug.pngBug:Creates a bullet impact decal when exploding, instead of an explosion decal.
Icon-Bug.pngBug:Doesn't use proper skin in multiplayer, even though it is provided and used for other entities that use bolts for model.
Example.


PlacementTip.pngWorkaround:You can use trigger_weaponfire to set proper skin (will not affect bolts from secondary attack).
Note.pngNote:Models of this entity are different in mod and Steam versions.
Example.


Note.pngNote:Only in the mod version you can see white beam created by this entity.

Inputs

SetToExplode <void> (only in Black Mesa)
This input forces bolt to explode upon impact with a surface. Used in multiplayer.
Tip.pngTip:You can use this input for singleplayer map. Use trigger_weaponfire that will fire this input for every grenade_bolt entity.
SetTimer <float> (only in Black Mesa)
Sets amount of time before detonate. Doesn't do anything for this entity (make sure that sk_crossbow_tracer_enabled is disabled).
Detonate <void> (only in Black Mesa)
Doesn't do anything for this entity.
SetThrower <void> (only in Black Mesa)
Fired by this entity when appeared. Doesn't do anything.

Outputs

OnDetonate <void> (only in Black Mesa)
Fired by this entity when detonated. This entity cannot detonate, so this output never works.

Dedicated ConVars

Black Mesa Black Mesa: Definitive Edition

Cvar/CommandParameters or default valueDescriptorEffect
sk_crossbow_tracer_enabled1BoolEnable tracer crossbow bolts if 1. With 0, crossbow will use grenade_bolt. Does not affect multiplayer mode.
sk_detenator_bolt_airspeed5000FloatBolt air speed.
sk_detenator_bolt_client_lifetime30FloatAmount of time before bolt disappear after it lands.
sk_detenator_bolt_dot_bounce-0.5FloatAffects the number of bounces the bolt can make. Should be used a negative value (otherwise the bolt will remain in one point).
sk_detenator_bolt_gravity40FloatGravity scale, or how much gravity will affect the bolt.
sk_detenator_bolt_plr_dmg115FloatAmount of damage from bolt.
sk_weapon_crossbow_bolt_advance_speed2FloatAcceleration during flight.
sk_detenator_bolt_plr_xplode_direct_hit_dmg75FloatAmount of damage from direct hit for explondable bolt.
sk_detenator_bolt_plr_xplode_dmg50FloatAmount of damage from indirect hit for explondable bolt (the damage from explosion).
sk_detenator_bolt_plr_xplode_radius128FloatExplosion radius for explondable bolt.

Black Mesa Black Mesa (the mod version)

Cvar/CommandParameters or default valueDescriptorEffect
sk_plr_dmg_bolt75FloatAmount of damage from player's bolt.
sk_plr_dmg_bolt_sniper0FloatAmount of damage from player's bolt for sniper. Doesn't work.
sk_npc_dmg_bolt0FloatAmount of damage from NPC's bolt. Doesn't work, none of the available NPCs can use crossbow. Probably should have been used for female assassins (in the original Half-Life Half-Life there was an idea to use crossbow for this NPC class), you can find mention of separate crossbow's sounds for NPCs (in scripts/weapon_crossbow.txt).

See Also