Skip to content

Commit a8a88cc

Browse files
committed
gameplay: bias in fixed weapon spread for increased pellet shots
remove the extra last pellet in the fixed spread array, since fixed spread wraps around anyway. this fixes an issue where the wrapping causes right bias in weapons like the force-a-nature which have greater than 10 pellets ref: ValveSoftware/Source-1-Games#3982
1 parent 6c74b24 commit a8a88cc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/game/shared/tf/tf_fx_shared.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ void EndGroupingSounds() {}
110110

111111
Vector g_vecFixedWpnSpreadPellets[] =
112112
{
113-
Vector( 0,0,0 ), // First pellet goes down the middle
113+
Vector( 0,0,0 ), // First and last pellet goes down the middle to reward fine aim
114114
Vector( 1,0,0 ),
115115
Vector( -1,0,0 ),
116116
Vector( 0,-1,0 ),
@@ -119,7 +119,6 @@ Vector g_vecFixedWpnSpreadPellets[] =
119119
Vector( 0.85,0.85,0 ),
120120
Vector( -0.85,-0.85,0 ),
121121
Vector( -0.85,0.85,0 ),
122-
Vector( 0,0,0 ), // last pellet goes down the middle as well to reward fine aim
123122
};
124123

125124
//-----------------------------------------------------------------------------

0 commit comments

Comments
 (0)