fixes burst weapons not properly having weapon spred when dual wielded

This commit is contained in:
S34NW
2021-11-22 18:07:38 +00:00
parent 12ea2f5f86
commit 4b9b820a98
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