Skip to content

Commit

Permalink
autoguns are now vastly more innacurate after firing for a while
Browse files Browse the repository at this point in the history
  • Loading branch information
johndoe2013 committed Jul 18, 2023
1 parent 2954b06 commit 0056536
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions code/modules/projectiles/gun.dm
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,6 @@
// Full auto
///Whether or not the gun is firing full-auto
var/fa_firing = FALSE
///How many shots have been fired using full-auto. Used to figure out scatter
var/fa_shots = 0
///How many full-auto shots to get to max scatter?
var/fa_scatter_peak = 8
///How bad does the scatter get on full auto?
Expand Down Expand Up @@ -1637,7 +1635,7 @@ not all weapons use normal magazines etc. load_into_chamber() itself is designed
// Note that full auto uses burst scatter multipliers
if(gun_firemode == GUN_FIREMODE_AUTOMATIC)
// The longer you fire full-auto, the worse the scatter gets
var/bullet_amt_scat = min((fa_shots / fa_scatter_peak) * fa_max_scatter, fa_max_scatter)
var/bullet_amt_scat = min((shots_fired / fa_scatter_peak) * fa_max_scatter, fa_max_scatter)
if(flags_item & WIELDED)
total_scatter_angle += max(0, bullet_amt_scat * burst_scatter_mult)
else
Expand Down

0 comments on commit 0056536

Please sign in to comment.