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

Crossbow bolt: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Fixed ??? in CD)
No edit summary
Line 3: Line 3:
{{Ent not in fgd|nolink=1}}
{{Ent not in fgd|nolink=1}}
{{CD|CCrossbowBolt|base=CBaseCombatCharacter|file1=weapon_crossbow.cpp}}
{{CD|CCrossbowBolt|base=CBaseCombatCharacter|file1=weapon_crossbow.cpp}}
{{this is a|point entity|name=crossbow_bolt|game=Half-Life 2|game1=Half-Life 2: Episode One|game2=Half-Life 2: Episode Two|game3=Half-Life 2: Deathmatch}}  
{{this is a|point entity|name=crossbow_bolt|game=Half-Life 2 series}}  


This is the projectile fired by {{ent|weapon_crossbow}}.
This is the projectile fired by {{ent|weapon_crossbow}}.

Revision as of 09:22, 9 September 2024

English (en)Translate (Translate)

Icon-NotInFGD.png
This entity is not in the FGD by default.
It should not be put directly in a map.
C++ Class hierarchy
CCrossbowBolt
CBaseCombatCharacter
CBaseFlex
CBaseAnimatingOverlay
CBaseAnimating
CBaseEntity
C++ weapon_crossbow.cpp

crossbow_bolt is a point entity available in Half-Life 2 series Half-Life 2 series.

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