Sniperbullet: 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=sniperbullet|type=e0|game=Half-Life 2|game1=Half-Life 2: Episode One|game2=Half-Life 2: Episode Two|game3=Half-Life...")
 
No edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{stub}}
{{ent not in fgd|codeonly=1}}
{{ent not in fgd|codeonly=1}}
{{this is a|point entity|name=sniperbullet|type=e0|game=Half-Life 2|game1=Half-Life 2: Episode One|game2=Half-Life 2: Episode Two|game3=Half-Life 2: Deathmatch|game4=Black Mesa}} This is a sniper rifle bullet that appears when a [[npc_sniper|sniper]] shoots. It doesn't use [[raycasting]], this is real time projectile bullet.
{{CD|CSniperBullet|file1=proto_sniper.cpp}}
{{this is a|point entity|name=sniperbullet|game=Half-Life 2 series|game1=Black Mesa}} This is a sniper rifle bullet that appears when a [[npc_sniper|sniper]] shoots. It doesn't use [[raycasting]], this is real time projectile bullet.
[[File:sniperbullet.jpg|350px|right]]
[[File:sniperbullet.jpg|350px|right]]
{{CD|CSniperBullet|file1=proto_sniper.cpp}}


==Dedicated Console Variables==
==Dedicated Console Variables==
{{varcom|start}}
{{varcom|start}}
{{varcom|bulletspeed|6000 {{hl2}}, 6000 {{bms}}|Arbitrary number|The bullet speed.}}
{{varcom|bulletspeed|6000 {{hl2}}{{bms}}|[[Float]]|The bullet speed.}}
{{varcom|end}}
{{varcom|end}}

Latest revision as of 18:01, 5 June 2025

Stub

This article or section is a stub. You can help by expanding it.

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.
C++ Class hierarchy
CSniperBullet
CBaseEntity
C++ proto_sniper.cpp

sniperbullet is a point entity available in Half-Life 2 series Half-Life 2 series and Black Mesa Black Mesa. This is a sniper rifle bullet that appears when a sniper shoots. It doesn't use raycasting, this is real time projectile bullet.

Sniperbullet.jpg

Dedicated Console Variables

Cvar/Command Parameters or default value Descriptor Effect
bulletspeed 6000 Half-Life 2Black Mesa Float The bullet speed.