[TTT/Sandbox] Combine Sniper
This addon adds a weapon that closely mimics the mechanics of the combine sniper NPC from Half-Life 2.
Also available on Github[github.com]
Features
- Projectiles that travel in real time, rather than using hitscan.
- Crossbow-like zoom behavior.
- Audio, visuals and mechanics that almost 100% match that of the NPC version.
- The ability to penetrate through thin objects.
- Built-in dynamic lead indicator for NPC’s and players, with options for customization and the ability for server hosts to force it off.
- In-depth customization for the bullet’s speed, damage and impact force through convars.
- Built-in TTT support, no separate addon or modifications required.
Console commands/variables
- csniper_bullet_damage – The amount of damage a bullet does when hitting/passing through an object
- csniper_bullet_force – The amount of force applied on impact
- csniper_bullet_speed – How quickly the bullet moves through the air
- csniper_bullet_pen_max – The amount of times each bullet can penetrate an entity
- csniper_bullet_pen_depth – The maximum thickness a bullet can penetrate through
- csniper_bullet_pen_steps – How many steps a bullet takes when trying to penetrate a material, higher values increase precision but decrease performance
- csniper_infinite_ammo – When enabled, doesn’t remove ammo from your reserve when reloading
- csniper_lead_indicator – Whether or not players can use the lead indicators when scoped
- csniper_lead_color – The color used for the lead indicator, scaled from 0-1 for r g and b
- csniper_lead_size – The size of the lead indicator, or 0 to disable the indicators alltogether
- csniper_require_scope – Whether you can fire the weapon without zooming in first
- csniper_scope_zoom – How far the sniper zooms in when scoping, defaults to 5x