Talk:Scattergun

From Team Fortress Wiki
Revision as of 20:14, 19 October 2025 by RotatcepS (talk | contribs) (pistols, too)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Talk archives
Intel blu idle.png Archive 1

Achievement section

Is the related achievements section missing from this article? All other stock weapons I saw have one. Lord of Dominating (talk) 22:05, 29 October 2023 (UTC)

Likely because the only ones applicable would be generic "destroy x" or "kill x" achievements, rather than stuff that needs to be done with this weapon specifically. Feel free to add them, however.
BLU Wiki Cap.png | s | GrampaSwood Praise the Sun! (talk) (contribs) 12:48, 30 October 2023 (UTC)

Spread calculation

I've looked through the bullet spread code in the TF2 SDK, and determined the following:

  1. A weapon's spread is stored in a script file as a radian. eg the shotgun/scattergun weapon scripts all have the line ["spread" "0.0675"] which the game's code then stores as a float value, runs through several call hooks to check for external factors that may affect the spread (such as spread recovery) before finally being called in shot_manipulator.h as vecSpread to determine the possible vectors for the pellets you just fired.
  2. converting from radians to degrees gives scattergun and all shotguns ~3.86746512 degrees of spread. Plugging this into a trigonometry calculator gives us the ratio 14.792307966473947:1. We can round this value to 15:1, 14.8:1, or 14.79:1 depending on how accurate we wish to be.
  3. the most likely explanation for why it's listed as twice that value is because the wiki is basing it on the spread when tf_used_fixed_weaponspreads is set to 1 instead of the default 0. For some bizarre reason, the TF team decided to make it so having that enabled also scales the grid by 0.5 I guess this is to ensure the corners fit, but that would only require 0.7071067811865475 scale. At any rate, we should be basing our stats on vanilla game rules, not alternative ones.

As such, I will be modifying all shotgun/scatterguns to match with their true values. Gearhart (talk) 17:15, 19 October 2025 (UTC)

For #2, it's best if it's 15:1. For #3, the fixed weapon spreads values should be used. I'm updating the values of all damage and function times values to make sure they're up-to-date and to implement a new system. Fixed spreads should be the basis for the spread too. Also, do these new values still match with the explanation? If the values are X:Y, then every X Hammer Units away from the target it increases Y Hammer Units of spread. In this case that would be, ever 15 Hammer units it increases the spread by 1 Hammer unit.
BLU Wiki Cap.png | s | GrampaSwood Praise the Sun! (talk) (contribs) 17:22, 19 October 2025 (UTC)
Don't forget the Shortstop, Gearhart, it should have equivalent stat info. Thanks! rotatcepS (talk) 20:08, 19 October 2025 (UTC)
Ooops... I forgot, it functions like a shotgun but its spread is like that of a pistol. So I should have said: don't forget all the pistols, revolvers, and SMGs. Their ratios should be similarly modified for the same reasons. rotatcepS (talk) 20:14, 19 October 2025 (UTC)