shotgun constant

WeaponDef const shotgun

Eight pellets, and all of the reason to close the distance.

Implementation

static const WeaponDef shotgun = WeaponDef(
  // The loudest thing a player carries, and the reason a corridor answers.
  loudness: 28.0,
  name: 'Shotgun',
  behaviour: HitscanBehaviour(),
  ammo: AmmoType.shells,
  damage: 11.0,
  shotsPerSecond: 1.4,
  rayCount: 8,
  spread: 0.10,
  range: 60.0,
  falloffStart: 6.0,
  falloffEnd: 26.0,
  minimumDamageFraction: 0.2,
  knockback: 2.0,
  // A shove rather than a flinch, and slow to come back: the pause between
  // shells is what the weapon is, and it should be spent waiting for the
  // sight as much as for the pump.
  recoil: 0.05,
  recoilRecovery: 4.5,
);