heavy guns require a non-disabled inactive hand (#47754)

This commit is contained in:
py01
2019-11-15 22:13:40 -06:00
committed by moo
parent ef53b08035
commit 1782d074a8

View File

@@ -222,11 +222,10 @@
process_fire(user, user, FALSE, params, shot_leg)
user.dropItemToGround(src, TRUE)
return
if(weapon_weight == WEAPON_HEAVY && user.get_inactive_held_item())
to_chat(user, "<span class='warning'>You need both hands free to fire \the [src]!</span>")
var/obj/item/bodypart/other_hand = user.has_hand_for_held_index(user.get_inactive_hand_index()) //returns non-disabled inactive hands
if(weapon_weight == WEAPON_HEAVY && (user.get_inactive_held_item() || !other_hand))
to_chat(user, "<span class='warning'>You need two hands to fire \the [src]!</span>")
return
//DUAL (or more!) WIELDING
var/bonus_spread = 0
var/loop_counter = 0