Tracerbullet: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{ent not in fgd|codeonly=1}} {{this is a|point entity|name=tracerbullet|game=Black Mesa}} This is crossbow bolt that appears when the player shoots from weapon_crossbow|cro...")
 
Line 16: Line 16:
==Dedicated Console Variables==
==Dedicated Console Variables==
{{varcom|start}}
{{varcom|start}}
{{varcom|sk_crossbow_tracer_enabled|1 {{bms}}|Arbitrary number|Enable tracer crossbow bolts if 1. With 0, crossbow will use {{ent|grenade_bolt}} entity with {{hl2|4}} crossbow bolt parameters (ability to ricochet, sparks, also fixes bug with camera). Does not affect multiplayer mode.}}
{{varcom|sk_crossbow_tracer_enabled|1|[[Bool]]|Enable tracer crossbow bolts if 1. With 0, crossbow will use {{ent|grenade_bolt}} entity with {{hl2|4}} crossbow bolt parameters (ability to ricochet, sparks, also fixes bug with camera). Does not affect multiplayer mode.}}
{{varcom|sk_crossbow_tracer_speed|8000 {{bms}}|Arbitrary number|Crossbow bolt speed (only for {{ent|tracerbullet}} entity).}}
{{varcom|sk_crossbow_tracer_speed|8000|[[Float]]|Crossbow bolt speed (only for {{ent|tracerbullet}} entity).}}
{{varcom|end}}
{{varcom|end}}

Revision as of 05:48, 3 November 2024

Icon-NotInFGD.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.

tracerbullet is a point entity available in Black Mesa Black Mesa. This is crossbow bolt that appears when the player shoots from crossbow. Differs from grenade_bolt in that it doesn't have the ability to ricochet, no sparks, there are also bug with player's camera (bolts literally appears in the center of the player's camera, causing them to clip through it).

Tracerbullet.jpg







Dedicated Console Variables

Cvar/Command Parameters or default value Descriptor Effect
sk_crossbow_tracer_enabled 1 Bool Enable tracer crossbow bolts if 1. With 0, crossbow will use grenade_bolt entity with Half-Life 2 Half-Life 2 crossbow bolt parameters (ability to ricochet, sparks, also fixes bug with camera). Does not affect multiplayer mode.
sk_crossbow_tracer_speed 8000 Float Crossbow bolt speed (only for tracerbullet entity).