diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-04 13:26:33 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-04 13:26:33 +0100 |
| commit | d22bd8d184091e6a4600beb78eb279c2f5fab51b (patch) | |
| tree | d2599374c611b56a5568f949b93e7fab2a93f6c8 /src/cinput.cpp | |
| parent | Fix No spread on the hl2_complete server build (diff) | |
| download | hl2h-d22bd8d184091e6a4600beb78eb279c2f5fab51b.tar.gz hl2h-d22bd8d184091e6a4600beb78eb279c2f5fab51b.zip | |
No spread: zero pellet offsets inside FireBullets
Picking the best of 256 pending seeds still leaves the shotgun's 8/12 pellets
a few degrees apart. CShotManipulator::ApplySpread is inlined into
CBaseEntity::FireBullets and draws x/y through the global
CUniformRandomStream; hook its RandomFloat slot and return 0 when the calling
frame's shooter is the local server player. This collapses every pellet onto
the shot direction while NPC fire and client prediction keep their randomness.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions
