Gun Spread Formula

From the Fallout3 GECK Wiki
Revision as of 14:12, 21 December 2008 by imported>SnakeChomp (Gun spread formula)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Variables

fGunSpreadSkillBase = SB
Default 0.5
fGunSpreadSkillMult = SM
Default -0.0050
Actor skill with the given weapon = S
fGunSpreadIronSightsBase = ISB
Default 1
fGunSpreadIronSightsMult = ISM
Default -0.65
This value is 0 unless aiming with iron sights (holding the right mouse button with the default control scheme)
fGunSpreadWalkBase = WB
Default 1
This value is 0 when running, but applies when stationary or walking
fGunSpreadWalkMult = WM
Default 0
This value is non zero only when walking
fGunSpreadRunBase = RB
Default 1
This value is non zero only when running
fGunSpreadRunMult = RM
Default 0
This value is non zero only when running
fGunSpreadCrouchBase = CrB
Default 1
fGunSpreadCrouchMult = CrM
Default -0.4
This value is 0 unless the actor is crouched (sneaking)
fGunSpreadArmBase = AB
Default 0.5
fGunSpreadArmMult = AM
Default -0.5
Actor arm condition = AC
1 at 100% condition, 0 when crippled
fGunSpreadCondBase = CB
Default 0
fGunSpreadCondMult = CM
Default 0
Any perks that affect gun spread = PerkModifiers(x) => y

Formula

Gun Spread = PerkModifiers((AB + AC * AM) + (ISB + ISM) * (CrB + CrM) * (CB + C * CM + SB + S * SM) * (WB + WM + RB + RM))

Formula notes

The default value of 1 for WB is important in this formula. Without it, the (WB + WM + RB + RM) factor would be 0 when not moving, meaning you would never have any gun spread while stationary.

This formula has been derived by systematically tweaking the settings using the console and observing the effects on the magnitude of weapon sway.

Variables not used by this formula

These are variables that should logically have an impact on this formula but do not appear to have any effect on the player character's gun spread when tweaked. Further research into these settings should be performed. Perhaps they only effect NPC gun spread?

  • fGunSpreadHeadMult
  • fGunSpreadHeadBase
  • fGunSpreadNPCArmBase
  • fGunSpreadNPCArmMult