Skip to content

Commit

Permalink
>2 hand support for simple animal (tgstation#49675)
Browse files Browse the repository at this point in the history
  • Loading branch information
spookydonut authored Mar 5, 2020
1 parent eb2e735 commit 9e409de
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions code/modules/mob/living/simple_animal/simple_animal.dm
Original file line number Diff line number Diff line change
Expand Up @@ -616,18 +616,12 @@

/mob/living/simple_animal/update_inv_hands()
if(client && hud_used && hud_used.hud_version != HUD_STYLE_NOHUD)
var/obj/item/l_hand = get_item_for_held_index(1)
var/obj/item/r_hand = get_item_for_held_index(2)
if(r_hand)
r_hand.layer = ABOVE_HUD_LAYER
r_hand.plane = ABOVE_HUD_PLANE
r_hand.screen_loc = ui_hand_position(get_held_index_of_item(r_hand))
client.screen |= r_hand
if(l_hand)
l_hand.layer = ABOVE_HUD_LAYER
l_hand.plane = ABOVE_HUD_PLANE
l_hand.screen_loc = ui_hand_position(get_held_index_of_item(l_hand))
client.screen |= l_hand
for(var/obj/item/I in held_items)
var/index = get_held_index_of_item(I)
I.layer = ABOVE_HUD_LAYER
I.plane = ABOVE_HUD_PLANE
I.screen_loc = ui_hand_position(index)
client.screen |= I

//ANIMAL RIDING

Expand Down

0 comments on commit 9e409de

Please sign in to comment.