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 (Manually updating all pages using {{Hl2 entity}}, because it uses {{entity}} as a base which has now been marked for deletion)
mNo edit summary
Line 1: Line 1:
{{HL2 topicon}}
{{HL2 topicon}}
{{Lang}}
{{Ent not in fgd|nolink=1}}
{{Ent not in fgd|nolink=1}}
{{this is a|name=crossbow_bolt|e0|series=Half-Life 2}} This is the projectile fired by [[weapon_crossbow]].
{{this is a|name=crossbow_bolt|e0|series=Half-Life 2}}  
 
{{MultiPage| title = crossbow_bolt }}
The code for this entity is found in ''weapon_crossbow.cpp''.
 
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

Revision as of 12:21, 18 April 2024

Icon-NotInFGD.png
This entity is not in the FGD by default.
It should not be put directly in a map.

crossbow_bolt is an e0 available in Half-Life 2 series Half-Life 2 series.

Note.pngNote:Archived page history
Icon-Important.pngImportant:These pages are linked often from page history logs so Special:WhatLinksHere will not show anything.