This article relates to the game "Half-Life 2". Click here for more information.

crossbow_bolt

From Valve Developer Community
Jump to: navigation, search
English (en)

Info.png
This entity is not in the FGD by default .
It should not be put directly in a map.
class hierarchy
CCrossbowBolt defined in weapon_crossbow.cpp
CBaseCombatCharacter
CBaseFlex
CBaseAnimatingOverlay
CBaseAnimating
CBaseEntity

crossbow_bolt is a point entity available in Half-Life 2 Half-Life 2, Half-Life 2: Episode One Half-Life 2: Episode One, Half-Life 2: Episode Two Half-Life 2: Episode Two, and Half-Life 2: Deathmatch Half-Life 2: Deathmatch.

This is the projectile fired by weapon_crossbow.

The bolts think() and touch(). It is

In touch() logic for bolt behavior.

  • Bolt Reflection
if the angle is right, bolts hit a solid surface and ricochet/reflect at an angle. Each bounce increases the 'gravity' of the projectile, in effect slowing its rate.
  • behavior for impact against NPCs
  • skin change
  • breaking glass
  • damage to triggers/breakable/props