fixes full auto one-handed penalty (#10588)

This commit is contained in:
JohnWildkins
2020-11-18 07:07:02 -05:00
committed by GitHub
parent c00ffacead
commit c68a10f667
4 changed files with 16 additions and 4 deletions

View File

@@ -107,6 +107,7 @@
var/is_wieldable = FALSE
var/wield_sound = /decl/sound_category/generic_wield_sound
var/unwield_sound = null
var/one_hand_fa_penalty = 0 // Additional accuracy/dispersion penalty for using full auto one-handed
//aiming system stuff
var/multi_aim = 0 //Used to determine if you can target multiple people.
@@ -508,6 +509,11 @@
//As opposed to no-delay pew pew
P.accuracy += 2
var/datum/firemode/F = firemodes[sel_mode]
if(one_hand_fa_penalty > 2 && !wielded && F?.name == "full auto") // todo: make firemode names defines
P.accuracy -= one_hand_fa_penalty/2
P.dispersion -= one_hand_fa_penalty * 0.5
//does the actual launching of the projectile
/obj/item/gun/proc/process_projectile(obj/projectile, mob/user, atom/target, target_zone, params)
var/obj/item/projectile/P = projectile