Fixes burst weapons not properly having weapon spread when dual wielded (#17149)

This commit is contained in:
S34N
2021-11-24 08:53:14 +00:00
committed by GitHub
parent c9df82da96
commit d445cbc4de
2 changed files with 1 additions and 6 deletions
+1 -5
View File
@@ -37,7 +37,6 @@
var/list/restricted_species
var/spread = 0
var/randomspread = 1
var/unique_rename = TRUE //allows renaming with a pen
var/unique_reskin = FALSE //allows one-time reskinning
@@ -237,10 +236,7 @@
if( i>1 && !(src in get_both_hands(user))) //for burst firing
break
if(chambered)
if(randomspread)
sprd = round((rand() - 0.5) * (randomized_gun_spread + randomized_bonus_spread))
else
sprd = round((i / burst_size - 0.5) * (randomized_gun_spread + randomized_bonus_spread))
sprd = round((pick(0.5, -0.5)) * (randomized_gun_spread + randomized_bonus_spread))
if(!chambered.fire(target, user, params, ,suppressed, zone_override, sprd))
shoot_with_empty_chamber(user)
break
@@ -9,7 +9,6 @@
fire_sound = 'sound/weapons/blastcannon.ogg'
needs_permit = FALSE
clumsy_check = FALSE
randomspread = FALSE
var/obj/item/transfer_valve/bomb