From d8fd65d2d74c043c3d9f8db7ff57155c6a47b03e Mon Sep 17 00:00:00 2001 From: Denton <32391752+81Denton@users.noreply.github.com> Date: Fri, 28 Dec 2018 15:06:05 +0100 Subject: [PATCH] Adds jitter animation to strange reagent --- code/modules/reagents/chemistry/reagents/medicine_reagents.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/modules/reagents/chemistry/reagents/medicine_reagents.dm b/code/modules/reagents/chemistry/reagents/medicine_reagents.dm index c6716c0eabf..4f81f571247 100644 --- a/code/modules/reagents/chemistry/reagents/medicine_reagents.dm +++ b/code/modules/reagents/chemistry/reagents/medicine_reagents.dm @@ -795,10 +795,14 @@ return if(M.getBruteLoss() >= 100 || M.getFireLoss() >= 100 || M.has_trait(TRAIT_HUSK)) //body is too damaged to be revived M.visible_message("[M]'s body convulses a bit, and then falls still once more.") + M.do_jitter_animation(10) return else M.visible_message("[M]'s body starts convulsing!") M.notify_ghost_cloning(source = M) + M.do_jitter_animation(10) + addtimer(CALLBACK(M, /mob/living/carbon.proc/do_jitter_animation, 10), 40) //jitter immediately, then again after 4 and 8 seconds + addtimer(CALLBACK(M, /mob/living/carbon.proc/do_jitter_animation, 10), 80) sleep(100) //so the ghost has time to re-enter M.adjustOxyLoss(-20, 0) M.adjustToxLoss(-20, 0)