medical scanner animation

This commit is contained in:
quotefox
2022-03-08 22:24:05 +00:00
parent 733122f33e
commit 888ca227f0
4 changed files with 13 additions and 0 deletions
@@ -729,6 +729,17 @@
remove_atom_colour(TEMPORARY_COLOUR_PRIORITY, "#000000")
cut_overlay(MA)
//medical scan animation
/mob/living/carbon/human/proc/scan_animation()
var/mutable_appearance/scan_anim
scan_anim = mutable_appearance(icon, "mediscan")
add_overlay(scan_anim)
addtimer(CALLBACK(src, .proc/end_scan_animation, scan_anim), 10)
flick(icon,src)
/mob/living/carbon/human/proc/end_scan_animation(mutable_appearance/MA)
cut_overlay(MA)
/mob/living/carbon/human/canUseTopic(atom/movable/M, be_close=FALSE, no_dextery=FALSE, no_tk=FALSE)
if(incapacitated() || lying )
to_chat(src, "<span class='warning'>You can't do that right now!</span>")