Adds animations for picking up and placing items. (#18702)

* Add initial support for telegraphing item pickups

* Add interaction to lockers

* Undo some extraneous changes

* Make pickpocket gloves not show any animation on pickup
This commit is contained in:
Luc
2022-08-14 15:52:04 +01:00
committed by GitHub
parent d688300c3a
commit 2945bed697
5 changed files with 113 additions and 11 deletions
@@ -191,6 +191,7 @@
to_chat(user, "<span class='notice'>\The [W] is stuck to your hand, you cannot put it in \the [src]!</span>")
return
if(W)
W.do_drop_animation(user)
W.forceMove(loc)
return TRUE // It's resolved. No afterattack needed. Stops you from emagging lockers when putting in an emag
else if(can_be_emaged && (istype(W, /obj/item/card/emag) || istype(W, /obj/item/melee/energy/blade) && !broken))