mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-12 07:33:34 +01:00
Fixes burst weapons not properly having weapon spread when dual wielded (#17149)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user