Mazzzoni/b4bstats

Fix RPM for shotguns

Closed this issue · 1 comments

Adjust how weapons are parsed and write custom RPM formulas;

  • default one -> 1 / delayBetweenShots * 60
  • burst one 60 * burstCount / (delayBetweenShots * burstCount + delayBetweenBursts)
  • tac14 -> 60 / (rechamberLength + reloadSpeed / 3)
  • belgian -> 60 / (rechamberLength + reloadSpeed)

Assign corresponding formula for each weapon

RPM formulas provided by Sykes;

870 RPM = 60/ (0,15 + 0,1 + 0,25/1) = 120
Barret RPM = 60/ (0,45 + 0,1 + 1,2/1) = 34,3
Phoenix RPM = 60/ (0,3 + 0,1 + 0,6/1) = 60