Added functionality for two-handed gun use.

This commit is contained in:
Zuhayr
2016-01-21 00:51:54 +10:30
parent fb7b4cc0ed
commit f89948d666
9 changed files with 45 additions and 5 deletions
+11 -1
View File
@@ -71,6 +71,16 @@
// Works similarly to worn sprite_sheets, except the alternate sprites are used when the clothing/refit_for_species() proc is called.
var/list/sprite_sheets_obj = list()
/obj/item/equipped()
..()
var/mob/M = loc
if(!istype(M))
return
if(M.l_hand)
M.l_hand.update_held_icon()
if(M.r_hand)
M.r_hand.update_held_icon()
/obj/item/Destroy()
if(ismob(loc))
var/mob/m = loc
@@ -89,7 +99,7 @@
var/mob/M = src.loc
if(M.l_hand == src)
M.update_inv_l_hand()
if(M.r_hand == src)
else if(M.r_hand == src)
M.update_inv_r_hand()
/obj/item/ex_act(severity)
@@ -20,6 +20,7 @@
disrupt()
/obj/item/device/chameleon/equipped()
..()
disrupt()
/obj/item/device/chameleon/attack_self()