From b864798b2f5bc3cea2afe33855ffae5fe5a9cde7 Mon Sep 17 00:00:00 2001 From: GDN Date: Sun, 23 Jul 2023 19:34:10 -0500 Subject: [PATCH] zamn --- code/modules/mob/living/carbon/human/human_mob.dm | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/living/carbon/human/human_mob.dm b/code/modules/mob/living/carbon/human/human_mob.dm index 1c802daae13..15fa39ffec1 100644 --- a/code/modules/mob/living/carbon/human/human_mob.dm +++ b/code/modules/mob/living/carbon/human/human_mob.dm @@ -19,7 +19,7 @@ UpdateAppearance() GLOB.human_list += src - AddComponent(/datum/component/footstep, FOOTSTEP_MOB_HUMAN, 1, -6) + RegisterSignal(src, COMSIG_MIND_TRANSER_TO, PROC_REF(mind_checks)) /** * Sets up DNA and species. @@ -39,6 +39,16 @@ dna.real_name = real_name sync_organ_dna() +/** + * Handles any adjustments to the mob after a mind transfer. + */ + +/mob/living/carbon/human/proc/mind_checks() + if(!mind) + return + if(mind.miming) + qdel(GetComponent(/datum/component/footstep)) + /** * Sets up other variables and components that may be needed for gameplay. */ @@ -68,6 +78,7 @@ splinted_limbs.Cut() QDEL_NULL(physiology) GLOB.human_list -= src + UnregisterSignal(src, COMSIG_MIND_TRANSER_TO) /mob/living/carbon/human/dummy real_name = "Test Dummy"